-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
99 lines (99 loc) · 3.59 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
{
"extends": ["tslint:latest", "tslint-react", "tslint-config-prettier"],
"linterOptions": {
"exclude": ["node_modules", "src/**/*.js"]
},
"rules": {
"align": [true, "parameters", "statements", "members", "elements"],
"arrow-parens": [true, "ban-single-arg-parens"],
"await-promise": true,
"binary-expression-operand-order": true,
"curly": [true, "ignore-same-line"],
"cyclomatic-complexity": [true, 5],
"deprecation": true,
"interface-name": [true, "never-prefix"],
"match-default-export-name": true,
"member-access": [true, "no-public"],
"member-ordering": [
true,
{
"order": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"public-static-method",
"protected-static-method",
"private-static-method",
"public-constructor",
"protected-constructor",
"private-constructor"
]
}
],
"newline-before-return": true,
"no-boolean-literal-compare": true,
"no-consecutive-blank-lines": [true, 1],
"no-implicit-dependencies": [true, "dev"],
"no-floating-promises": true,
"no-for-in-array": true,
"no-inferred-empty-object-type": true,
"no-irregular-whitespace": true,
"no-magic-numbers": true,
"no-mergeable-namespace": true,
"no-non-null-assertion": true,
"no-parameter-reassignment": true,
"no-submodule-imports": false,
"no-switch-case-fall-through": true,
"no-unbound-method": [true, "ignore-static"],
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-qualifier": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-void-expression": true,
"number-literal-format": true,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-sort-keys": [true, "match-declaration-order"],
"ordered-imports": [
true,
{
"import-sources-order": "lowercase-first",
"grouped-imports": true,
"named-imports-order": "lowercase-first",
"module-source-path": "full"
}
],
"prefer-function-over-method": [true, "allow-public"],
"prefer-method-signature": true,
"prefer-readonly": true,
"prefer-switch": true,
"prefer-template": true,
"prefer-while": true,
"promise-function-async": true,
"quotemark": [true, "single", "avoid-escape", "avoid-template", "jsx-double"],
"radix": true,
"restrict-plus-operands": true,
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never",
"esSpecCompliant": true
}
],
"triple-equals": [true, "allow-null-check", "allow-undefined-check"],
"typedef": [
true,
"call-signature",
"arrow-call-signature",
"parameter",
"arrow-parameter",
"property-declaration",
"member-variable-declaration",
"array-destructuring"
],
"type-literal-delimiter": true,
"use-default-type-parameter": true
}
}