Skip to content

eranshabi/tslint-custom-rules-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.