werk85-tslint-rules
v5.1.3
Published
Organisation wide tslint rules for werk85
Downloads
6
Readme
werk85-tslint-rules
Organisation wide tslint rules for werk85.
Installation
npm install werk85-tslint-rules --save-dev
Usage
Base Rules
Extend your tslint.json
configuration via
{
"extends": "werk85-tslint-rules"
}
and overwrite rules suited for the current project or use on of the more specific configurations listed below.
The usable rule set includes all standard tslint-rules and the tslint-eslint-rules set.
Angular 2 Rules
For Angular 2 based project use the werk85-tslint-rules/lib/tslint-angular2
via
{
"extends": "werk85-tslint-rules/lib/tslint-angular2",
"rules": {
"directive-selector": [
true,
"attribute",
"w85",
"camelCase"
],
"component-selector": [
true,
"element",
"w85",
"kebab-case"
],
"pipe-naming": [
true,
"camelCase",
"w85"
],
}
}
Note: You have to define the appropriate directive, component and pipe prefix by yourself. Please replace the "w85"
string by an appropriate shortcut for your project.
This configuration uses the codelyzer tslint rules and extends the "Base Rules" described above.