
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@skyscanner/eslint-plugin-rules
Advanced tools
Eslint plugin containing custom rules used at Skyscanner.
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @skyscanner/eslint-plugin-rules:
$ npm install @skyscanner/eslint-plugin-rules --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install @skyscanner/eslint-plugin-rules globally.
Add @skyscanner/eslint-plugin-rules to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- part:
{
"plugins": ["@skyscanner/rules"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@skyscanner/rules/no-axios": "error",
"@skyscanner/rules/forbid-component-props": "error"
}
}
Detects code importing axios.
Axios it prone to sensitive information leaks due to inclusion of headers in errors it throws.
{
"rules": {
"@skyscanner/rules/no-axios": "<severity>"
}
}
Where <severity> can be one of: error, warn off.
A fork of the unmaintained eslint-plugin-typescript-enum.
Detects code using a TypeScript enum.
Alternatives such as as const are a preferred option over non-native language features.
{
"rules": {
"@skyscanner/rules/no-enum": "<severity>"
}
}
A fork of forbid-component-props. For details on why this is used in Skyscanner repositories, see: why.
For alternatives to using className, see guidance.
This rule extends the functionality of the upstream rule with a new property within the forbid config object, allowedForRegex.
Full api docs for upsteam see: forbid-component-props.
forbid.allowedForRegexA string specifying a pattern of component names. Components that match this pattern are included in an allow list.
{
"propName": "someProp",
"allowedForRegex": "^Special",
"message": "Avoid using someProp except on prefixed 'Special' components"
}
FAQs
ESLint plugin containing rules used at Skyscanner
We found that @skyscanner/eslint-plugin-rules demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.