Skip to content

Releases: torchbox/eslint-config-torchbox

v1.1.0

01 Jul 11:13
Compare
Choose a tag to compare

1.1.0 (2022-07-01)

Features

  • Allow tailwind.config files for devDependencies imports check.

Upgrading to v1.1.0

Follow the v0.6.0 recommended steps, with 1.1.0 as the version number.

Then, if your project disabled import/no-extraneous-dependencies for Tailwind configuration files, this can now be removed.

v1.0.0

30 May 16:14
Compare
Choose a tag to compare

1.0.0 (2022-05-30)

This release is functionally identical to v0.6.0.

The project has reached a high-enough level of stability, with no breaking changes expected in minor releases outside of rules changes as per ESLint’s policy.

Note the experimental TypeScript support is still experimental, and opt-in, and as such may still change in minor or patch releases.

v0.6.0 – TypeScript support

09 Mar 12:17
Compare
Choose a tag to compare

0.6.0 (2022-03-09)

Features

  • Built-in TypeScript support, via an experimental opt-in torchbox/typescript configuration.
  • Additional peerDependencies added for TypeScript support: @typescript-eslint/eslint-plugin, and @typescript-eslint/parser. Both will be installed automatically in npm v7+, and should not change how the base configuration works in any way.

v0.5.0 – ESLint v8

23 Dec 02:07
Compare
Choose a tag to compare

0.5.0 (2021-12-13)

Features

There are a number of existing rules that are now enforced:

And brand new rules introduced with this release:

BREAKING CHANGES

This release updates most of the dependencies of the config:

package from to
eslint ^7.2.0 ^8.2.0
eslint-config-airbnb ^18.2.1 ^19.0.2
eslint-config-prettier ^8.3.0 ^8.3.0
eslint-plugin-react ^7.24.0 ^7.27.1
eslint-plugin-react-hooks ^4.2.0 ^4.3.0
eslint-plugin-jsx-a11y ^6.4.1 ^6.5.1
eslint-plugin-import ^2.23.4 ^2.25.3

Users of npm v7 can npm install --save-dev eslint-config-torchbox@latest and this will automatically install all required peer dependencies.

For older versions of npm, use npx install-peerdeps --dev eslint-config-torchbox@latest so all other peerDependencies are updated as well.

v0.4.0 – ESLint v7

15 Jul 06:35
Compare
Choose a tag to compare

0.4.0 (2021-07-15)

Features

  • Update to ESLint v7 and eslint-config-airbnb v18.2.1, changing rules that are applied with this config.
  • Update to eslint-config-prettier v8, which no longer requires specifying sub-configurations separately for different frameworks or syntaxes.

Here is a summary of significant rule changes:

jsx-a11y/aria-role (https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md):
-`error, ignoreNonDom: false`
+`error, ignoreNonDOM: false`
react/sort-comp (https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md):
-`error, order: static-methods, instance-variables, lifecycle,…`
+`error, order: static-variables, static-methods, instance-var…`
react/jsx-props-no-spreading (https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-spreading.md):
-`error, html: enforce, custom: enforce, exceptions:`
+`error, html: enforce, custom: enforce, explicitSpread: ignore`
import/order (https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md):
-`error, groups: builtin, external, internal`
+`error, groups: builtin, external, internal, warnOnUnassigned…`
import/no-cycle (https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-cycle.md):
-`error, maxDepth: null`
+`error, maxDepth: ∞, ignoreExternal: false`
import/no-useless-path-segments (https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-useless-path-segments.md)
- `error`
+`error, commonjs: true`
array-callback-return (https://eslint.org/docs/rules/array-callback-return):
-`error, allowImplicit: true`
+`error, allowImplicit: true, checkForEach: false`

No longer enforced:

- jsx-a11y/accessible-emoji (https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/accessible-emoji.md) (deprecated)

BREAKING CHANGES

This release updates most of the dependencies of the config:

package from to
eslint ^6.0.0 ^7.2.0
eslint-config-airbnb ^18.0.0 ^18.2.1
eslint-config-prettier ^6.0.0 ^8.3.0
eslint-plugin-react ^7.16.0 ^7.24.0
eslint-plugin-react-hooks ^1.7.0 ^4.2.0
eslint-plugin-jsx-a11y ^6.2.0 ^6.4.1
eslint-plugin-import ^2.18.0 ^2.23.4

Users of npm v7 can npm install --save-dev eslint-config-torchbox@latest and this will automatically install all required peer dependencies.

For older versions of npm, use npx install-peerdeps --dev eslint-config-torchbox@latest so all other peerDependencies are updated as well.

v0.3.3

12 Mar 16:19
Compare
Choose a tag to compare

0.3.3 (2020-03-12)

Bug fixes

  • Fix dev dependencies warnings in Storybook config and stories written in .stories.js files.

v0.3.2

15 Oct 11:45
Compare
Choose a tag to compare

0.3.2 (2019-10-15)

Bug fixes

  • Whitelist setupTests files for devDependencies imports check.

v0.3.1

09 Oct 12:55
Compare
Choose a tag to compare

0.3.1 (2019-10-09)

Bug fixes

v0.3.0

08 Oct 17:14
cceca51
Compare
Choose a tag to compare

0.3.0 (2019-10-08)

Features

  • Update to ESLint v6 and eslint-config-airbnb v18, significantly changing rules that are applied with this config (#4, #10).
  • Include rules for the React Rules of hooks (#3, #10), from the airbnb config update.
  • Automatically detect which version of React is being used on the project to lint accordingly (part of the airbnb config update) (#10).

BREAKING CHANGES

This release updates most of the dependencies of the config:

package from to
eslint ^5.0.0 ^6.0.0
eslint-config-airbnb ^17.1.0 ^18.0.0
eslint-plugin-react ^7.14.0 ^7.16.0
eslint-plugin-react-hooks N/A ^1.7.0

To update, use npx install-peerdeps --dev eslint-config-torchbox@latest so all other peerDependencies are updated as well.


Additionally, this config now requires react to be defined as a dependency on the project. Please refer to our React configuration instructions if you wish to bypass this.

v0.2.0

16 Jul 11:29
Compare
Choose a tag to compare

0.2.0 (2019-07-16)

Features

BREAKING CHANGES