Skip to content

fix eslint

fix eslint #19

GitHub Actions / ESLint Report Analysis failed Sep 6, 2024 in 1s

ESLint Report Analysis

12 ESLint error(s) and 8 ESLint warning(s) found

Details

Annotations

Check warning on line 191 in new-log-viewer/src/components/Layout.tsx

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/components/Layout.tsx#L191

[@stylistic/js/max-len] This line has a length of 104. Maximum allowed is 100.

Check failure on line 250 in new-log-viewer/src/services/LogFileManager.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/LogFileManager.ts#L249-L250

[@stylistic/js/semi] Missing semicolon.

Check failure on line 83 in new-log-viewer/src/services/MainWorker.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/MainWorker.ts#L82-L83

[@stylistic/js/semi] Missing semicolon.

Check warning on line 8 in new-log-viewer/src/services/decoders/ClpIrDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/ClpIrDecoder.ts#L1-L8

[simple-import-sort/imports] Run autofix to sort these imports!

Check failure on line 8 in new-log-viewer/src/services/decoders/ClpIrDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/ClpIrDecoder.ts#L8

[import/newline-after-import] Expected 2 empty lines after import statement not followed by another import.

Check failure on line 46 in new-log-viewer/src/services/decoders/ClpIrDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/ClpIrDecoder.ts#L46

[class-methods-use-this no-unused-vars] Definition for rule 'class-methods-use-this no-unused-vars' was not found.

Check failure on line 47 in new-log-viewer/src/services/decoders/ClpIrDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/ClpIrDecoder.ts#L47

[class-methods-use-this] Expected 'this' to be used by class method 'changeLogLevelFilter'.

Check failure on line 47 in new-log-viewer/src/services/decoders/ClpIrDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/ClpIrDecoder.ts#L47

[@typescript-eslint/no-unused-vars] 'logLevelFilter' is defined but never used.

Check failure on line 48 in new-log-viewer/src/services/decoders/ClpIrDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/ClpIrDecoder.ts#L48

[@stylistic/js/indent] Expected indentation of 8 spaces but found 9.

Check warning on line 48 in new-log-viewer/src/services/decoders/ClpIrDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/ClpIrDecoder.ts#L48

[no-warning-comments] Unexpected 'todo' comment: 'TODO: fix this after log level filtering...'.

Check failure on line 50 in new-log-viewer/src/services/decoders/ClpIrDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/ClpIrDecoder.ts#L49-L50

[@stylistic/js/semi] Missing semicolon.

Check failure on line 74 in new-log-viewer/src/services/decoders/JsonlDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/JsonlDecoder.ts#L74

[no-use-before-define] 'createIndicesArray' was used before it was defined.

Check warning on line 253 in new-log-viewer/src/services/decoders/JsonlDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/JsonlDecoder.ts#L253

[jsdoc/informative-docs] This tag description only repeats the name it describes.

Check warning on line 262 in new-log-viewer/src/services/decoders/JsonlDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/JsonlDecoder.ts#L256-L262

[func-style] Expected a function expression.

Check failure on line 257 in new-log-viewer/src/services/decoders/JsonlDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/JsonlDecoder.ts#L257

[@stylistic/js/no-multi-spaces] Multiple spaces found before '='.

Check warning on line 261 in new-log-viewer/src/services/decoders/JsonlDecoder.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/services/decoders/JsonlDecoder.ts#L261

[@stylistic/js/padding-line-between-statements] Expected blank line before this statement.

Check failure on line 24 in new-log-viewer/src/typings/logs.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/typings/logs.ts#L24

[@stylistic/js/no-multi-spaces] Multiple spaces found before 'Object'.

Check failure on line 27 in new-log-viewer/src/typings/logs.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/typings/logs.ts#L26-L27

[@stylistic/js/semi] Missing semicolon.

Check warning on line 38 in new-log-viewer/src/typings/logs.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/typings/logs.ts#L37-L38

[@stylistic/js/comma-dangle] Missing trailing comma.

Check warning on line 5 in new-log-viewer/src/typings/worker.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

new-log-viewer/src/typings/worker.ts#L4-L5

[@stylistic/js/comma-dangle] Missing trailing comma.