tslint-blank-lines-after-imports
v0.1.1
Published
Ensure number of blank lines after all import statements.
Maintainers
Readme
TSLint Blank Lines After Imports Rule
Ensure number of blank lines after all import statements.
Usage
npm i -D tslint-origin-ordered-imports-ruleConfiguration
"rules": {
"blank-lines-after-imports": [true]
}Wrong:
import MyClass from './my-class';
import * as _ from 'lodash';
class YourClass {}Right:
import MyClass from './my-class';
import * as _ from 'lodash';
...
class YourClass {}Additional parameter allows to configure number of required blank lines:
"rules": {
"blank-lines-after-imports": [true, 2]
}Wrong:
import MyClass from './my-class';
import * as _ from 'lodash';
class YourClass {}Right:
import MyClass from './my-class';
import * as _ from 'lodash';
...
...
class YourClass {}Testing
To test the rule just run:
npm run testLicensing
The code in this project is licensed under MIT license.
