1.1.0 • Published 10 years ago
eslint-config-standard-strict v1.1.0
eslint-config-standard-strict
ESLint config for ES7, following StandardJS with added checks
Usage
Add all of the
"devDependencies"listed in package.json to your project's"devDependencies"section.Add an additional entry to
"devDependencies":"eslint-config-standard-strict": "latest"Add a root level
.eslintrcthat references this package{ "extends": "standard-strict" }Add another
.eslintrcto yourtestfolder that supports mocha{ "extends": "standard-strict", "env": { "mocha": true } }(Recommended) Add the following entries to your
package.jsonfor simplified CLI access to linting:"scripts": { "lint": "./node_modules/.bin/eslint .", "lint-changed": "git diff --name-only --cached --relative | grep '\\.js$' | xargs ./node_modules/.bin/eslint" }(Recommended) Setup your editor to support inline ESLint support. For Sublime Text, that means
npm install -g eslintthen installingSublimeLinterandSublimeLinter-contrib-eslintpackages. For Vim, use Syntastic.