README.md
is a generated file. Do not edit it directly. Edit the files inside .README
instead.
When making a commit, the following Pre-Commit hooks run:
Run them with yarn test
.
Run with yarn lint
.
tests/rules/assertions
named the camelCase
version of your rule name with the following template:
export default { invalid: [], valid: [] }
tests/rules/index.js
src/rules
named the camelCase
version of your rule namesrc/index.js
./.README/rules/[rule-name].md
.
<!-- assertions spaceAfterTypeColon -->
declaration.npm run create-readme
to generate the new README.md
(you must be on master
branch for this command to work)Note: Sections "The following patterns are considered problems:" and "The following patterns are not considered problems:" are generated automatically using the test cases.