@craftworks/tslint-config-angular
v1.5.3
Published
A TSLint config optimized for Angular
Downloads
821
Readme
@craftworks/tslint-config-angular
A TSLint config optimized for Angular.
Contains the ruleset of tslint:recommended
, tslint-angular
and tslint-config-prettier
(in that order) and applies some custom rules.
Installation
npm install @craftworks/tslint-config-angular --save-dev
Usage
In tslint.json
:
{
"extends": "@craftworks/tslint-config-angular",
"rules": {
"directive-selector": [true, "attribute", "your-angular-prefix", "camelCase"],
"component-selector": [true, "element", "your-angular-prefix", "kebab-case"]
}
}
Peer Dependencies
- codelyzer ^6.0.0
- typescript ^3.3.0 || ^4.0.0
- tslint ^5.16.0 || ^6.0.0
See package.json for more details
Know problems
- tslint-consistent-codestyle still requires tslint ^5.0.0
- https://github.com/ajafff/tslint-consistent-codestyle/issues/142
- both tsutils ^2.0.0 and ^3.0.0 are required
- https://github.com/ajafff/tslint-consistent-codestyle/pull/88
- zone.js ~0.11.4 is required by @angular/[email protected]