14.0.0
What's Changed
Patch
- [KOA-6079]: Migrate to Node 18 #552
Breaking
- [KOA-6213] Update from babel-eslint to @babel/eslint-parser #565
babel-eslint
was deprecated on July 31, 2020 in favour of the package from Babel's main monorepo; @babel/eslint-parser
.
If using the standard Skyscanner tool chain as described in our Production Standards then for the majority of consumers this will be a patch level change.
However, if your repository is using non-standard presets then some additional configuration may be required.
Upgrade Details
Parser
eslint-config-skyscanner
sets
parser: '@babel/eslint-parser',
by default, and overrides this for .ts?(x)
files to
parser: '@typescript-eslint/parser',
If you were previous declaring parser
explicitly in your eslintrc
this will need to be updated, or removed (to inherit the behaviour as above).
Parser Options
For JavaScript eslint-config-skyscanner
sets
parserOptions: {
requireConfigFile: false,
babelOptions: {
presets: ['@babel/preset-react'],
},
},
and for .ts?(x)
plugins: ['@typescript-eslint'],
This will not require a Babel config file, but if one is present will use it by default. It includes support for React syntax and TypeScript by default.
If you have extended your project beyond this to non-standard Skyscanner syntax, and this is not in your root Babel config, then you will need to override these settings in your eslintrc
for Babel to be able to parse your code while ESLint runs.
https://github.com/babel/babel/tree/main/eslint/babel-eslint-parser#additional-parser-configuration
Full Changelog: v13.2.1...v14.0.0