0.0.2 ⢠Published 6 years ago
eslint-plugin-compsci v0.0.2
eslint-plugin-compsci
š Rules for NCEA computer science
Usage
Install ESLint and eslint-plugin-compsci:
npm install --save-dev eslint eslint-plugin-compsciReplace your eslint config with the following:
{
"extends": ["plugin:compsci/all"]
}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