eslint-config-singpath
v0.0.6
Published
Default ESLint configuration for Singpath projects.
Downloads
17
Maintainers
Readme
SingPath Linting Configuration
Eslint | Configuring | Rules
Contains the default ESLint configuration for SingPath projects.
Installation
You can install ESLint using npm:
npm install eslint@3 --save-dev
Then install this configuration:
npm install eslint-config-singpath --save-dev
Usage
Add a .eslintrc.yml
file (for node 4+ project):
extends: eslint-config-singpath/node
or for a ES6 module based project:
extends: eslint-config-singpath/module
Then create a "lint" command; e.g., to lint src/
and test/
js files, add to
package.json
(only showing the script
field):
{
"scripts": {
"lint": "eslint src/ tests/"
}
}
To lint the folders:
npm run lint
To attempt to fix them:
npm run lint -- --fix