Skip to content

Releases: aMarCruz/eslint-config-standardize

v0.9.1

28 Apr 15:15
Compare
Choose a tag to compare

[0.9.1] - 2001-04-28

Changed

  • Remove warnOnUnsupportedTypeScriptVersion to allow TypeScript version check.
  • Include "PascalCase" format for functions and methods in @typescript-eslint/naming-convention to allow Functional Components in react and preact.

v0.9.0 with Prettierx 0.19

27 Apr 23:38
Compare
Choose a tag to compare

[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" with enforceDynamicLinks:always
  • react/jsx-no-useless-fragment as "error"

Removed

  • no-restricted-syntax as "WithStatement" is replaced with no-with
  • prefer-arrow-callback (was "off")
  • @typescript-eslint/array-type as it's too opinionated
  • import/named (was "error")

Changed

  • Add document, navigator, window to ESLint globals, as StandardJS does.
  • Add convertPath option to settings/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 in spaced-comment
  • Add noTemplateLiterals option to react/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) in default-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 with unicorn/no-instanceof-array
  • Replaced unicorn/prefer-text-content with unicorn/prefer-dom-node-text-content
  • Replaced unicorn/prefer-node-remove with unicorn/prefer-dom-node-remove
  • Replaced unicorn/prefer-event-key with unicorn/prefer-keyboard-event-key
  • Replaced unicorn/prefer-starts-ends-with with unicorn/prefer-string-starts-ends-with
  • Revert @typescript-eslint/member-delimiter-style singleline delimiter to 'semi'
  • Remove allowInPropTypes option from react/forbid-foreign-prop-types
  • Remove allowAllCaps option in react/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

07 Feb 23:07
Compare
Choose a tag to compare

[0.8.0] - 2021-02-07

Changed

  • Autodetect React and Preact installations.
  • Updated prettierx to 0.17.0

v0.7.2 with Prettierx 0.16.0

20 Jan 02:12
Compare
Choose a tag to compare

[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) and env.es2021:true
  • Updated prettierx to 0.16.0, TS to 4.x and other dependencies.

Removed

v0.7.1 with Prettierx 0.14.0 for ESLint 7.2+

11 Aug 02:57
Compare
Choose a tag to compare

[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 to parserOptions
  • default-case-last if running ESLint 7.0
  • default-param-last
  • no-constructor-return
  • no-useless-backreference if running ESLint 7.0
  • for-direction as error
  • no-dupe-else-if as error
  • no-setter-return
  • no-import-assign
  • node/no-mixed-requires
  • node/no-deprecated-api
  • @typescript-eslint/naming-convention to replace obsolete rules.

Changed

  • Use es2017 instead es6 in the env block.
  • Use @typescript-eslint/no-unused-expressions to allow TS 3.7 "Optional Chaining".
  • Replaced deprecated ESLint no-native-reassign with no-global-assign
  • Replaced deprecated ESLint no-process-exit with node/no-process-exit
  • Replaced deprecated ESLint no-buffer-constructor, this is included in node/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

11 Aug 02:25
Compare
Choose a tag to compare

[0.7.0] - 2020-08-10

Added

  • impliedStrict: true to parserOptions
  • default-case-last if running ESLint 7.0
  • default-param-last
  • no-constructor-return
  • no-useless-backreference if running ESLint 7.0
  • for-direction as error
  • no-dupe-else-if as error
  • no-setter-return
  • no-import-assign
  • node/no-mixed-requires
  • node/no-deprecated-api
  • @typescript-eslint/naming-convention to replace obsolete rules.

Changed

  • Use es2017 instead es6 in the env block.
  • Use @typescript-eslint/no-unused-expressions to allow TS 3.7 "Optional Chaining".
  • Replaced deprecated ESLint no-native-reassign with no-global-assign
  • Replaced deprecated ESLint no-process-exit with node/no-process-exit
  • Replaced deprecated ESLint no-buffer-constructor, this is included in node/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

15 May 04:56
Compare
Choose a tag to compare

[0.6.1] - 2020-05-14

Changed

  • Rename unicorn/regex-shorthand rule to unicorn/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

13 Feb 18:49
Compare
Choose a tag to compare

[0.6.0] - 2020-02-13

Added

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

v0.5.0

21 Nov 20:45
Compare
Choose a tag to compare

[0.5.0] - 2019-11-21

Added

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

v0.4.2

31 Oct 05:09
Compare
Choose a tag to compare

[0.4.2] - 2019-11-01

Changed

  • Fix an errors bin/list-eslint-config.js
  • Minimum ESLint v6.0.1 in peerDependencies because there's bugs in 6.0.0
  • Reformat code using Prettierx and the VS Code plugin.