-
Notifications
You must be signed in to change notification settings - Fork 3
/
tslint.json
128 lines (128 loc) · 4.52 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"rules": {
// TypeScript-specific
"adjacent-overload-signatures": true,
"ban-types": [
true,
["Object", "Avoid using the `Object` type. Did you mean `object`?"],
[
"Function",
"Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
],
[
"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`?"]
],
"member-access": [true, "no-public"],
"no-inferrable-types": true,
"no-internal-module": true,
"no-non-null-assertion": true,
"no-parameter-reassignment": false,
"no-unnecessary-type-assertion": true,
"no-var-requires": false,
"only-arrow-functions": [
true,
"allow-declarations",
"allow-named-functions"
],
"prefer-for-of": true,
"unified-signatures": true,
// Functionality
"await-promise": [true, "RequestPromise"],
"ban": [false, ["test", "skip"], ["test", "only"]], // Excluded from pre-commit hook
"curly": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-console": false, // Excluded from pre-commit hook
"no-construct": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-eval": true,
"no-floating-promises": true,
"no-for-in-array": true,
"no-implicit-dependencies": false,
"no-inferred-empty-object-type": false,
"no-invalid-template-strings": true,
"no-invalid-this": true,
"no-misused-new": true,
"no-null-keyword": false,
"no-return-await": true,
"no-shadowed-variable": [
true,
{
"interface": false,
"typeAlias": false,
"temporalDeadZone": false
}
],
"no-sparse-arrays": true,
"no-string-throw": true,
"no-submodule-imports": [true, "source-map-support"],
"no-switch-case-fall-through": true,
"no-this-assignment": true,
"no-unnecessary-class": true,
"no-unsafe-finally": true,
"no-unused-expression": true,
"no-var-keyword": true,
"prefer-conditional-expression": true,
"prefer-object-spread": true,
"restrict-plus-operands": false,
"triple-equals": true,
"use-default-type-parameter": true,
"use-isnan": true,
// Maintainability
"cyclomatic-complexity": true,
"max-line-length": [true, 130],
"no-default-export": true,
"no-duplicate-imports": true,
"no-mergeable-namespace": true,
"no-require-imports": false,
"prefer-const": false,
"prefer-readonly": true,
// Style
"array-type": [false, "array-simple"],
"arrow-return-shorthand": [true, "multiline"],
"binary-expression-operand-order": true,
"class-name": true,
"comment-format": [true, "check-space"],
"interface-over-type-literal": true,
"match-default-export-name": true,
"new-parens": true,
"no-angle-bracket-type-assertion": false,
"no-boolean-literal-compare": true,
"no-unnecessary-initializer": true,
"no-unnecessary-qualifier": true,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-shorthand": true,
"one-line": [
true,
"check-catch",
"check-finally",
"check-else",
"check-open-brace",
"check-whitespace"
],
"one-variable-per-declaration": true,
"prefer-method-signature": true,
"prefer-switch": true,
"prefer-template": [true, "allow-single-concat"],
"prefer-while": true,
"quotemark": [true, "single", "avoid-escape", "avoid-template"],
"return-undefined": false,
"semicolon": [false, "never"],
"switch-final-break": true,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-snake-case",
"allow-pascal-case"
]
}
}