Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@skyscanner/eslint-config-skyscanner
Advanced tools
This package includes the shareable ESLint configuration used by Skyscanner.
npm install --save-dev @skyscanner/eslint-config-skyscanner
Add "extends": "@skyscanner/eslint-config-skyscanner"
to your .eslintrc
.
@skyscanner/eslint-config-skyscanner
will try to detect automatically the version of React installed.
If your project doesn't use it or it is not installed in the same package.json
as @skyscanner/eslint-config-skyscanner
, it must be manually set in .eslintrc
:
"settings": {
"react": {
"version": "16.4"
}
}
14.0.0
babel-eslint
was deprecated on July 31, 2020 in favour of the package from Babel's main mono repo; @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.
<details> <summary>Upgrade Details</summary>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).
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
</details>FAQs
Skyscanner's ESLint config.
The npm package @skyscanner/eslint-config-skyscanner receives a total of 103 weekly downloads. As such, @skyscanner/eslint-config-skyscanner popularity was classified as not popular.
We found that @skyscanner/eslint-config-skyscanner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.