https://github.com/devsu/eslint-config-devsu
Devsu ESLint configuration for JS apps
https://github.com/devsu/eslint-config-devsu
Last synced: about 2 months ago
JSON representation
Devsu ESLint configuration for JS apps
- Host: GitHub
- URL: https://github.com/devsu/eslint-config-devsu
- Owner: devsu
- Created: 2017-05-17T22:21:37.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-12T14:39:05.000Z (almost 8 years ago)
- Last Synced: 2025-02-12T07:01:07.836Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-config-devsu
Devsu's ESLint shareable configs.## Usage
Add `eslint` and `eslint-config-devsu` to `devDependencies` in your `package.json`:
```
npm install --save-dev eslint eslint-config-devsu
```In your project root, create/edit `.eslintrc` and select the set of rules you want to use:
### For ECMAScript 6
```
{
"extends": "devsu/ecma6"
}
```### For NodeJS (includes ecma6 rules)
```
{
"extends": "devsu/node"
}
```### For ReactJS (includes ecma6 and react-app package rules)
```
{
"extends": "devsu/react"
}
```Change in `package.json` your run script to add a lint property:
```
...
"scripts": {
"lint": "eslint ."
},
...
```Try our rules by running:
```
npm run lint
```## Overriding rules
To override a particular rule, use the `rules` key:
```
{
"extends": "devsu/node",
"rules": {
"comma-dangle": "off"
}
}
```