- Notifications
You must be signed in to change notification settings - Fork5
chinchiheather/tslint-lines-between-class-members
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Custom rule for TSLint to enforce blank lines between class methods - achieves a similar thing tolines-between-class-members in ESLint
# yarnyarn add --dev tslint-lines-between-class-members# npmnpm install --save-dev tslint-lines-between-class-members
Update yourtslint.json config file, adding the new rules directory and the new rule
You can choose to specify the exact number of lines you want between methods, or leave it to default to just checking there is at least 1
{"rulesDirectory": ["node_modules/tslint-lines-between-class-members" ],"rules": {"lines-between-class-members":true, }}At least one line:
"lines-between-class-members":true
Exactly one line:
"lines-between-class-members": [true,1]
Exactly twenty two lines:
"lines-between-class-members": [true,22]
About
Custom rule for TSLint to enforce blank lines between class methods - achieves a similar thing to lines-between-class-members in ESLint
Topics
Resources
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.