tslint-line-before-class-property
v0.5.2
Published
Custom rule for TSLint to assure that each class property has new line before declaration
Downloads
1
Readme
tslint-line-before-class-property
Custom rule for TSLint to assure that each class property has new line before declaration
Install
npm install --save-dev tslint-line-before-class-property
Configuration
Update tslint.json
file and add new rules directory with new rule itself
{
"rulesDirectory": [
"tslint-line-before-class-property"
],
"rules": {
"tslint-line-before-class-property": true
}
}
Example
// Bad
class Name {
public boolean: boolean;
public string: string;
public array: Array<string>;
}
// Good
class Name {
public boolean: boolean;
public string: string;
public array: Array<string>;
}