Skip to content

Instantly share code, notes, and snippets.

@jairoFernandez
Created August 30, 2017 20:01
Show Gist options
  • Save jairoFernandez/04ce0af4b4e104e652b096e7766c9e23 to your computer and use it in GitHub Desktop.
Save jairoFernandez/04ce0af4b4e104e652b096e7766c9e23 to your computer and use it in GitHub Desktop.
Rules for angular tslint
# tslint.json
{
"extends": "tslint:latest",
"rules": {
"directive-selector-prefix": [false, "sg"],
"component-selector-prefix": [false, "sg"],
"pipe-naming": [false, "camelCase", "sg"],
"directive-selector-name": [true, "camelCase"],
"component-selector-name": [true, "kebab-case"],
"directive-selector-type": [true, "attribute"],
"component-selector-type": [true, "element"],
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-attribute-parameter-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"no-forward-ref" :true,
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true,
"quotemark": [true, "single", "avoid-escape"],
"ordered-imports": false,
"trailing-comma": [true, {"multiline": "never", "singleline": "never"}],
"member-access": false,
"object-literal-sort-keys": false,
"no-string-literal": false,
"no-reference": false,
"variable-name": false
},
"rulesDirectory": [
"node_modules/codelyzer"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment