Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 571 Bytes

CONTRIBUTING.md

File metadata and controls

16 lines (11 loc) · 571 Bytes

Creating a new rule

To create a new rules, add the rule definition, a test, and documentation:

touch src/rules/newRule.ts
touch src/__tests__/newRule.ts
touch docs/rules/newRule.md

and make sure you add the new rule to src/rules/index.ts.

Now you can implement your rule in src/rules (run yarn test to run the tests). The AST explorer can come in handy here when writing the rule.

Now update the documentation for the new rule in docs/rules.

And finally make sure it's added to the table and config in README.md.