Skip to content

Instantly share code, notes, and snippets.

@arbalest
Created August 19, 2019 23:46
Show Gist options
  • Save arbalest/3caa448c2ef2a5814f52bebc0c4e6ab2 to your computer and use it in GitHub Desktop.
Save arbalest/3caa448c2ef2a5814f52bebc0c4e6ab2 to your computer and use it in GitHub Desktop.
TSLint Preferred Config
{
"defaultSeverity": "warning",
"extends": [
"tslint:recommended"
],
"linterOptions": {
"exclude": [
"node_modules/**"
]
},
"rules": {
"indent": [true, "spaces", 4],
"interface-name": false,
"no-consecutive-blank-lines": false,
"object-literal-sort-keys": false,
"ordered-imports": false,
"quotemark": [true, "single"],
"no-console": false,
"max-classes-per-file": false,
"ban-types": {
"options": [
["Object", "Avoid using the `Object` type. Did you mean `object`?"],
["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
["Number", "Avoid using the `Number` type. Did you mean `number`?"],
["String", "Avoid using the `String` type. Did you mean `string`?"],
["Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?"]
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment