Releases: manovotny/eslint-config-get-off-my-lawn
Releases · manovotny/eslint-config-get-off-my-lawn
6.0.0 Release
- New rules were added, which could potentially break builds.
- Requires node
10
or higher. - Requires eslint
7.22.0
or higher.
- Adds automatic configuration of your babel config for
@babel/eslint-parser
. - Adds new environments.
commonjs
shared-node-browser
- Adds reporting of unused
eslint-disable
comments. - Adds better browser global support.
- Adds rules.
- eslint/default-case-last
- eslint/default-param-last
- eslint/grouped-accessor-pairs
- eslint/no-dupe-else-if
- eslint/no-invalid-this
- eslint/no-loss-of-precision
- eslint/no-nonoctal-decimal-escape
- eslint/no-promise-executor-return
- eslint/no-restricted-imports
- Disallows
moment
.
- Disallows
- eslint/no-setter-return
- eslint/no-unreachable-loop
- eslint/no-unsafe-optional-chaining
- eslint/no-useless-backreference
- eslint/prefer-exponentiation-operator
- eslint/prefer-named-capture-group
- eslint/prefer-regex-literals
- import/group-exports
- jest/expect-expect
- jest/no-conditional-expect
- jest/no-deprecated-functions
- jest/no-done-callback
- jest/no-interpolation-in-snapshots
- jest/no-restricted-matchers
- jest/prefer-hooks-on-top
- jest/valid-title
- jsx-a11y/autocomplete-valid
- node/callback-return
- node/handle-callback-err
- node/no-callback-literal
- node/no-exports-assign
- node/no-new-require
- node/no-path-concat
- node/no-process-exit
- node/no-sync
- node/prefer-promises/dns
- node/prefer-promises/fs
- react-native/no-single-element-style-arrays
- react/function-component-definition
- react/jsx-curly-brace-presence
- react/jsx-no-constructed-context-values
- react/jsx-no-script-url
- react/jsx-sort-default-props
- react/no-adjacent-inline-elements
- unicorn/better-regex
- unicorn/consistent-destructuring
- unicorn/consistent-function-scoping
- unicorn/empty-brace-spaces
- unicorn/filename-case
- unicorn/no-array-push-push
- unicorn/no-instanceof-array
- unicorn/no-lonely-if
- unicorn/no-nested-ternary
- unicorn/no-new-array
- unicorn/no-null
- unicorn/no-object-as-default-parameter
- unicorn/no-process-exit
- unicorn/no-this-assignment
- unicorn/prefer-array-find
- unicorn/prefer-array-flat-map
- unicorn/prefer-array-some
- unicorn/prefer-date-now
- unicorn/prefer-default-parameters
- unicorn/prefer-dom-node-append
- unicorn/prefer-dom-node-dataset
- unicorn/prefer-dom-node-remove
- unicorn/prefer-dom-node-text-content
- unicorn/prefer-keyboard-event-key
- unicorn/prefer-math-trunc
- unicorn/prefer-negative-index
- [unicorn/pref...
6.0.0-beta.6 Release
- Adds rules.
- Changes rule options.
- jest/expect-expect
- Adds
assert*
andexpect*
as approved function prefixes.
- Adds
- jest/expect-expect
- Removes plugins.
- eslint-plugin-babel
- It was replaced with @babel/eslint-plugin, but the rules it's meant to override are not configurable in the same way. For example, the
@babel/new-cap
rule does not have acapIsNewExceptions
option like the base eslint rule.
- It was replaced with @babel/eslint-plugin, but the rules it's meant to override are not configurable in the same way. For example, the
- eslint-plugin-babel
- Removes rules.
- eslint/no-process-exit
- Replaced by
unicorn/no-process-exit
.
- Replaced by
- eslint/no-process-exit
6.0.0-beta.5 Release
- Fixes sporadic
eslint couldn't find the plugin
errors (see eslint/eslint#3458 for more information).
6.0.0-beta.4 Release
- Requires eslint
7.21.0
or higher.
- Removes fix for sporadic
eslint couldn't find the plugin
errors (error was caused by local linking).
6.0.0-beta.3 Release
- Adds new environments.
commonjs
shared-node-browser
- Adds reporting of unused
eslint-disable
comments. - Adds better browser global support.
- Fixes sporadic
eslint couldn't find the plugin
errors (see eslint/eslint#3458 for more information). - Fixes
jest
typo in package.json discovery which caused issues with enabling jest related rules.
6.0.0-beta.2 Release
- Adds rules.
- Removes rules.
- get-off-my-lawn/prefer-length-truthiness
- Too many false positives.
- import/no-unused-modules
- Doesn't work well with MDX files and flags all kinds of false positives with config files, cli scripts, etc.
- node/no-unsupported-features/es-syntax
- Node doesn't support
import
andexport
natively, so it'll be a long time before this can be enabled.
- Node doesn't support
- react/jsx-no-literals
- Superseded by
react/jsx-curly-brace-presence
.
- Superseded by
- get-off-my-lawn/prefer-length-truthiness
6.0.0-beta.1 Release
- New rules were added, which could potentially break builds.
- Requires node
10
or higher. - Requires eslint
7.20.0
or higher.
- Adds automatic configuration of your babel config for
@babel/eslint-parser
. - Adds rules.
- eslint/default-case-last
- eslint/default-param-last
- eslint/grouped-accessor-pairs
- eslint/no-dupe-else-if
- eslint/no-invalid-this
- eslint/no-loss-of-precision
- eslint/no-nonoctal-decimal-escape
- eslint/no-promise-executor-return
- eslint/no-restricted-imports
- Disallows
moment
.
- Disallows
- eslint/no-setter-return
- eslint/no-unreachable-loop
- eslint/no-unsafe-optional-chaining
- eslint/no-useless-backreference
- eslint/prefer-exponentiation-operator
- eslint/prefer-named-capture-group
- eslint/prefer-regex-literals
- get-off-my-lawn/prefer-length-truthiness
- import/group-exports
- import/no-unused-modules
- jest/expect-expect
- jest/no-conditional-expect
- jest/no-deprecated-functions
- jest/no-done-callback
- jest/no-interpolation-in-snapshots
- jest/no-restricted-matchers
- jest/prefer-hooks-on-top
- jest/valid-title
- jsx-a11y/autocomplete-valid
- node/callback-return
- node/handle-callback-err
- node/no-callback-literal
- node/no-exports-assign
- node/no-new-require
- node/no-path-concat
- node/no-process-exit
- node/no-sync
- node/no-unsupported-features/es-syntax
- node/prefer-promises/dns
- node/prefer-promises/fs
- react-native/no-single-element-style-arrays
- react/function-component-definition
- react/jsx-no-constructed-context-values
- react/jsx-no-script-url
- react/jsx-sort-default-props
- react/no-adjacent-inline-elements
- unicorn/better-regex
- unicorn/consistent-destructuring
- unicorn/consistent-function-scoping
- unicorn/empty-brace-spaces
- unicorn/no-array-push-push
- unicorn/no-instanceof-array
- unicorn/no-lonely-if
- unicorn/no-nested-ternary
- unicorn/no-new-array
- unicorn/no-null
- unicorn/no-object-as-default-parameter
- unicorn/no-this-assignment
- unicorn/prefer-array-find
- unicorn/prefer-array-flat-map
- unicorn/prefer-array-some
- unicorn/prefer-date-now
- unicorn/prefer-default-parameters
- unicorn/prefer-dom-node-append
- unicorn/prefer-dom-node-dataset
- unicorn/prefer-dom-node-remove
- unicorn/prefer-dom-node-text-content
- unicorn/prefer-keyboard-event-key
- unicorn/prefer-math-trunc
- unicorn/prefer-negative-index
- [unicorn/prefer-number-properties](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/unicorn/prefer-number-pr...
5.0.1 Release
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
...
- eslint/camelcase
5.0.0-beta.8 Release
- Requires eslint
6.2.1
or newer.
- Adds rules.
- Changes
ecmaVersion
from2019
to2020
.