1 | {
|
2 | "extends": [
|
3 | "tslint:latest",
|
4 | "tslint-eslint-rules",
|
5 | "tslint-react"
|
6 | ],
|
7 | "rules": {
|
8 | "promise-function-async": true,
|
9 | "number-literal-format": true,
|
10 | "no-unnecessary-callback-wrapper": true,
|
11 | "array-bracket-spacing": [
|
12 | true,
|
13 | "never"
|
14 | ],
|
15 | "array-type": [
|
16 | true,
|
17 | "array"
|
18 | ],
|
19 | "arrow-parens": [
|
20 | true,
|
21 | "ban-single-arg-parens"
|
22 | ],
|
23 | "await-promise": true,
|
24 | "ban-types": false,
|
25 | "block-spacing": [
|
26 | true,
|
27 | "always"
|
28 | ],
|
29 | "brace-style": [
|
30 | true,
|
31 | "1tbs",
|
32 | {
|
33 | "allowSingleLine": true
|
34 | }
|
35 | ],
|
36 | "comment-format": [
|
37 | true,
|
38 | "check-space"
|
39 | ],
|
40 | "cyclomatic-complexity": [
|
41 | true,
|
42 | 10
|
43 | ],
|
44 | "handle-callback-err": [
|
45 | true,
|
46 | "^.*(e|E)rr"
|
47 | ],
|
48 | "indent": [
|
49 | true,
|
50 | "spaces",
|
51 | 2
|
52 | ],
|
53 | "interface-name": false,
|
54 | "jsx-boolean-value": false,
|
55 | "jsx-no-multiline-js": false,
|
56 | "jsx-use-translation-function": {
|
57 | "options": [
|
58 | "allow-htmlentities",
|
59 | "allow-punctuation"
|
60 | ]
|
61 | },
|
62 | "linebreak-style": [
|
63 | true,
|
64 | "LF"
|
65 | ],
|
66 | "match-default-export-name": false,
|
67 | "max-file-line-count": false,
|
68 | "member-access": false,
|
69 | "no-angle-bracket-type-assertion": false,
|
70 | "no-bitwise": false,
|
71 | "no-boolean-literal-compare": true,
|
72 | "no-consecutive-blank-lines": [
|
73 | true,
|
74 | 2
|
75 | ],
|
76 | "no-console": false,
|
77 | "no-constant-condition": true,
|
78 | "no-control-regex": true,
|
79 | "no-duplicate-case": true,
|
80 | "no-duplicate-variable": true,
|
81 | "no-empty-character-class": true,
|
82 | "no-ex-assign": true,
|
83 | "no-extra-boolean-cast": false,
|
84 | "no-extra-semi": true,
|
85 | "no-floating-promises": true,
|
86 | "no-inferred-empty-object-type": true,
|
87 | "no-inner-declarations": [
|
88 | true,
|
89 | "functions"
|
90 | ],
|
91 | "no-invalid-regexp": true,
|
92 | "no-invalid-this": true,
|
93 | "no-magic-numbers": false,
|
94 | "no-mergeable-namespace": true,
|
95 | "no-multi-spaces": true,
|
96 | "no-non-null-assertion": true,
|
97 | "no-regex-spaces": true,
|
98 | "no-shadowed-variable": false,
|
99 | "no-switch-case-fall-through": true,
|
100 | "no-unbound-method": true,
|
101 | "no-unexpected-multiline": true,
|
102 | "no-unnecessary-type-assertion": true,
|
103 | "no-unsafe-any": false,
|
104 | "no-use-before-declare": true,
|
105 | "no-var-requires": false,
|
106 | "object-literal-key-quotes": [
|
107 | true,
|
108 | "as-needed"
|
109 | ],
|
110 | "object-literal-sort-keys": false,
|
111 | "one-variable-per-declaration": true,
|
112 | "ordered-imports": [
|
113 | true,
|
114 | {
|
115 | "import-sources-order": "any",
|
116 | "named-imports-order": "case-insensitive"
|
117 | }
|
118 | ],
|
119 | "prefer-conditional-expression": false,
|
120 | "quotemark": [
|
121 | true,
|
122 | "single",
|
123 | "avoid-escape"
|
124 | ],
|
125 | "semicolon": [
|
126 | true,
|
127 | "always"
|
128 | ],
|
129 | "sort-imports": false,
|
130 | "strict-boolean-expressions": false,
|
131 | "switch-default": true,
|
132 | "ter-arrow-body-style": false,
|
133 | "ter-func-call-spacing": true,
|
134 | "ter-indent": [
|
135 | true,
|
136 | 2,
|
137 | {
|
138 | "SwitchCase": 1
|
139 | }
|
140 | ],
|
141 | "ter-max-len": [
|
142 | true,
|
143 | 100,
|
144 | 4
|
145 | ],
|
146 | "ter-prefer-arrow-callback": false,
|
147 | "trailing-comma": [
|
148 | true,
|
149 | {
|
150 | "multiline": "never",
|
151 | "singleline": "never"
|
152 | }
|
153 | ],
|
154 | "triple-equals": true,
|
155 | "type-literal-delimiter": true,
|
156 | "typedef-whitespace": [
|
157 | true,
|
158 | {
|
159 | "property-declaration": "nospace"
|
160 | }
|
161 | ],
|
162 | "typedef": [
|
163 | true,
|
164 | "call-signature",
|
165 | "parameter",
|
166 | "member-variable-declaration"
|
167 | ],
|
168 | "use-default-type-parameter": true,
|
169 | "valid-jsdoc": [
|
170 | true,
|
171 | {
|
172 | "requireReturn": false,
|
173 | "prefer": {
|
174 | "return": "returns"
|
175 | }
|
176 | }
|
177 | ],
|
178 | "valid-typeof": true,
|
179 | "variable-name": [
|
180 | true,
|
181 | "check-format",
|
182 | "allow-leading-underscore",
|
183 | "allow-pascal-case",
|
184 | "ban-keywords"
|
185 | ]
|
186 | }
|
187 | }
|