Skip to content

[Tracking]: eslint core rulesΒ #223

@hardfist

Description

@hardfist

This is a tracking issue for porting the existing rules from eslint.

There are 199 rules (+ 93 deprecated).

Category βœ… Done 🚫 Won't Total
Recommended 19 0 64
Not recommended 6 0 135
Deprecated 0 93 93
Total 25 93 292

βœ… = Implemented Β |Β  🚫 = Not intending to implement


Recommended rules

βœ… 19 Β |Β  🚫 0 Β /Β  Total: 64
Status Name
βœ… constructor-super
βœ… for-direction
βœ… getter-return
βœ… no-async-promise-executor
βœ… no-case-declarations
βœ… no-class-assign
βœ… no-compare-neg-zero
βœ… no-cond-assign
βœ… no-const-assign
βœ… no-constant-binary-expression
βœ… no-constant-condition
no-control-regex
βœ… no-debugger
no-delete-var
βœ… no-dupe-args
no-dupe-class-members
no-dupe-else-if
βœ… no-dupe-keys
βœ… no-duplicate-case
βœ… no-empty
no-empty-character-class
βœ… no-empty-pattern
no-empty-static-block
no-ex-assign
no-extra-boolean-cast
no-fallthrough
no-func-assign
no-global-assign
no-import-assign
no-invalid-regexp
no-irregular-whitespace
βœ… no-loss-of-precision
no-misleading-character-class
no-new-native-nonconstructor
no-nonoctal-decimal-escape
no-obj-calls
no-octal
no-prototype-builtins
no-redeclare
no-regex-spaces
no-self-assign
no-setter-return
no-shadow-restricted-names
βœ… no-sparse-arrays
no-this-before-super
no-unassigned-vars
no-undef
no-unexpected-multiline
no-unreachable
no-unsafe-finally
no-unsafe-negation
no-unsafe-optional-chaining
no-unused-labels
no-unused-private-class-members
no-unused-vars
no-useless-assignment
no-useless-backreference
no-useless-catch
no-useless-escape
no-with
preserve-caught-error
require-yield
use-isnan
valid-typeof

Not recommended rules

βœ… 6 Β |Β  🚫 0 Β /Β  Total: 135
Status Name
accessor-pairs
βœ… array-callback-return
arrow-body-style
block-scoped-var
camelcase
capitalized-comments
class-methods-use-this
complexity
consistent-return
consistent-this
curly
βœ… default-case
default-case-last
default-param-last
dot-notation
eqeqeq
func-name-matching
func-names
func-style
grouped-accessor-pairs
guard-for-in
id-denylist
id-length
id-match
init-declarations
logical-assignment-operators
max-classes-per-file
max-depth
max-lines
max-lines-per-function
max-nested-callbacks
max-params
max-statements
new-cap
no-alert
no-array-constructor
βœ… no-await-in-loop
no-bitwise
no-caller
βœ… no-console
βœ… no-constructor-return
no-continue
no-div-regex
no-duplicate-imports
no-else-return
no-empty-function
no-eq-null
no-eval
no-extend-native
no-extra-bind
no-extra-label
no-implicit-coercion
no-implicit-globals
no-implied-eval
no-inline-comments
no-inner-declarations
no-invalid-this
no-iterator
no-label-var
no-labels
no-lone-blocks
no-lonely-if
no-loop-func
no-magic-numbers
no-multi-assign
no-multi-str
no-negated-condition
no-nested-ternary
no-new
no-new-func
no-new-wrappers
no-object-constructor
no-octal-escape
no-param-reassign
no-plusplus
no-promise-executor-return
no-proto
no-restricted-exports
no-restricted-globals
no-restricted-imports
no-restricted-properties
no-restricted-syntax
no-return-assign
no-script-url
no-self-compare
no-sequences
no-shadow
βœ… no-template-curly-in-string
no-ternary
no-throw-literal
no-undef-init
no-undefined
no-underscore-dangle
no-unmodified-loop-condition
no-unneeded-ternary
no-unreachable-loop
no-unused-expressions
no-use-before-define
no-useless-call
no-useless-computed-key
no-useless-concat
no-useless-constructor
no-useless-rename
no-useless-return
no-var
no-void
no-warning-comments
object-shorthand
one-var
operator-assignment
prefer-arrow-callback
prefer-const
prefer-destructuring
prefer-exponentiation-operator
prefer-named-capture-group
prefer-numeric-literals
prefer-object-has-own
prefer-object-spread
prefer-promise-reject-errors
prefer-regex-literals
prefer-rest-params
prefer-spread
prefer-template
radix
require-atomic-updates
require-await
require-unicode-regexp
sort-imports
sort-keys
sort-vars
strict
symbol-description
unicode-bom
vars-on-top
yoda

Deprecated rules

βœ… 0 Β |Β  🚫 93 Β /Β  Total: 93
Status Name Rationale
🚫 array-bracket-newline Deprecated
🚫 array-bracket-spacing Deprecated
🚫 array-element-newline Deprecated
🚫 arrow-parens Deprecated
🚫 arrow-spacing Deprecated
🚫 block-spacing Deprecated
🚫 brace-style Deprecated
🚫 callback-return Deprecated
🚫 comma-dangle Deprecated
🚫 comma-spacing Deprecated
🚫 comma-style Deprecated
🚫 computed-property-spacing Deprecated
🚫 dot-location Deprecated
🚫 eol-last Deprecated
🚫 func-call-spacing Deprecated
🚫 function-call-argument-newline Deprecated
🚫 function-paren-newline Deprecated
🚫 generator-star-spacing Deprecated
🚫 global-require Deprecated
🚫 handle-callback-err Deprecated
🚫 id-blacklist Deprecated
🚫 implicit-arrow-linebreak Deprecated
🚫 indent Deprecated
🚫 indent-legacy Deprecated
🚫 jsx-quotes Deprecated
🚫 key-spacing Deprecated
🚫 keyword-spacing Deprecated
🚫 line-comment-position Deprecated
🚫 linebreak-style Deprecated
🚫 lines-around-comment Deprecated
🚫 lines-around-directive Deprecated
🚫 lines-between-class-members Deprecated
🚫 max-len Deprecated
🚫 max-statements-per-line Deprecated
🚫 multiline-comment-style Deprecated
🚫 multiline-ternary Deprecated
🚫 new-parens Deprecated
🚫 newline-after-var Deprecated
🚫 newline-before-return Deprecated
🚫 newline-per-chained-call Deprecated
🚫 no-buffer-constructor Deprecated
🚫 no-catch-shadow Deprecated
🚫 no-confusing-arrow Deprecated
🚫 no-extra-parens Deprecated
🚫 no-extra-semi Deprecated
🚫 no-floating-decimal Deprecated
🚫 no-mixed-operators Deprecated
🚫 no-mixed-requires Deprecated
🚫 no-mixed-spaces-and-tabs Deprecated
🚫 no-multi-spaces Deprecated
🚫 no-multiple-empty-lines Deprecated
🚫 no-native-reassign Deprecated
🚫 no-negated-in-lhs Deprecated
🚫 no-new-object Deprecated
🚫 no-new-require Deprecated
🚫 no-new-symbol Deprecated
🚫 no-path-concat Deprecated
🚫 no-process-env Deprecated
🚫 no-process-exit Deprecated
🚫 no-restricted-modules Deprecated
🚫 no-return-await Deprecated
🚫 no-spaced-func Deprecated
🚫 no-sync Deprecated
🚫 no-tabs Deprecated
🚫 no-trailing-spaces Deprecated
🚫 no-whitespace-before-property Deprecated
🚫 nonblock-statement-body-position Deprecated
🚫 object-curly-newline Deprecated
🚫 object-curly-spacing Deprecated
🚫 object-property-newline Deprecated
🚫 one-var-declaration-per-line Deprecated
🚫 operator-linebreak Deprecated
🚫 padded-blocks Deprecated
🚫 padding-line-between-statements Deprecated
🚫 prefer-reflect Deprecated
🚫 quote-props Deprecated
🚫 quotes Deprecated
🚫 rest-spread-spacing Deprecated
🚫 semi Deprecated
🚫 semi-spacing Deprecated
🚫 semi-style Deprecated
🚫 space-before-blocks Deprecated
🚫 space-before-function-paren Deprecated
🚫 space-in-parens Deprecated
🚫 space-infix-ops Deprecated
🚫 space-unary-ops Deprecated
🚫 spaced-comment Deprecated
🚫 switch-colon-spacing Deprecated
🚫 template-curly-spacing Deprecated
🚫 template-tag-spacing Deprecated
🚫 wrap-iife Deprecated
🚫 wrap-regex Deprecated
🚫 yield-star-spacing Deprecated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions