All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Drops support for Node versions < 16. No new functionality is introduced, but from this point forwards it should not be assumed Node 12 will work.
- Bump
eslint-plugin-backpack
to latest.
- Take into account css files in import groups order (fixable using
--fix
). - Revert enforcing imports being sorted alphabetically; do not specify
- Bump eslint-plugin-prettier from 3.4.1 to 4.0.0
- Bump @typescript-eslint/parser from 5.10.1 to 5.12.0
- Bump @typescript-eslint/eslint-plugin from 5.10.1 to 5.12.0
- Published under the
@skyscanner/
scope. To upgrade:- First uninstall
eslint-config-skyscanner
, then install@skyscanner/eslint-config-skyscanner
. - In
eslintrc
file, update fromextends: ['skyscanner']
toextends: ['@skyscanner/skyscanner']
.
- First uninstall
- Change import groups order, and paths must be sorted alphabetically (fixable using
--fix
). - Require object destructure key to be sorted (fixable using
--fix
). - Bump eslint-plugin-jest-formatting from 2.0.1 to 3.1.0
- Bump eslint-plugin-jest from 24.3.6 to 26.0.0
- Bump eslint from 7.25.0 to 7.32.0
- Bump eslint-plugin-import from 2.22.1 to 2.25.4
- Bump @typescript-eslint/parser from 5.9.1 to 5.10.1
- Bump @typescript-eslint/eslint-plugin from 5.9.0 to 5.10.1
consistent-type-imports
to prefertype-imports
- Bump @typescript-eslint/eslint-plugin from 5.8.0 to 5.9.0
- Bump @typescript-eslint/parser from 5.8.0 to 5.9.1
- Bump prettier from 2.3.2 to 2.5.1
- Bump @typescript-eslint/eslint-plugin from 5.3.0 to 5.8.0
- Bump @typescript-eslint/parser from 5.1.0 to 5.8.0
- Bump eslint-plugin-react from 7.24.0 to 7.28.0
- Bump lint-staged from 12.0.2 to 12.1.4
- Bump jest from 26.6.3 to 27.4.5
- Bump eslint-plugin-jsx-a11y from 6.4.1 to 6.5.1
- Upgrading
eslint-plugin-typescript-enum
from2.0.11
to2.1.0
- Upgrading
eslint-plugin-prettier
from3.4.0
to3.4.1
- Upgrading
eslint-plugin-react-hooks
from4.2.0
to4.3.0
- Upgrading
prettier
from2.3.0
to2.3.2
- Add
@typescript-eslint/array-type
rule and specifyarray-simple
for TypeScript files.
- Support TypeScript. These changes are only breaking if you were already using TypeScript in your project.
- Adds overrides for
.ts?(x)
files taken from react-scripts, adds@typescript-eslint/eslint-plugin
and@typescript-eslint/parser
. - Adds config for
.ts?(x)
extensions underimport/extensions
- Adds
eslint-plugin-typescript-enum
to disallow TypeScript language expression featureenum
- Adds overrides for
- Bump
prettier
from2.2.1
to2.3.0
- Bump eslint-plugin-react from 7.23.2 to 7.24.0
- Bump eslint from 7.23.0 to 7.25.0
- Bump eslint-config-prettier from 8.1.0 to 8.3.0
- Bump eslint-plugin-jest from 24.3.2 to 24.3.6
- Bump eslint-plugin-react from 7.23.1 to 7.23.2
- Bump eslint-plugin-prettier from 3.3.1 to 3.4.0
- Upgrading
eslint-config-prettier
from6.15.0
to8.1.0
- Major updates here: changelog
arrow-body-style
andprefer-arrow-callback
are now no longer turned off by default, bringing cleaner code changes with enabling these. All reported issues should be fixable using--fix
option.
- Major updates here: changelog
- Upgrading
eslint
from7.14.0
to7.23.0
- Upgrading
eslint-plugin-jest
from24.1.3
to24.3.2
- Upgrading
eslint-plugin-jest-formatting
from2.0.0
to2.0.1
- Upgrading
eslint-plugin-prettier
from3.1.4
to3.3.1
- Upgrading
eslint-plugin-react
from7.21.5
to7.23.1
- Upgrading
prettier
from2.2.0
to2.2.1
-
Upgrading
prettier
to2.2.0
(https://prettier.io/blog/2020/11/20/2.2.0.html) -
Upgrading
eslint
to 7.14.0 -
Upgrading
eslint-plugin-backpack
to3.0.1
-
Upgrading
eslint-config-airbnb
to18.2.1
-
Upgrading
jest
to26.6.3
-
Upgrading
eslint-plugin-jest
to 24.1.3
- Upgrading
eslint-plugin-backpack
to2.0.3
- Upgrading
eslint-plugin-backpack
to2.0.2
Migration guide here v7 to v8
- Updated
eslint
to7.11.0
- Updated
eslint-plugin-jest
to24.1.0
- Updated
eslint-plugin-react-hooks
to4.1.2
- Updated
prettier
to2.1.2
-
Turned off
backpack/use-components
due to a bug withautoImport
not correctly turning off when configured. -
Updated
eslint-config-airbnb
to18.2.0
-
Updated
eslint-plugin-jsx-a11y
to6.3.1
-
Updated
eslint-plugin-react
to7.21.4
- Upgraded
eslint-plugin-backpack
to the latest version. This introduces web support for thebackpack/use-components
rule. It accepts aplatform
option that can be set toweb
(default) ornative
. See the eslint-plugin-backpack docs for more information. - This is only a breaking change for React Native users, because the rule now defaults to web components.
- Update eslint-config-airbnb to 18.1.0
- Migration guide here v5 to v6
- Remove
eslint-plugin-jest-dom
, as it can create issues if@testing-library/jest-dom
is not used.
- Integrate
eslint-plugin-react-hooks
.
- Integrate
eslint-plugin-jest-dom
, see documentation for more into.
- Allow alias for deprecated React component lifecycle methods (like
UNSAFE_componentWillReceiveProps
). See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html
- Integrate
eslint-plugin-jest-formatting
, see documentation for more into.
- Updated
babel-eslint
to10.1.0
- Updated
eslint-plugin-react
to7.19.0
- Integrated Prettier. See the migration guide from v4 to v5.
- Integrate
eslint-plugin-jest
, see documentation for more into. - Integrate
eslint-plugin-eslint-comments
, see documentation for more info.
- Remove
eslint-plugin-skyscanner-dates
.
- Upgraded Node 8 (lts/carbon) to Node 12 (lts/erbium).
- Moved
peerDependencies
intodependencies
.
- Integrate
eslint-plugin-skyscanner-dates
, see readme for more info.
- New
import/order
rule (see #21).- Note: This can introduce visual bugs where CSS rule order is influenced by the order in which stylesheets are imported (either directly
import 'my-style.scss';
or indirectly via a componentimport MyComponent from './MyComponent'
). An example exists in the Backpack documentation website homepage.
- Note: This can introduce visual bugs where CSS rule order is influenced by the order in which stylesheets are imported (either directly
- Integrate
eslint-plugin-skyscanner-dates
, see readme for more info.
Includes all changes published in the previous betas.
- Upgraded the following peer dependencies:
- babel-eslint:
^10.0.0
->^10.0.1
- eslint:
^5.6.0
->^5.12.0
- eslint-plugin-jsx-a11y:
^6.1.1
->^6.1.2
- eslint-plugin-react:
^7.11.1
->^7.12.3
- babel-eslint:
- Upgraded the following peer dependencies:
- babel-eslint:
^8.2.6
->^10.0.0
- eslint:
^5.4.0
->^5.6.0
- babel-eslint:
- Upgraded the following peer dependencies:
- babel-eslint:
^8.2.5
->^8.2.6
- eslint:
^4.19.1
->^5.4.0
- eslint-config-airbnb:
^17.0.0
->^17.1.0
- eslint-plugin-import:
^2.13.0
->^2.14.0
- eslint-plugin-jsx-a11y:
^6.1.0
->^6.1.1
- eslint-plugin-react:
^7.10.0
->^7.11.1
- eslint-plugin-backpack:
^0.2.0
->^0.2.2
- babel-eslint:
- Relaxed the rule for
jsx-a11y/label-has-associated-control
to only asserteither
as opposed toboth
.
- Disabled
react/jsx-one-expression-per-line
, temporarily - https://github.com/airbnb/javascript/commit/b6a268f780177e03b573a4f0df95ecc0d2e8783e#diff-c0191b2bdd5bfebebb8cec31d0f3993c
- Removed
backpack/auto-import-tokens
rule - Added
backpack/use-components
rule
- Removed
react/destructuring-assignment
rule
- Upgraded the following peer dependencies:
- babel-eslint:
^8.0.1
->^8.2.5
- eslint:
^4.9.0
->^4.19.1
- eslint-config-airbnb:
^16.1.0
->^17.0.0
- eslint-plugin-import:
^2.8.0
->^2.10.0
- eslint-plugin-jsx-a11y:
^6.0.2
->^6.1.0
- eslint-plugin-react:
^7.4.0
->^7.10.0
- eslint-plugin-backpack:
^0.0.2
->^0.1.0
- babel-eslint:
- Upgraded eslint-plugin-backpack:
^0.0.2
->^0.1.0
- Added
backpack/auto-import-tokens
rule to the shared config
- Added support for backpack plugin
- Integrate
eslint-plugin-skyscanner-dates
, see readme for more info.
- Upgraded the following peer dependencies:
- babel-eslint:
^7.2.3
->^8.0.1
- eslint:
^3.17.1
->^4.9.0
- eslint-config-airbnb:
^14.1.0
->^16.1.0
- eslint-plugin-import:
^2.2.0
->^2.8.0
- eslint-plugin-jsx-a11y:
^4.0.0
->^6.0.2
- eslint-plugin-react:
^6.10.0
->^7.4.0
- babel-eslint:
- Changed parser to
babel-eslint
to support dynamicimport()
statements used with Webpack 2
- Validate JSDoc (when present)
- Upgraded peerDependencies to latest versions:
eslint
,eslint-config-airbnb
,eslint-plugin-import
,eslint-plugin-jsx-a11y
,eslint-plugin-react
- Mirroring eslint-config-airbnb's peerDependencies so that install works
- Initial config based on
eslint-config-airbnb