Releases: Skyscanner/eslint-config-skyscanner
12.6.1
What's Changed
- Bump @typescript-eslint/eslint-plugin from 5.33.1 to 5.40.1 by @dependabot in #437
- Bump @typescript-eslint/parser from 5.33.1 to 5.41.0 by @dependabot in #438
- Upgrade node version to support 18 / hydrogen by @metalix2 in #444
- Bump ansi-regex from 5.0.0 to 5.0.1 by @dependabot in #439
New Contributors
Full Changelog: v12.5.0...v12.6.1
12.6.0
What's Changed
- Update from Node
^16.13.0
to>=16.13.0
to allow versions higher than 16 - Bump @typescript-eslint/eslint-plugin from 5.33.1 to 5.40.1
- Bump @typescript-eslint/parser from 5.33.1 to 5.40.1
- Bump ansi-regex from 5.0.0 to 5.0.1
Full Changelog: v12.5.0...v12.6.0
12.5.0
What's Changed
- [SEARCHEXP-337] Allow import() type imports in .d.ts files by @Topolewski-Kamil in #418
New Contributors
- @Topolewski-Kamil made their first contribution in #418
Full Changelog: v12.4.0...v12.5.0
12.4.0
What's Changed
- Override the no-restricted-syntax syntax rule to allow
for...of
loops. (#398) - Bump @typescript-eslint/parser from 5.31.0 to 5.33.1
- Bump @typescript-eslint/eslint-plugin from 5.32.0 to 5.33.1
- Bump prettier from 2.5.1 to 2.7.1
- Bump eslint-plugin-react from 7.30.0 to 7.30.1
Full Changelog: v12.3.0...v12.4.0
12.3.0
What's Changed
- Update guides about how to extend config to consistently say 'add @skyscanner/eslint-config-skyscanner'
- Bump @typescript-eslint/parser from 5.12.0 to 5.31.0
- Bump @typescript-eslint/eslint-plugin from 5.12.0 to 5.32.0
- Bump lint-staged from 13.0.0 to 13.0.3
- Bump eslint-config-prettier from 8.3.0 to 8.5.0
- Bump husky from 7.0.4 to 8.0.1 (drop Node 12 support)
Full Changelog: v12.2.0...v12.3.0
12.2.0
What's Changed
Updated
- Prefer default arguments to default props in functional components
- If you were doing
'react/require-default-props': 'off'
as a workaround you should now remove this suppression
Full Changelog: v12.1.0...v12.2.0
Details
defaultProps
on function components is getting deprecated by React (see: https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md#deprecate-defaultprops-on-function-components)
React currently logs a warning when defaultProps is used
The official recommendation in future versions of React is to use ES6 default values for function components.
It's been noticed that because of this limitation up until now, react apps have turned this rule off completely.
Before
Header.defaultProps = {
currency: 'GBP',
};
export default function Header({ currency }) {
After
export default function Header({ currency = 'GBP' }) {
12.1.1
What's Changed
- Update "import/order" to take into account Backpack single package by @sogame in #348
- Bump async from 2.6.3 to 2.6.4 by @dependabot in #332
- Bump minimist from 1.2.5 to 1.2.6 by @dependabot in #315
- Bump lint-staged from 12.3.5 to 13.0.0 by @dependabot in #352
- [NO JIRA]: Uninstall format-package by @olliecurtis in #359
Full Changelog: v12.1.0...v12.1.1
12.1.0
What's Changed
Updated
- Bump eslint-plugin-react from 7.28.0 to 7.30.0
Full Changelog: v12.0.0...v12.1.0
12.0.0
What's Changed
Breaking
- 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.
Full Changelog: v11.1.0...v12.0.0
11.1.0
Updated
- 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