3.0.0 Release
Breaking Changes
- New rules were added, which could potentially break builds.
eslint
is now adevDependency
andpeerDependency
ofeslint-config-get-off-my-lawn
, so it will no longer be installed transiently. You'll need to includeeslint
as adevDependency
in your own project.
- Adds rules.
- eslint/for-direction
- eslint/getter-return
- eslint/lines-between-class-members
- eslint/multiline-comment-style
- eslint/newline-after-var
- eslint/newline-before-return
- eslint/no-buffer-constructor
- eslint/no-compare-neg-zero
- eslint/no-return-await
- eslint/nonblock-statement-body-position
- eslint/padding-line-between-statements
- eslint/require-await
- eslint/semi-style
- eslint/switch-colon-spacing
- import/exports-last
- jest/no-identical-title
- jest/prefer-to-have-length
- jest/valid-expect
- node/no-extraneous-import
- node/no-extraneous-require
- node/no-unpublished-import
- node/no-unpublished-require
- node/process-exit-as-throw
- react/button-has-type
- react/forbid-elements
- react/forbid-foreign-prop-types
- react/jsx-closing-tag-location
- react/jsx-tag-spacing
- react/no-access-state-in-setstate
- react/no-array-index-key
- react/no-redundant-should-component-update
- react/no-typos
- react/no-unused-state
- react/no-will-update-set-state
- react/void-dom-elements-no-children
- unicorn/custom-error-definition
- unicorn/escape-case
- unicorn/new-for-builtins
- unicorn/no-array-instanceof
- unicorn/no-hex-escape
- unicorn/no-new-buffer
- unicorn/number-literal-case
- unicorn/prefer-starts-ends-with
- unicorn/prefer-type-error
- Adds plugins.
- Changes
ecmaVersion
from6
to2017
. - Changes rule options.
- eslint/space-before-function-paren
- Adds
asyncArrow: 'always'
option.
- Adds
- react/jsx-indent
- Adds
4
as option.
- Adds
- react/jsx-no-undef
- Adds
allowGlobals: true
option.
- Adds
- react/sort-prop-types
- Adds
sortShapeProp: true
option.
- Adds
- eslint/space-before-function-paren
- Removes rules.
- Removes plugins.