UNPKG

7.13 kBJSONView Raw
1{
2 "defaultSeverity": "error",
3 "extends": [],
4 "jsRules": {},
5 "rules": {
6 "adjacent-overload-signatures": true,
7 "align": {
8 "options": ["parameters", "statements"]
9 },
10 "array-type": {
11 "options": ["array-simple"]
12 },
13 "arrow-parens": {
14 "options": ["ban-single-arg-parens"]
15 },
16 "arrow-return-shorthand": true,
17 "await-promise": true,
18 "ban-types": {
19 "options": [
20 ["Object", "Avoid using the `Object` type. Did you mean `object`?"],
21 [
22 "Function",
23 "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
24 ],
25 ["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
26 ["Number", "Avoid using the `Number` type. Did you mean `number`?"],
27 ["String", "Avoid using the `String` type. Did you mean `string`?"],
28 ["Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?"]
29 ]
30 },
31 "callable-types": true,
32 "class-name": true,
33 "comment-format": {
34 "options": ["check-space"]
35 },
36 "curly": true,
37 "cyclomatic-complexity": {
38 "severity": "warning"
39 },
40 "eofline": true,
41 "forin": true,
42 "import-spacing": true,
43 "indent": {
44 "options": ["spaces"]
45 },
46 "interface-name": {
47 "options": ["never-prefix"]
48 },
49 "interface-over-type-literal": true,
50 "jsdoc-format": true,
51 "label-position": true,
52 "max-classes-per-file": {
53 "severity": "warning",
54 "options": [7]
55 },
56 "max-file-line-count": {
57 "severity": "warning",
58 "options": [400]
59 },
60 "max-line-length": {
61 "severity": "warning",
62 "options": [150]
63 },
64 "member-access": true,
65 "member-ordering": false,
66 "new-parens": true,
67 "no-angle-bracket-type-assertion": true,
68 "no-any": false,
69 "no-arg": true,
70 "no-bitwise": true,
71 "no-conditional-assignment": true,
72 "no-consecutive-blank-lines": true,
73 "no-console": {
74 "severity": "warning",
75 "options": ["debug", "error", "info", "log", "warn"]
76 },
77 "no-construct": true,
78 "no-debugger": true,
79 "no-duplicate-imports": true,
80 "no-duplicate-super": true,
81 "no-duplicate-switch-case": true,
82 "no-empty": true,
83 "no-empty-interface": true,
84 "no-eval": true,
85 "no-floating-promises": true,
86 "no-implicit-dependencies": {
87 "options": ["dev"]
88 },
89 "no-import-side-effect": true,
90 "no-inferred-empty-object-type": true,
91 "no-internal-module": true,
92 "no-invalid-template-strings": {
93 "severity": "warning"
94 },
95 "no-invalid-this": true,
96 "no-magic-numbers": false,
97 "no-misused-new": true,
98 "no-namespace": true,
99 "no-null-keyword": {
100 "severity": "warning"
101 },
102 "no-object-literal-type-assertion": true,
103 "no-parameter-properties": false,
104 "no-parameter-reassignment": true,
105 "no-reference": true,
106 "no-reference-import": true,
107 "no-return-await": true,
108 "no-shadowed-variable": true,
109 "no-string-literal": true,
110 "no-string-throw": true,
111 "no-switch-case-fall-through": true,
112 "no-trailing-whitespace": true,
113 "no-unnecessary-callback-wrapper": true,
114 "no-unnecessary-class": true,
115 "no-unnecessary-initializer": true,
116 "no-unnecessary-type-assertion": {
117 "severity": "warning"
118 },
119 "no-unsafe-finally": true,
120 "no-unused-expression": true,
121 "no-use-before-declare": false,
122 "no-var-keyword": true,
123 "no-var-requires": true,
124 "object-literal-key-quotes": {
125 "options": ["consistent-as-needed"]
126 },
127 "object-literal-shorthand": true,
128 "object-literal-sort-keys": false,
129 "one-line": {
130 "options": [
131 "check-catch",
132 "check-else",
133 "check-finally",
134 "check-open-brace",
135 "check-whitespace"
136 ]
137 },
138 "one-variable-per-declaration": {
139 "options": ["ignore-for-loop"]
140 },
141 "only-arrow-functions": {
142 "options": ["allow-declarations", "allow-named-functions"]
143 },
144 "ordered-imports": {
145 "options": {
146 "import-sources-order": "case-insensitive",
147 "module-source-path": "full",
148 "named-imports-order": "case-insensitive"
149 }
150 },
151 "prefer-const": true,
152 "prefer-for-of": true,
153 "prefer-readonly": true,
154 "quotemark": {
155 "options": ["double", "avoid-escape"]
156 },
157 "radix": true,
158 "semicolon": {
159 "options": ["always"]
160 },
161 "space-before-function-paren": {
162 "options": {
163 "anonymous": "never",
164 "asyncArrow": "always",
165 "constructor": "never",
166 "method": "never",
167 "named": "never"
168 }
169 },
170 "trailing-comma": {
171 "options": {
172 "esSpecCompliant": true,
173 "multiline": "always",
174 "singleline": "never"
175 }
176 },
177 "triple-equals": {
178 "options": ["allow-null-check"]
179 },
180 "typedef": [
181 true,
182 "call-signature",
183 "parameter",
184 "property-declaration",
185 "member-variable-declaration"
186 ],
187 "typedef-whitespace": {
188 "options": [
189 {
190 "call-signature": "nospace",
191 "index-signature": "nospace",
192 "parameter": "nospace",
193 "property-declaration": "nospace",
194 "variable-declaration": "nospace"
195 },
196 {
197 "call-signature": "onespace",
198 "index-signature": "onespace",
199 "parameter": "onespace",
200 "property-declaration": "onespace",
201 "variable-declaration": "onespace"
202 }
203 ]
204 },
205 "typeof-compare": false,
206 "unified-signatures": true,
207 "use-isnan": true,
208 "variable-name": {
209 "options": ["ban-keywords", "check-format", "allow-pascal-case"]
210 },
211 "whitespace": {
212 "options": [
213 "check-branch",
214 "check-decl",
215 "check-operator",
216 "check-separator",
217 "check-type",
218 "check-typecast"
219 ]
220 }
221 },
222 "rulesDirectory": []
223}