Olympic ESLint Config
This config is the AirBnB base config with some exceptions. Supports both ES5 and ES6.
Usage
Install using npm:
npm install --save-dev eslint eslint-config-olympic eslint-config-airbnb-base eslint-plugin-import
Extend this config in your .eslintrc
:
{
"extends": "olympic",
}
For linting legacy code (ES5) use the following in your .eslintrc:
{
"extends": "olympic/legacy",
}
Deviations from AirBnB Style Guide
Rule | AirBnB Value | Olympic Value |
---|
no-param-reassign | 2, { props: true } | 0 |
indent | 2, 2, { SwitchCase: 1, VariableDeclarator: 1 } | 2, 4, { SwitchCase: 1, VariableDeclarator: 1 } |
func-names | 1 | 0 |
no-nested-ternary | 2 | 0 |
one-var | 2, 'never' | 0 |
one-var-declaration-per-line | 2, 'always' | 0 |
linebreak-style | 2, 'unix' | 0 |