eslint-config-6river
v7.1.0
Published
ESLint shareable config for the 6RS style
Downloads
10,006
Readme
eslint-config-6river
npm i -D eslint-config-6river
- Add one of the following to
.eslintrc.json
:
- TypeScript:
{"extends": "6river/typescript"}
- JavaScript:
{"extends": "6river"}
- mixed:
{"extends": "6river/typescript"}
- Mocha tests:
{"extends": "6river/mocha"}
- AngularJS:
{"extends": "6river/angular"}
- Add one of the following to the
scripts
property inpackage.json
:- TypeScript:
"lint": "eslint --ext .ts ."
- JavaScript:
"lint": "eslint --ext .js ."
- mixed:
"lint": "eslint --ext .js,ts ."
- TypeScript:
npm run lint