0.0.6 • Published 9 years ago
eslint-config-singpath v0.0.6
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-devThen install this configuration:
npm install eslint-config-singpath --save-devUsage
Add a .eslintrc.yml file (for node 4+ project):
extends: eslint-config-singpath/nodeor for a ES6 module based project:
extends: eslint-config-singpath/moduleThen 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 lintTo attempt to fix them:
npm run lint -- --fix