ESLint Shareable Config for the O2Team Javascript Style Guide
$ npm install --save-dev eslint eslint-config-o2team
Once the eslint-config-o2team
package is installed, you can use it by specifying o2team
in the extends
section of your ESLint configuration.
{
"extends": "o2team",
"rules": {
// Additional, per-project rules...
}
}
Or you can specifying eslint-config-o2team
in the eslintConfig
section of your package.json
{
"eslintConfig": {
"extends": "eslint-config-o2team"
}
}
Maybe some legacy projects use ES5
and below.
{
"extends": "o2team/legacy",
"rules": {
// Additional, per-project rules...
}
}