All Projects → strongloop → eslint-config-strongloop

strongloop / eslint-config-strongloop

Licence: other
Baseline eslint configuration for StrongLoop modules

Programming Languages

javascript
184084 projects - #8 most used programming language

eslint-config-strongloop

Baseline eslint config for StrongLoop projects. A work in progress.

Basic Usage

Add eslint-config-strongloop to devDependencies.

$ npm install -D eslint-config-strongloop

Create/modify .eslintrc in the project's root to include:

{
  "extends": "strongloop"
}

Advanced Usage

It is sometimes desirable to override some of these rules because a team does not want to follow that particular rule for this repository:

{
  "extends": "strongloop",
  "rules": {
    "comma-dangle": 0
  }
}

In cases where these rules are being adopted but the code has many style errors, it might be helpful to turn the worst errors into warnings until the entire repo can be fixed:

{
  "extends": "strongloop",
  "rules": {
    "comma-dangle": 1,
  }
}

Further Reading


© 2015 StrongLoop, Inc.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].