Skip to content

Instantly share code, notes, and snippets.

@RaschidJFR
Created August 11, 2019 23:12
Show Gist options
  • Save RaschidJFR/36da53e19e884bbb813fd7fba2ccac85 to your computer and use it in GitHub Desktop.
Save RaschidJFR/36da53e19e884bbb813fd7fba2ccac85 to your computer and use it in GitHub Desktop.
My preferred Angular tslint settings
{
"rulesDirectory": [
"codelyzer"
],
"rules": {
"align": [true, "statements"],
"array-type": [true, "array"],
"deprecation": {
"severity": "warn"
},
"import-blacklist": [
true,
"rxjs/Rx"
],
"indent": [true, "tabs", 2],
"max-line-length": {
"severity": "warning",
"options": [140]
},
"member-ordering": [
true,
{
"order": [
"instance-sandwich"
]
}
],
"no-any":true,
"no-var-keyword": true,
"prefer-const": true,
"no-inferrable-types": [
true,
"ignore-params"
],
"no-non-null-assertion": true,
"no-redundant-jsdoc": true,
"no-use-before-declare": true,
"object-literal-key-quotes": [
true,
"as-needed"
],
"quotemark": [
true,
"single"
],
"no-output-on-prefix": true,
"variable-name":{
"severity": "warning",
"options": ["ban-keywords", "check-format", "allow-leading-underscore", "allow-snake-case", "allow-pascal-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
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment