UNPKG

6.16 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 "deprecation": true,
41 "eofline": true,
42 "forin": true,
43 "import-blacklist": [true, "axios"],
44 "import-spacing": true,
45 "indent": {
46 "options": ["spaces"]
47 },
48 "interface-name": {
49 "options": ["never-prefix"]
50 },
51 "interface-over-type-literal": true,
52 "jsdoc-format": true,
53 "label-position": true,
54 "max-classes-per-file": {
55 "severity": "warning",
56 "options": [7]
57 },
58 "max-file-line-count": {
59 "severity": "warning",
60 "options": [500]
61 },
62 "max-line-length": {
63 "severity": "warning",
64 "options": [150]
65 },
66 "member-access": true,
67 "member-ordering": false,
68 "new-parens": true,
69 "no-angle-bracket-type-assertion": true,
70 "no-any": false,
71 "no-arg": true,
72 "no-bitwise": true,
73 "no-conditional-assignment": true,
74 "no-consecutive-blank-lines": true,
75 "no-console": {
76 "severity": "warning",
77 "options": ["debug", "error", "info", "log", "warn"]
78 },
79 "no-construct": true,
80 "no-debugger": true,
81 "no-duplicate-imports": true,
82 "no-duplicate-super": true,
83 "no-duplicate-switch-case": true,
84 "no-empty": {
85 "options": ["allow-empty-catch", "allow-empty-functions"]
86 },
87 "no-empty-interface": true,
88 "no-eval": true,
89 "no-floating-promises": true,
90 "no-implicit-dependencies": {
91 "options": ["dev"]
92 },
93 "no-import-side-effect": true,
94 "no-inferred-empty-object-type": true,
95 "no-internal-module": true,
96 "no-invalid-template-strings": {
97 "severity": "warning"
98 },
99 "no-invalid-this": true,
100 "no-magic-numbers": false,
101 "no-misused-new": true,
102 "no-namespace": true,
103 "no-null-keyword": {
104 "severity": "warning"
105 },
106 "no-object-literal-type-assertion": true,
107 "no-parameter-properties": false,
108 "no-parameter-reassignment": true,
109 "no-reference": true,
110 "no-reference-import": true,
111 "no-return-await": true,
112 "no-shadowed-variable": true,
113 "no-string-literal": true,
114 "no-string-throw": true,
115 "no-switch-case-fall-through": true,
116 "no-trailing-whitespace": true,
117 "no-unnecessary-callback-wrapper": true,
118 "no-unnecessary-class": true,
119 "no-unnecessary-initializer": true,
120 "no-unnecessary-type-assertion": {
121 "severity": "warning"
122 },
123 "no-unsafe-finally": true,
124 "no-unused-expression": true,
125 "no-use-before-declare": false,
126 "no-var-keyword": true,
127 "no-var-requires": true,
128 "object-literal-key-quotes": {
129 "options": ["consistent-as-needed"]
130 },
131 "object-literal-shorthand": true,
132 "object-literal-sort-keys": false,
133 "one-line": {
134 "options": [
135 "check-catch",
136 "check-else",
137 "check-finally",
138 "check-open-brace",
139 "check-whitespace"
140 ]
141 },
142 "one-variable-per-declaration": {
143 "options": ["ignore-for-loop"]
144 },
145 "only-arrow-functions": {
146 "options": ["allow-declarations", "allow-named-functions"]
147 },
148 "ordered-imports": {
149 "options": {
150 "import-sources-order": "case-insensitive",
151 "module-source-path": "full",
152 "named-imports-order": "case-insensitive"
153 }
154 },
155 "prefer-const": true,
156 "prefer-for-of": true,
157 "prefer-readonly": true,
158 "quotemark": {
159 "options": ["double", "avoid-escape"]
160 },
161 "radix": true,
162 "semicolon": {
163 "options": ["always"]
164 },
165 "space-before-function-paren": {
166 "options": {
167 "anonymous": "never",
168 "asyncArrow": "always",
169 "constructor": "never",
170 "method": "never",
171 "named": "never"
172 }
173 },
174 "trailing-comma": {
175 "options": {
176 "esSpecCompliant": true,
177 "multiline": "always",
178 "singleline": "never"
179 }
180 },
181 "triple-equals": {
182 "options": ["allow-null-check"]
183 },
184 "typedef": {
185 "severity": "warning",
186 "options": [
187 true,
188 "call-signature",
189 "parameter",
190 "property-declaration",
191 "member-variable-declaration"
192 ]
193 },
194 "typedef-whitespace": {
195 "options": [
196 {
197 "call-signature": "nospace",
198 "index-signature": "nospace",
199 "parameter": "nospace",
200 "property-declaration": "nospace",
201 "variable-declaration": "nospace"
202 },
203 {
204 "call-signature": "onespace",
205 "index-signature": "onespace",
206 "parameter": "onespace",
207 "property-declaration": "onespace",
208 "variable-declaration": "onespace"
209 }
210 ]
211 },
212 "typeof-compare": false,
213 "unified-signatures": true,
214 "use-isnan": true,
215 "variable-name": {
216 "options": ["ban-keywords", "check-format", "allow-pascal-case"]
217 },
218 "whitespace": {
219 "options": [
220 "check-branch",
221 "check-decl",
222 "check-operator",
223 "check-separator",
224 "check-type",
225 "check-typecast"
226 ]
227 }
228 },
229 "rulesDirectory": []
230}