eslint-config-luxjs
v0.4.0
Published
Luxbet Eslint shareable config
Downloads
149
Readme
eslint-config-luxjs
What?
Guidelines for sensible coding. This config is used by ESLint to automatically ensure developers across projects are adhering to a single, coherent JavaScript coding style.
Why?
Why does JavaScript need a style guide?.
How?
Install ESLint and this config
npm install --save-dev eslint eslint-config-luxjs
Add config to .eslintrc
(or package.json
) in the root of your project
{
"extends": "luxjs"
}
Optional: Add script to package.json
{
"devDependencies": {
"eslint": "*",
"eslint-config-luxjs": "*"
},
"scripts": {
"lint": "eslint ."
}
}
Then, on the command line:
$ npm run lint