Licence
MIT
Version
0.0.6
Deps
1
Vulns
0
Weekly
0
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