Skip to content

Releases: Skyscanner/eslint-config-skyscanner

18.1.0

13 May 11:57
e39fd8c
Compare
Choose a tag to compare

What’s Changed

Breaking

Added

Dependency updates

18.0.0

08 Apr 15:03
4d3efb3
Compare
Choose a tag to compare

What’s Changed

@typescript-eslint/parser changes

@typescript-eslint/parser has been updated from 6.21.0 to 7.1.0 release notes. As a result, to maintain compatibility with this package you may need to make modifications within your codebase:

  • ⚠️ Dropping support for Node 16, 19, and Node 18 versions prior to 18.18.0.
  • ⚠️ Update the TypeScript peer dependency requirement to >=4.7.4.
  • eslint is managed via eslint-config-skyscanner and is an acceptable version. No change required from consumers.

Added

  • [LOOM-1339]: Added @skyscanner/rules/forbid-component-props from @skyscanner/eslint-plugin-rules (#714) @mungodewar
  • [NOJIRA]: Update engine & npm (#718) @mungodewar

Dependency updates

17.4.0

22 Jan 14:54
3198abc
Compare
Choose a tag to compare

What’s Changed

ℹ️ If you were using the skyscanner-no-axios/no-axios rule, you will need to change it to @skyscanner/rules/no-axios due to changes introduced in ARGG-946.

While this would normally imply a major release, the package updates have been broken since we introduced skyscanner-no-axios/no-axios. Therefore this change will be treated as a bug fix.

Added

Fixed

Dependency updates

17.3.0

08 Jan 15:16
76de9d2
Compare
Choose a tag to compare

What’s Changed

Added

Fixed

Dependency updates

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