-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtslint.json
More file actions
25 lines (25 loc) · 831 Bytes
/
Copy pathtslint.json
File metadata and controls
25 lines (25 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"extends": [
"tslint:recommended",
"tslint-plugin-prettier",
"tslint-config-prettier"
],
"rules": {
"array-type": [true, "array"],
"interface-name": false,
"no-unused-expression": [true, "allow-fast-null-checks"],
"object-literal-sort-keys": false,
"prettier": true,
"variable-name": [true, "ban-keywords", "allow-leading-underscore"],
// This generates some false positives, so keep disabled for now:
// https://github.com/Microsoft/TypeScript/issues/15300#issuecomment-332366024
"interface-over-type-literal": false,
"no-object-literal-type-assertion": true,
"no-empty": true,
"no-empty-interface": true,
"no-shadowed-variable": true,
"one-variable-per-declaration": true,
"prefer-for-of": true
},
"rulesDirectory": ["tslint-plugin-prettier"]
}