npm.io
1.0.1 • Published 5 years ago

eslint-config-perfect

Licence
MIT
Version
1.0.1
Deps
0
Size
4 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

code style downloads license npm version

eslint-config-perfect

ESlint ruleset for perfectionists.

"Everything should be made as simple as possible, but not simpler." - Albert Einstein

Install

npm install --save-dev eslint eslint-config-perfect

Usage

Add a .eslintrc.js file to your project with these lines:

module.exports = {
	"extends": "perfect"
};
Optional

Edit your package.json file and change the test script to precede it with eslint. Adding the --fix parameter will also fix files automatically when possible:

"scripts": {
	"test": "eslint --fix . && node ./test.js"
},

Keywords