Skip to content

Add prefer-class-fields rule #5038

Add prefer-class-fields rule

Add prefer-class-fields rule #5038

Triggered via pull request January 29, 2025 17:47
Status Success
Total duration 9m 2s
Artifacts

main.yml

on: pull_request
run-rules-on-codebase
36s
run-rules-on-codebase
Matrix: integration
Matrix: lint-test
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

20 warnings
lint-test (ubuntu-latest): index.js#L59
Unexpected 'todo' comment: 'TODO: Remove this at some point. Kept...'
lint-test (ubuntu-latest): rules/ast/call-or-new-expression.js#L14
Function 'create' has a complexity of 24. Maximum allowed is 20
lint-test (ubuntu-latest): rules/ast/is-member-expression.js#L14
Function 'isMemberExpression' has a complexity of 24. Maximum allowed is 20
lint-test (ubuntu-latest): rules/expiring-todo-comments.js#L331
Function 'processComment' has a complexity of 33. Maximum allowed is 20
lint-test (ubuntu-latest): rules/fix/replace-node-or-token-and-spaces-before.js#L3
Generator function 'replaceNodeOrTokenAndSpacesBefore' has too many parameters (5). Maximum allowed is 4
lint-test (ubuntu-latest): rules/import-style.js#L156
Arrow function has too many parameters (5). Maximum allowed is 4
lint-test (ubuntu-latest): rules/prefer-class-fields.js#L80
Arrow function has too many parameters (6). Maximum allowed is 4
lint-test (ubuntu-latest): rules/prefer-dom-node-dataset.js#L17
Unexpected 'todo' comment: 'TODO: Remove this restriction if...'
lint-test (ubuntu-latest): rules/prefer-dom-node-remove.js#L18
Unexpected 'todo' comment: 'TODO: Don't check node.type twice'
lint-test (ubuntu-latest): rules/prefer-dom-node-remove.js#L78
Unexpected 'todo' comment: 'TODO: Allow case like...'
lint-test (windows-latest): index.js#L59
Unexpected 'todo' comment: 'TODO: Remove this at some point. Kept...'
lint-test (windows-latest): rules/ast/call-or-new-expression.js#L14
Function 'create' has a complexity of 24. Maximum allowed is 20
lint-test (windows-latest): rules/ast/is-member-expression.js#L14
Function 'isMemberExpression' has a complexity of 24. Maximum allowed is 20
lint-test (windows-latest): rules/expiring-todo-comments.js#L331
Function 'processComment' has a complexity of 33. Maximum allowed is 20
lint-test (windows-latest): rules/fix/replace-node-or-token-and-spaces-before.js#L3
Generator function 'replaceNodeOrTokenAndSpacesBefore' has too many parameters (5). Maximum allowed is 4
lint-test (windows-latest): rules/import-style.js#L156
Arrow function has too many parameters (5). Maximum allowed is 4
lint-test (windows-latest): rules/prefer-class-fields.js#L80
Arrow function has too many parameters (6). Maximum allowed is 4
lint-test (windows-latest): rules/prefer-dom-node-dataset.js#L17
Unexpected 'todo' comment: 'TODO: Remove this restriction if...'
lint-test (windows-latest): rules/prefer-dom-node-remove.js#L18
Unexpected 'todo' comment: 'TODO: Don't check node.type twice'
lint-test (windows-latest): rules/prefer-dom-node-remove.js#L78
Unexpected 'todo' comment: 'TODO: Allow case like...'