Organisation wide tslint rules for werk85.
npm install werk85-tslint-rules --save-dev
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.
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.