Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 583 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 583 Bytes

tslint-custom-rules-boilerplate

A template for developing a custom TSLint rule, using unit testing.

Easiest developing cycle would be to change some tests (the .spec file), change the rule, and then run npm test to check everything is as expected.

Inside the test file you have a minimal working example of how to test failures (including position and messages), successes and fixers.

After your rule is ready you can compile it using npm run build, and use the results in the dist folder.