Skip to content

Instantly share code, notes, and snippets.

@ValeryVS
Created June 2, 2017 12:54
Show Gist options
  • Save ValeryVS/1909b5c6d924afa64efd2d049ea9f143 to your computer and use it in GitHub Desktop.
Save ValeryVS/1909b5c6d924afa64efd2d049ea9f143 to your computer and use it in GitHub Desktop.
TSLint config for angular libs and applications
{
"extends": [
"tslint:recommended"
],
"rules": {
"import-blacklist": [
true,
"rxjs"
],
"interface-name": [
true,
"never-prefix"
],
"max-line-length": [
true,
140
],
"no-consecutive-blank-lines": [
true,
2
],
"no-inferrable-types": [
true,
"ignore-params"
],
"no-non-null-assertion": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": [
true,
"ignore-template-strings"
],
"no-use-before-declare": true,
"object-literal-sort-keys": false,
"quotemark": [
true,
"single",
"avoid-escape"
],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
],
"directive-selector": [
true,
"attribute",
"app",
"camelCase"
],
"component-selector": [
true,
"element",
"app",
"kebab-case"
],
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true,
"no-access-missing-member": true,
"templates-use-public": true,
"invoke-injectable": true
},
"rulesDirectory": [
"node_modules/codelyzer"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment