-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
83 lines (76 loc) · 2.19 KB
/
tslint.json
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended",
"tslint-eslint-rules"
],
"rules": {
"no-console": [true, "time", "timeEnd", "trace"],
"triple-equals": true,
"prefer-object-spread": true,
"no-empty": false,
"no-arg": true,
"radix": true,
// code style
"class-name": true,
"interface-name": [true, "always-prefix"],
"variable-name": [true, "ban-keywords", "check-format"],
"semicolon": [true, "always"],
"indent": [true, "tabs", 4],
"quotemark": [true, "single"],
"space-before-function-paren": [true, {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"array-type": [true, "array"],
"object-literal-sort-keys": false,
"object-curly-spacing": [true, "always"],
"trailing-comma": false,
"curly": true,
// ts / es6
"await-promise": true,
"prefer-const": true,
"prefer-readonly": true,
"arrow-return-shorthand": true,
"no-angle-bracket-type-assertion": true,
"prefer-for-of": true,
"callable-types": false,
// file layout
"no-require-imports": true,
"member-access": true,
"member-ordering": false,
// code readability
"no-namespace": true,
"no-reference": true,
"no-consecutive-blank-lines": true,
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-initializer": false,
"cyclomatic-complexity": [true, 20],
"max-file-line-count": [true, 800],
"max-line-length": [true, 200],
// unused
"no-unused-expression": true,
"no-parameter-reassignment": false,
// jsdoc
"jsdoc-format": true,
// eslint rules
"no-constant-condition": true,
"no-duplicate-case": true,
"no-ex-assign": true,
"no-extra-boolean-cast": true,
"no-extra-semi": true,
"no-inner-declarations": true,
"no-irregular-whitespace": true,
"no-multi-spaces": true,
"no-unexpected-multiline": true,
"no-sparse-arrays": true,
"valid-typeof": true,
"handle-callback-err": true,
"arrow-body-style": ["error", "always"],
"arrow-parens": true,
"prefer-arrow-callback": ["error"],
"func-call-spacing": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "never"],
"padded-blocks": ["error", "never"],
"space-in-parens": ["error", "never"]
},
"rulesDirectory": []
}