UNPKG

7.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-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": true,
84 "no-empty-interface": true,
85 "no-eval": true,
86 "no-floating-promises": true,
87 "no-implicit-dependencies": {
88 "options": ["dev"]
89 },
90 "no-import-side-effect": true,
91 "no-inferred-empty-object-type": true,
92 "no-internal-module": true,
93 "no-invalid-template-strings": {
94 "severity": "warning"
95 },
96 "no-invalid-this": true,
97 "no-magic-numbers": false,
98 "no-misused-new": true,
99 "no-namespace": true,
100 "no-null-keyword": {
101 "severity": "warning"
102 },
103 "no-object-literal-type-assertion": true,
104 "no-parameter-properties": false,
105 "no-parameter-reassignment": true,
106 "no-reference": true,
107 "no-reference-import": true,
108 "no-return-await": true,
109 "no-shadowed-variable": true,
110 "no-string-literal": true,
111 "no-string-throw": true,
112 "no-switch-case-fall-through": true,
113 "no-trailing-whitespace": true,
114 "no-unnecessary-callback-wrapper": true,
115 "no-unnecessary-class": true,
116 "no-unnecessary-initializer": true,
117 "no-unnecessary-type-assertion": {
118 "severity": "warning"
119 },
120 "no-unsafe-finally": true,
121 "no-unused-expression": true,
122 "no-use-before-declare": false,
123 "no-var-keyword": true,
124 "no-var-requires": true,
125 "object-literal-key-quotes": {
126 "options": ["consistent-as-needed"]
127 },
128 "object-literal-shorthand": true,
129 "object-literal-sort-keys": false,
130 "one-line": {
131 "options": [
132 "check-catch",
133 "check-else",
134 "check-finally",
135 "check-open-brace",
136 "check-whitespace"
137 ]
138 },
139 "one-variable-per-declaration": {
140 "options": ["ignore-for-loop"]
141 },
142 "only-arrow-functions": {
143 "options": ["allow-declarations", "allow-named-functions"]
144 },
145 "ordered-imports": {
146 "options": {
147 "import-sources-order": "case-insensitive",
148 "module-source-path": "full",
149 "named-imports-order": "case-insensitive"
150 }
151 },
152 "prefer-const": true,
153 "prefer-for-of": true,
154 "prefer-readonly": true,
155 "quotemark": {
156 "options": ["double", "avoid-escape"]
157 },
158 "radix": true,
159 "semicolon": {
160 "options": ["always"]
161 },
162 "space-before-function-paren": {
163 "options": {
164 "anonymous": "never",
165 "asyncArrow": "always",
166 "constructor": "never",
167 "method": "never",
168 "named": "never"
169 }
170 },
171 "trailing-comma": {
172 "options": {
173 "esSpecCompliant": true,
174 "multiline": "always",
175 "singleline": "never"
176 }
177 },
178 "triple-equals": {
179 "options": ["allow-null-check"]
180 },
181 "typedef": [
182 true,
183 "call-signature",
184 "parameter",
185 "property-declaration",
186 "member-variable-declaration"
187 ],
188 "typedef-whitespace": {
189 "options": [
190 {
191 "call-signature": "nospace",
192 "index-signature": "nospace",
193 "parameter": "nospace",
194 "property-declaration": "nospace",
195 "variable-declaration": "nospace"
196 },
197 {
198 "call-signature": "onespace",
199 "index-signature": "onespace",
200 "parameter": "onespace",
201 "property-declaration": "onespace",
202 "variable-declaration": "onespace"
203 }
204 ]
205 },
206 "typeof-compare": false,
207 "unified-signatures": true,
208 "use-isnan": true,
209 "variable-name": {
210 "options": ["ban-keywords", "check-format", "allow-pascal-case"]
211 },
212 "whitespace": {
213 "options": [
214 "check-branch",
215 "check-decl",
216 "check-operator",
217 "check-separator",
218 "check-type",
219 "check-typecast"
220 ]
221 }
222 },
223 "rulesDirectory": []
224}