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-awaitas "warn"no-useless-constructoras "error"node/no-unpublished-requireas "error"node/shebangas "error"unicorn/no-array-push-pushas "warn"unicorn/prefer-array-index-ofas "warn"unicorn/prefer-date-nowas "warn"@typescript-eslint/default-param-lastas "error" (extends the ESlint rule)@typescript-eslint/no-dupe-class-membersas "error" (extends the ESlint rule)@typescript-eslint/no-duplicate-importsas "error" (extends the ESlint rule)@typescript-eslint/no-redeclareas "error" (extends the ESlint rule)react/no-children-propas "error"react/no-danger-with-childrenas "error"react/no-find-dom-nodeas "error"react/no-render-return-valueas "error"react/no-this-in-sfcas "error"react/void-dom-elements-no-childrenas "error"react/jsx-no-bindas "error"react/jsx-no-target-blankas "error" withenforceDynamicLinks:alwaysreact/jsx-no-useless-fragmentas "error"
Removed
no-restricted-syntaxas "WithStatement" is replaced withno-withprefer-arrow-callback(was "off")@typescript-eslint/array-typeas it's too opinionatedimport/named(was "error")
Changed
- Add
document,navigator,windowto ESLintglobals, as StandardJS does. - Add
convertPathoption tosettings/nodefor "./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
noTemplateLiteralsoption toreact/no-string-refs - Change
complexityfrom 10 to 12 - Change
curlyfrom "error" to "warn" - Change
commentPatternfrom "^no ?default$" to "^no default$" (require space) indefault-case. - Change
react/jsx-max-depthfrom 5 to 6 - Change
unicorn/no-unreadable-array-destructuringfrom "error" to "warn" - Change
unicorn/better-regexfrom "error" to "warn" - Replaced
unicorn/no-array-instanceofwithunicorn/no-instanceof-array - Replaced
unicorn/prefer-text-contentwithunicorn/prefer-dom-node-text-content - Replaced
unicorn/prefer-node-removewithunicorn/prefer-dom-node-remove - Replaced
unicorn/prefer-event-keywithunicorn/prefer-keyboard-event-key - Replaced
unicorn/prefer-starts-ends-withwithunicorn/prefer-string-starts-ends-with - Revert
@typescript-eslint/member-delimiter-stylesingleline delimiter to 'semi' - Remove
allowInPropTypesoption fromreact/forbid-foreign-prop-types - Remove
allowAllCapsoption 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-conventionhas 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/prettierto v2.0.5 (prettierx 0.14.0)
[0.7.0] - 2020-08-10
Added
impliedStrict: truetoparserOptionsdefault-case-lastif running ESLint 7.0default-param-lastno-constructor-returnno-useless-backreferenceif running ESLint 7.0for-directionas errorno-dupe-else-ifas errorno-setter-returnno-import-assignnode/no-mixed-requiresnode/no-deprecated-api@typescript-eslint/naming-conventionto replace obsolete rules.
Changed
- Use
es2017insteades6in theenvblock. - Use
@typescript-eslint/no-unused-expressionsto allow TS 3.7 "Optional Chaining". - Replaced deprecated ESLint
no-native-reassignwithno-global-assign - Replaced deprecated ESLint
no-process-exitwithnode/no-process-exit - Replaced deprecated ESLint
no-buffer-constructor, this is included innode/no-deprecated-api - Changed options for
import/no-cycleto{ maxDepth: 3, ignoreExternal: true }
Removed
@typescript-eslint/camelcase@typescript-eslint/class-name-casing@typescript-eslint/member-namingunicorn/no-process-exit
v0.7.0 with Prettierx 0.13.1
[0.7.0] - 2020-08-10
Added
impliedStrict: truetoparserOptionsdefault-case-lastif running ESLint 7.0default-param-lastno-constructor-returnno-useless-backreferenceif running ESLint 7.0for-directionas errorno-dupe-else-ifas errorno-setter-returnno-import-assignnode/no-mixed-requiresnode/no-deprecated-api@typescript-eslint/naming-conventionto replace obsolete rules.
Changed
- Use
es2017insteades6in theenvblock. - Use
@typescript-eslint/no-unused-expressionsto allow TS 3.7 "Optional Chaining". - Replaced deprecated ESLint
no-native-reassignwithno-global-assign - Replaced deprecated ESLint
no-process-exitwithnode/no-process-exit - Replaced deprecated ESLint
no-buffer-constructor, this is included innode/no-deprecated-api - Changed options for
import/no-cycleto{ maxDepth: 3, ignoreExternal: true }
Removed
@typescript-eslint/camelcase@typescript-eslint/class-name-casing@typescript-eslint/member-namingunicorn/no-process-exit
v0.6.1 with prettierx 0.12.0
[0.6.1] - 2020-05-14
Changed
- Rename
unicorn/regex-shorthandrule 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