ci: add lint stage for each pull request #1
Annotations
10 errors
eslint (18):
src/browser-detection.ts#L171
Type 'number | null' is not assignable to type 'number | undefined'.
|
eslint (18):
src/browser-detection.ts#L176
'temp' is possibly 'null'.
|
eslint (18):
src/browser-detection.ts#L188
Type '[string, string] | [any, any, string]' is not assignable to type 'RegExpExecArray | []'.
|
eslint (18):
src/browser-detection.ts#L189
Property 'appName' does not exist on type '{ userAgent: string; }'.
|
eslint (18):
src/browser-detection.ts#L189
Property 'appVersion' does not exist on type '{ userAgent: string; }'.
|
eslint (18):
src/browser-detection.ts#L208
Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
|
eslint (18):
src/is-deprecated.ts#L17
Parameter 'currentBrowser' implicitly has an 'any' type.
|
eslint (18):
src/is-deprecated.ts#L23
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ firefox: number; chrome: number; opera: number; ie: number; }'.
|
eslint (18):
src/rendering-engine-detection.ts#L4
'userAgent' is declared but its value is never read.
|
eslint (18):
src/rendering-engine-detection.ts#L11
'userAgent' is declared but its value is never read.
|