0.0.2 ā€¢ Published 5 years ago

eslint-plugin-compsci v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

eslint-plugin-compsci

Build Status Coverage Status npm version

šŸ“š 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:

{
  "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