https://github.com/strongloop/eslint-config-strongloop
Baseline eslint configuration for StrongLoop modules
https://github.com/strongloop/eslint-config-strongloop
Last synced: 9 months ago
JSON representation
Baseline eslint configuration for StrongLoop modules
- Host: GitHub
- URL: https://github.com/strongloop/eslint-config-strongloop
- Owner: strongloop
- License: other
- Created: 2015-10-16T07:55:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-07-14T12:31:56.000Z (over 4 years ago)
- Last Synced: 2024-09-23T01:57:23.300Z (over 1 year ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 17
- Watchers: 30
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.md
Awesome Lists containing this project
README
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:
```json
{
"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:
```json
{
"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:
```json
{
"extends": "strongloop",
"rules": {
"comma-dangle": 1,
}
}
```
## Further Reading
- [eslint rules](http://eslint.org/docs/rules/)
- [eslint config](http://eslint.org/docs/user-guide/configuring)
---
© 2015 StrongLoop, Inc.