-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtslint.json
More file actions
22 lines (22 loc) · 841 Bytes
/
tslint.json
File metadata and controls
22 lines (22 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"jsRules": {},
"rules": {
"curly": true,
"semicolon": true,
"class-name": true,
"ordered-imports": false, // 習慣上希望有
"object-literal-sort-keys": false, // 習慣上希望有
"max-classes-per-file": false, // 習慣上一隻檔案一個
"quotemark": [true, "single"],
"object-literal-key-quotes": [true, "as-needed"],
"arrow-parens": [true, "ban-single-arg-parens"],
"variable-name": [true, "ban-keywords", "allow-leading-underscore"],
"no-namespace": [true, "allow-declarations"],
"interface-over-type-literal": false, // for use type
"no-implicit-dependencies": false, // for use alias
"no-submodule-imports": false, // for use alias
"no-angle-bracket-type-assertion": false
},
"rulesDirectory": []
}