Releases: aMarCruz/eslint-config-standardize
Releases · aMarCruz/eslint-config-standardize
v0.9.1
v0.9.0 with Prettierx 0.19
[0.9.0] - 2021-04-27
added
no-return-await
as "warn"no-useless-constructor
as "error"node/no-unpublished-require
as "error"node/shebang
as "error"unicorn/no-array-push-push
as "warn"unicorn/prefer-array-index-of
as "warn"unicorn/prefer-date-now
as "warn"@typescript-eslint/default-param-last
as "error" (extends the ESlint rule)@typescript-eslint/no-dupe-class-members
as "error" (extends the ESlint rule)@typescript-eslint/no-duplicate-imports
as "error" (extends the ESlint rule)@typescript-eslint/no-redeclare
as "error" (extends the ESlint rule)react/no-children-prop
as "error"react/no-danger-with-children
as "error"react/no-find-dom-node
as "error"react/no-render-return-value
as "error"react/no-this-in-sfc
as "error"react/void-dom-elements-no-children
as "error"react/jsx-no-bind
as "error"react/jsx-no-target-blank
as "error" withenforceDynamicLinks:always
react/jsx-no-useless-fragment
as "error"
Removed
no-restricted-syntax
as "WithStatement" is replaced withno-with
prefer-arrow-callback
(was "off")@typescript-eslint/array-type
as it's too opinionatedimport/named
(was "error")
Changed
- Add
document
,navigator
,window
to ESLintglobals
, as StandardJS does. - Add
convertPath
option tosettings/node
for "./src/bin" to "./bin" translation. - Add options to allow "amd" in
import/no-absolute-path
- Add
"#__INLINE__"
and"#__NOINLINE__"
to markers of block inspaced-comment
- Add
noTemplateLiterals
option toreact/no-string-refs
- Change
complexity
from 10 to 12 - Change
curly
from "error" to "warn" - Change
commentPattern
from "^no ?default$" to "^no default$" (require space) indefault-case
. - Change
react/jsx-max-depth
from 5 to 6 - Change
unicorn/no-unreadable-array-destructuring
from "error" to "warn" - Change
unicorn/better-regex
from "error" to "warn" - Replaced
unicorn/no-array-instanceof
withunicorn/no-instanceof-array
- Replaced
unicorn/prefer-text-content
withunicorn/prefer-dom-node-text-content
- Replaced
unicorn/prefer-node-remove
withunicorn/prefer-dom-node-remove
- Replaced
unicorn/prefer-event-key
withunicorn/prefer-keyboard-event-key
- Replaced
unicorn/prefer-starts-ends-with
withunicorn/prefer-string-starts-ends-with
- Revert
@typescript-eslint/member-delimiter-style
singleline delimiter to 'semi' - Remove
allowInPropTypes
option fromreact/forbid-foreign-prop-types
- Remove
allowAllCaps
option inreact/jsx-pascal-case
- Now the rules are extracted and prepared from the prettierx, standard, and standard-jsx configurations at build time, so its packages are not required at runtime and have been moved to
devDependencies
. - eslint-plugin-prettierx is included and enabled in this package. You don't need to include the "eslint-plugin-prettierx/standardize-bundle" configuration.
- Scripts have been added to package.json to list obsolete and unused rules. This through the eslint-find-rules package.
- The rule
@typescript-eslint/naming-convention
has been relaxed to allow edge cases. - Workaround for typescript-eslint/typescript-eslint#2540 bug with
no-use-before-define
. - Update dependencies.
v0.8.0
v0.7.2 with Prettierx 0.16.0
[0.7.2] - 2021-01-19
Changed
- Use the default StandardJS level (error) for
no-case-declarations
- Use wide version range for typescript-eslint devDependencies.
- Set
parserOptions.ecmaVersion:2021
(12) andenv.es2021:true
- Updated prettierx to 0.16.0, TS to 4.x and other dependencies.
Removed
- eslint-plugin-standard - see standard#1316
v0.7.1 with Prettierx 0.14.0 for ESLint 7.2+
[0.7.1] - 2020-08-10
Changed
The only change from v0.7.0
- Update internal
aMarCruz/prettier
to v2.0.5 (prettierx 0.14.0)
[0.7.0] - 2020-08-10
Added
impliedStrict: true
toparserOptions
default-case-last
if running ESLint 7.0default-param-last
no-constructor-return
no-useless-backreference
if running ESLint 7.0for-direction
as errorno-dupe-else-if
as errorno-setter-return
no-import-assign
node/no-mixed-requires
node/no-deprecated-api
@typescript-eslint/naming-convention
to replace obsolete rules.
Changed
- Use
es2017
insteades6
in theenv
block. - Use
@typescript-eslint/no-unused-expressions
to allow TS 3.7 "Optional Chaining". - Replaced deprecated ESLint
no-native-reassign
withno-global-assign
- Replaced deprecated ESLint
no-process-exit
withnode/no-process-exit
- Replaced deprecated ESLint
no-buffer-constructor
, this is included innode/no-deprecated-api
- Changed options for
import/no-cycle
to{ maxDepth: 3, ignoreExternal: true }
Removed
@typescript-eslint/camelcase
@typescript-eslint/class-name-casing
@typescript-eslint/member-naming
unicorn/no-process-exit
v0.7.0 with Prettierx 0.13.1
[0.7.0] - 2020-08-10
Added
impliedStrict: true
toparserOptions
default-case-last
if running ESLint 7.0default-param-last
no-constructor-return
no-useless-backreference
if running ESLint 7.0for-direction
as errorno-dupe-else-if
as errorno-setter-return
no-import-assign
node/no-mixed-requires
node/no-deprecated-api
@typescript-eslint/naming-convention
to replace obsolete rules.
Changed
- Use
es2017
insteades6
in theenv
block. - Use
@typescript-eslint/no-unused-expressions
to allow TS 3.7 "Optional Chaining". - Replaced deprecated ESLint
no-native-reassign
withno-global-assign
- Replaced deprecated ESLint
no-process-exit
withnode/no-process-exit
- Replaced deprecated ESLint
no-buffer-constructor
, this is included innode/no-deprecated-api
- Changed options for
import/no-cycle
to{ maxDepth: 3, ignoreExternal: true }
Removed
@typescript-eslint/camelcase
@typescript-eslint/class-name-casing
@typescript-eslint/member-naming
unicorn/no-process-exit
v0.6.1 with prettierx 0.12.0
[0.6.1] - 2020-05-14
Changed
- Rename
unicorn/regex-shorthand
rule tounicorn/better-regex
- Minimum ESLint 6.8.0
- Update Prettierx to v0.12.0
- Updated dependencies.
Removed
v0.6.0 with for ESLint 6.7.2 or above
[0.6.0] - 2020-02-13
Added
- '@typescript-eslint/await-thenable' as warn.
- 'react/jsx-no-script-url' using defaults as error.
- 'prefer-arrow-callback' using defaults as error.
Changed
- Require NodeJS 10.13, 12.0, or above (compatibile with ESLint 6.8)
- Updated dependencies.
- Set 'no-useless-constructor' to error (the StandardJS seeting).
Removed
- 'no-catch-shadow'
- 'require-await'
- Dependency on eslint-config-standard.
- The fake Prettier package now lives in aMarCruz/prettier.
v0.5.0
[0.5.0] - 2019-11-21
Added
- eslint-plugin-react-hooks
- preact config.
Changed
- '@typescript-eslint/member-delimiter-style' singleline delimiter to 'comma'
- Update Prettierx to v0.10.0, based on Prettier 1.9.1
- Update fake Prettier package to report version 1.9.1
- Minimum ESLint 6.2.2
- Internal: rename lib/get-conf.js to lib/merged-conf.js