JavaScript lints, page 2 of 2
The lint rules of JavaScript, with what each one finds. This page has 292 cards.
It finds code that is likely to be a bug. It is in the recommended config.
- Code
no-unassigned-vars
It finds code that is likely to be a bug. It is in the recommended config.
- Code
no-undef
It suggests a better way to write code.
- Code
no-undef-init
It suggests a better way to write code.
- Code
no-undefined
It suggests a better way to write code.
- Code
no-underscore-dangle
It finds code that is likely to be a bug. It is in the recommended config.
- Code
no-unexpected-multiline
It finds code that is likely to be a bug.
- Code
no-unmodified-loop-condition
It suggests a better way to write code.
- Code
no-unneeded-ternary
It finds code that is likely to be a bug. It is in the recommended config.
- Code
no-unreachable
It finds code that is likely to be a bug.
- Code
no-unreachable-loop
It finds code that is likely to be a bug. It is in the recommended config.
- Code
no-unsafe-finally
It finds code that is likely to be a bug. It is in the recommended config.
- Code
no-unsafe-negation
It finds code that is likely to be a bug. It is in the recommended config.
- Code
no-unsafe-optional-chaining
It suggests a better way to write code.
- Code
no-unused-expressions
It suggests a better way to write code. It is in the recommended config.
- Code
no-unused-labels
It finds code that is likely to be a bug. It is in the recommended config.
- Code
no-unused-private-class-members
It finds code that is likely to be a bug. It is in the recommended config.
- Code
no-unused-vars
It finds code that is likely to be a bug.
- Code
no-use-before-define
It finds code that is likely to be a bug. It is in the recommended config.
- Code
no-useless-assignment
It finds code that is likely to be a bug. It is in the recommended config.
- Code
no-useless-backreference
It suggests a better way to write code.
- Code
no-useless-call
It suggests a better way to write code. It is in the recommended config.
- Code
no-useless-catch
It suggests a better way to write code.
- Code
no-useless-computed-key
It suggests a better way to write code.
- Code
no-useless-concat
It suggests a better way to write code.
- Code
no-useless-constructor
It suggests a better way to write code. It is in the recommended config.
- Code
no-useless-escape
It suggests a better way to write code.
- Code
no-useless-rename
It suggests a better way to write code.
- Code
no-useless-return
It suggests a better way to write code.
- Code
no-var
It suggests a better way to write code.
- Code
no-void
It checks the layout of code. ESLint deprecated this rule.
- Code
no-whitespace-before-property
It suggests a better way to write code. It is in the recommended config.
- Code
no-with
It checks the layout of code. ESLint deprecated this rule.
- Code
nonblock-statement-body-position
It checks the layout of code. ESLint deprecated this rule.
- Code
object-curly-newline
It checks the layout of code. ESLint deprecated this rule.
- Code
object-curly-spacing
It checks the layout of code. ESLint deprecated this rule.
- Code
object-property-newline
It suggests a better way to write code.
- Code
object-shorthand
It suggests a better way to write code.
- Code
one-var
It suggests a better way to write code. ESLint deprecated this rule.
- Code
one-var-declaration-per-line
It suggests a better way to write code.
- Code
operator-assignment
It checks the layout of code. ESLint deprecated this rule.
- Code
operator-linebreak
It checks the layout of code. ESLint deprecated this rule.
- Code
padded-blocks
It checks the layout of code. ESLint deprecated this rule.
- Code
padding-line-between-statements
It suggests a better way to write code.
- Code
prefer-arrow-callback
It suggests a better way to write code.
- Code
prefer-const
It suggests a better way to write code.
- Code
prefer-destructuring
It suggests a better way to write code.
- Code
prefer-exponentiation-operator
It suggests a better way to write code.
- Code
prefer-named-capture-group
It suggests a better way to write code.
- Code
prefer-numeric-literals
It suggests a better way to write code.
- Code
prefer-object-has-own
It suggests a better way to write code.
- Code
prefer-object-spread
It suggests a better way to write code.
- Code
prefer-promise-reject-errors
It suggests a better way to write code. ESLint deprecated this rule.
- Code
prefer-reflect
It suggests a better way to write code.
- Code
prefer-regex-literals
It suggests a better way to write code.
- Code
prefer-rest-params
It suggests a better way to write code.
- Code
prefer-spread
It suggests a better way to write code.
- Code
prefer-template
It suggests a better way to write code. It is in the recommended config.
- Code
preserve-caught-error
It suggests a better way to write code. ESLint deprecated this rule.
- Code
quote-props
It checks the layout of code. ESLint deprecated this rule.
- Code
quotes
It suggests a better way to write code.
- Code
radix
It finds code that is likely to be a bug.
- Code
require-atomic-updates
It suggests a better way to write code.
- Code
require-await
It suggests a better way to write code.
- Code
require-unicode-regexp
It suggests a better way to write code. It is in the recommended config.
- Code
require-yield
It checks the layout of code. ESLint deprecated this rule.
- Code
rest-spread-spacing
It checks the layout of code. ESLint deprecated this rule.
- Code
semi
It checks the layout of code. ESLint deprecated this rule.
- Code
semi-spacing
It checks the layout of code. ESLint deprecated this rule.
- Code
semi-style
It suggests a better way to write code.
- Code
sort-imports
It suggests a better way to write code.
- Code
sort-keys
It suggests a better way to write code.
- Code
sort-vars
It checks the layout of code. ESLint deprecated this rule.
- Code
space-before-blocks
It checks the layout of code. ESLint deprecated this rule.
- Code
space-before-function-paren
It checks the layout of code. ESLint deprecated this rule.
- Code
space-in-parens
It checks the layout of code. ESLint deprecated this rule.
- Code
space-infix-ops
It checks the layout of code. ESLint deprecated this rule.
- Code
space-unary-ops
It suggests a better way to write code.
- Code
strict
It checks the layout of code. ESLint deprecated this rule.
- Code
switch-colon-spacing
It suggests a better way to write code.
- Code
symbol-description
It checks the layout of code. ESLint deprecated this rule.
- Code
template-curly-spacing
It checks the layout of code. ESLint deprecated this rule.
- Code
template-tag-spacing
It checks the layout of code.
- Code
unicode-bom
It finds code that is likely to be a bug. It is in the recommended config.
- Code
use-isnan
It finds code that is likely to be a bug. It is in the recommended config.
- Code
valid-typeof
It suggests a better way to write code.
- Code
vars-on-top
It checks the layout of code. ESLint deprecated this rule.
- Code
wrap-iife
It checks the layout of code. ESLint deprecated this rule.
- Code
wrap-regex
It checks the layout of code. ESLint deprecated this rule.
- Code
yield-star-spacing
It suggests a better way to write code.
- Code
yoda