Skip to content

Releases: Skyscanner/eslint-config-skyscanner

17.2.0

12 Dec 13:16
a39e8e4
Compare
Choose a tag to compare

What’s Changed

Added

Fixed

Dependency updates

17.1.0

01 Dec 15:07
eef909d
Compare
Choose a tag to compare

What’s Changed

Added

  • [ARGG-857] Add rule forbidding the use of axios library (#656) @soulcheck
    Axios errors, when logged, can lead to sensitive data leaks as they include headers and other pieces of sensitive data.
    This change adds a rule that will throw an error if axios is imported or required. We encourage users to find safer alternatives to axios.
    The rule can be configured to be a warning or switched off completely on a per-repository basis.

Dependency updates

17.0.0

01 Nov 12:20
ae2bdbe
Compare
Choose a tag to compare

What’s Changed

Breaking

  • Bump eslint-plugin-backpack from 5.0.0 to 6.0.0 (#635) @dependabot
    • eslint-plugin-backpack no longer supports Backpack React Native, so passing config will not cause any rules to be triggered for that platform so can be removed from your config
    • As spacing in JS is no longer supported in Backpack (the spacing tokens do not exist), if you have any eslint disables where you are setting spacing in JS these will throw a warning that rule has no effect.
    • As we now have semantic colours an error will be thrown if you are using a colour that doesn't exist in our semantic colours set and the error will direct you to the Backpack site to find the suitable replacement

Changes

  • Bump eslint-config-prettier from 8.5.0 to 9.0.0 (#584) @dependabot
    • No impacting breaking change from this major version bump that requires a fix
  • Bump eslint-plugin-import from 2.28.1 to 2.29.0 (#630) @dependabot
  • Bump eslint from 8.51.0 to 8.52.0 (#632) @dependabot
  • Bump eslint-plugin-jest from 27.4.3 to 27.6.0 (#638) @dependabot
  • Bump eslint-plugin-jest from 27.4.2 to 27.4.3 (#633) @dependabot

16.3.0

17 Oct 16:49
b41bbef
Compare
Choose a tag to compare

What’s Changed

Added

  • [ARGG-741][import/order]: Add rule to set alphabetical order of imports to solve clashes and conflicts with bundle ordering on build. (#623) @olliecurtis
    • This change is autofixible via the --fix option to set the consistent order across imports.
    • If you provide comments with your imports you will be required to move the comments as this is not automatically available to move comments

16.2.0

13 Oct 08:11
a77afec
Compare
Choose a tag to compare

What’s Changed

Added

Fixed

16.1.0

29 Sep 17:45
4fb4831
Compare
Choose a tag to compare

What’s Changed

Updated

16.0.0

26 Jul 10:12
5f9a6f3
Compare
Choose a tag to compare

What’s Changed

Breaking

  • Bump @typescript-eslint/eslint-plugin from 5.59.11 to 6.1.0
  • Bump @typescript-eslint/parser from 5.62.0 to 6.3.0
  • Bump eslint-plugin-jest from 26.0.0 t0 27.2.3

There are no anticipated breaking changes for consumers that use this config unaltered, but if you extend this config to alter, expand on, or write your own rules you may be impacted as several rules have been removed, and AST breaking changes have been made for custom rules.

Please see the release notes below for specific changes:

https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/

https://github.com/jest-community/eslint-plugin-jest/releases/tag/v27.0.0

15.2.0

25 Jul 08:00
aacd307
Compare
Choose a tag to compare

What’s Changed

Added

15.1.0

24 Jul 08:57
4c1748e
Compare
Choose a tag to compare

What’s Changed

Added

  • [KOA-6221] Update eslint-plugin-backpack to v5 which supports ESLint 8 (#574) @dominicfraser

15.0.0

20 Jul 10:22
Compare
Choose a tag to compare

What's Changed

Note: Please move straight to 15.1.0 to pull in a related update for eslint-plugin-backpack.

Breaking

  • Bump eslint-config-airbnb from 18 to 19
  • Bump eslint from 7 to 8

This update is intended to be as low friction as possible, with incoming rules that cause more toil than gain disabled.

However, it does bring in several new, very valuable, rules, so it is expected to need work to fix these lint errors when making this upgrade. If you do not agree with any of the incoming rules please reach out to talk about solving it in a centralised way before making local overrides.

All new rules will point to documentation about that rule, with examples of fixes, if they trigger in your codebase.

If you use @skyscanner/stylelint-config-skyscanner please update to v9, to match this change, as it shares transitive dependencies: https://github.com/Skyscanner/stylelint-config-skyscanner/blob/main/docs/eslint-as-dependency.md

If you use eslint-plugin-skyscanner-dates please update to v4 for ESLint 8 compatibility.

ESLint release notes:

AirBnB Config Release notes:

The following rules have been disabled or downgraded:

See inline comments for each as to why.

Full Changelog: v14.0.1...v15.0.0