if you want to create a new rule, use this command.
This command use Hygen.
$ npm run gen:rule
Development your awesome rule! 🔧
If you want to check AST, use this command.
log
folder is created by Hygen.
This folder is already added that gitignore.
AST is outputed to log/log.json
.
$ npm run gen:log
$ npm run log
When write your rule's test, use this command.
This command watch tests/lib/rules
.
$ npm run test
If you want to use git commit, use this command.
This command use Commitizen.
Commitizen's commit template is cz-conventional-changelog
$ npm run commit
If you confirm rules in lib/rules
, generate development
directory with npm run gen:development
.
And then npm run confirm
.
Great!!
You can add contributors list with allcontributors.
Example:
npx all-contributors add tyankatsu0105 code,doc,maintenance,test
Then, send PR.
Also check this.