Skip to content

Releases: Skyscanner/eslint-config-skyscanner

12.6.1

10 Jan 15:28
8c0ee0f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v12.5.0...v12.6.1

12.6.0

08 Nov 14:06
Compare
Choose a tag to compare

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

23 Sep 13:20
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v12.4.0...v12.5.0

12.4.0

22 Aug 09:00
Compare
Choose a tag to compare

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

05 Aug 09:34
Compare
Choose a tag to compare

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

29 Jun 13:23
Compare
Choose a tag to compare

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

17 Jun 09:43
Compare
Choose a tag to compare

What's Changed

Full Changelog: v12.1.0...v12.1.1

12.1.0

02 Jun 13:19
Compare
Choose a tag to compare

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

25 Mar 10:18
Compare
Choose a tag to compare

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

16 Feb 12:08
Compare
Choose a tag to compare

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