eslint-plugin-compsci
📚 Rules for NCEA computer science
Usage
Install ESLint and eslint-plugin-compsci
:
npm install --save-dev eslint eslint-plugin-compsci
Replace your eslint config with the following:
Supported Rules
See the docs/rules folder.
Contribute to this plugin
Run npm i -g yo generator-eslint
.
To create a new rule, run yo eslint:rule
. Fill out the files it generates. Or manually:
- docs/rules/RULE.md
- src/rules/RULE.js
- test/rules/RULE.js
Use astexplorer set to babel-eslint
and transform: eslint-v4
.
To test the rules, run npm test