5.0.0 Release
- New rules were added, which could potentially break builds.
- Requires eslint
6.2.1
or newer.
- Adds rules.
- eslint/array-element-newline
- eslint/function-call-argument-newline
- eslint/max-classes-per-file
- eslint/no-async-promise-executor
- eslint/no-await-in-loop
- eslint/no-misleading-character-class
- eslint/no-useless-catch
- eslint/prefer-object-spread
- eslint/require-unicode-regexp
- eslint-comments/no-unused-enable
- jest/no-alias-methods
- jest/no-commented-out-tests
- jest/no-duplicate-hooks
- jest/no-empty-title
- jest/no-expect-resolves
- jest/no-if
- jest/no-jest-import
- jest/no-mocks-import
- jest/no-standalone-expect
- jest/no-test-callback
- jest/no-test-prefixes
- jest/no-test-return-statement
- jest/no-truthy-falsy
- jest/no-try-expect
- jest/prefer-called-with
- jest/prefer-spy-on
- jest/prefer-strict-equal
- jest/prefer-to-contain
- jest/prefer-todo
- jest/require-tothrow-message
- node/no-unsupported-features/es-builtins
- node/no-unsupported-features/node-builtins
- node/prefer-global/buffer
- node/prefer-global/console
- node/prefer-global/process
- node/prefer-global/text-decoder
- node/prefer-global/text-encoder
- node/prefer-global/url
- node/prefer-global/url-search-params
- react/jsx-curly-newline
- react/jsx-fragments
- react/jsx-one-expression-per-line
- react/jsx-props-no-multi-spaces
- react/no-unsafe
- react/prefer-read-only-props
- react/state-in-constructor
- react/static-property-placement
- react-hooks/exhaustive-deps
- react-hooks/rules-of-hooks
- react-native/no-unused-styles
- react-native/sort-styles
- unicorn/filename-case
- unicorn/no-abusive-eslint-disable
- unicorn/no-console-spaces
- unicorn/no-for-loop
- unicorn/no-unused-properties
- unicorn/no-zero-fractions
- unicorn/prefer-event-key
- unicorn/prefer-flat-map
- unicorn/prefer-includes
- unicorn/prefer-node-append
- unicorn/prefer-node-remove
- unicorn/prefer-query-selector
- unicorn/prefer-text-content
- unicorn/regex-shorthand
- Dynamically enables / disables plugins (and thus rules) based on
package.json
dependencies. - Changes
ecmaVersion
from2019
to2020
. - Changes rule options.
- eslint/camelcase
- Adds
ignoreDestructuring
option.
- Adds
- eslint/no-unused-vars
- Adds
args
,caughtErrors
,ignoreRestSiblings
, andvars
options.
- Adds
- import/no-useless-path-segments
- Adds
noUselessIndex
option.
- Adds
- jest/valid-expect
- Adds
alwaysAwait: true
option.
- Adds
- react/jsx-indent
- Adds
checkAttributes
andindentLogicalExpressions
options.
- Adds
- react/no-string-refs
- Adds
noTemplateLiterals
option.
- Adds
- unicorn/filename-case
- Adds
pascalCase
option.
- Adds
- eslint/camelcase
- Removes rules.