UNPKG

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