1.1.0 • Published 8 years ago
@andybarron/eslint-config v1.1.0
Andy's ESLint configuration
This is a strict and very opinionated ESLint preset for my various JavaScript projects.
Usage
npm i -E -D @andybarron/eslint-config- Add
@andybarron/eslint-configto theextendssection of your ESLint configuration file.
Examples
JSON config file (e.g. .eslintrc.json)
{
"extends": "@andybarron/eslint-config"
}YAML config file (e.g. .eslintrc.yaml)
NOTE: The quotes are required due to the @ sign at the beginning of the
scoped package name.
extends: '@andybarron/eslint-config'Development scripts
npm run generate- Generate an empty list of all non-deprecated ESLint rules. This overwrites the filelib/rules.js, so be careful!npm test- Ensure that all ESLint rules exist in the preset and that all rules in the preset are valid and not deprecated.npm run lint- Run this linter preset on its own source code (i.e. thelibandscriptsdirectories). So meta!npm run format- Same aslint, but attempt to fix lint errors as well.