UNPKG

4.82 kBJSONView Raw
1{
2 "defaultSeverity": "error",
3 "jsRules": {},
4 "rules": {
5 "adjacent-overload-signatures": true,
6 "align": false,
7 "array-type": {
8 "options": [
9 "generic"
10 ]
11 },
12 "arrow-parens": [true, "ban-single-arg-parens"],
13 "arrow-return-shorthand": true,
14 "ban-types": {
15 "options": [
16 [
17 "Object",
18 "Avoid using the `Object` type. Did you mean `object`?"
19 ],
20 [
21 "Function",
22 "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
23 ],
24 [
25 "Boolean",
26 "Avoid using the `Boolean` type. Did you mean `boolean`?"
27 ],
28 [
29 "Number",
30 "Avoid using the `Number` type. Did you mean `number`?"
31 ],
32 [
33 "String",
34 "Avoid using the `String` type. Did you mean `string`?"
35 ],
36 [
37 "Symbol",
38 "Avoid using the `Symbol` type. Did you mean `symbol`?"
39 ]
40 ]
41 },
42 "callable-types": true,
43 "class-name": true,
44 "comment-format": {
45 "options": [
46 "check-space"
47 ]
48 },
49 "curly": {
50 "options": [
51 "ignore-same-line"
52 ]
53 },
54 "cyclomatic-complexity": {
55 "options": [20],
56 "severity": "warning"
57 },
58 "eofline": true,
59 "forin": {
60 "options": [true],
61 "severity": "warning"
62 },
63 "import-spacing": true,
64 "indent": false,
65 "interface-name": {
66 "options": [
67 "always-prefix"
68 ]
69 },
70 "interface-over-type-literal": false,
71 "jsdoc-format": true,
72 "label-position": true,
73 "max-classes-per-file": false,
74 "max-line-length": false,
75 "member-access": true,
76 "member-ordering": {
77 "options": {
78 "order": "statics-first"
79 }
80 },
81 "new-parens": true,
82 "no-angle-bracket-type-assertion": true,
83 "no-any": false,
84 "no-arg": true,
85 "no-bitwise": false,
86 "no-conditional-assignment": true,
87 "no-consecutive-blank-lines": true,
88 "no-console": false,
89 "no-construct": true,
90 "no-debugger": true,
91 "no-duplicate-super": true,
92 "no-empty": true,
93 "no-empty-interface": true,
94 "no-eval": false,
95 "no-internal-module": false,
96 "no-invalid-this": false,
97 "no-misused-new": true,
98 "no-namespace": false,
99 "no-parameter-properties": false,
100 "no-reference": false,
101 "no-reference-import": true,
102 "no-shadowed-variable": false,
103 "no-string-literal": true,
104 "no-string-throw": false,
105 "no-switch-case-fall-through": false,
106 "no-trailing-whitespace": true,
107 "no-unnecessary-initializer": true,
108 "no-unsafe-finally": true,
109 "no-unused-expression": true,
110 // disable this rule as it is very heavy performance-wise and not that useful
111 "no-use-before-declare": false,
112 "no-var-keyword": true,
113 "no-var-requires": true,
114 "object-literal-key-quotes": false,
115 "object-literal-shorthand": [true, "never"],
116 "object-literal-sort-keys": true,
117 "one-line": false,
118 "one-variable-per-declaration": {
119 "options": [
120 "ignore-for-loop"
121 ]
122 },
123 "only-arrow-functions": {
124 "options": [
125 "allow-declarations",
126 "allow-named-functions"
127 ]
128 },
129 "ordered-imports": false,
130 "prefer-const": true,
131 "prefer-for-of": false,
132 "quotemark": false,
133 "radix": false,
134 "semicolon": false,
135 "space-before-function-paren": false,
136 "switch-default": true,
137 "trailing-comma": false,
138 "triple-equals": false,
139 "typedef": false,
140 "typedef-whitespace": false,
141 "typeof-compare": false,
142 "unified-signatures": true,
143 "use-isnan": true,
144 "variable-name": {
145 "options": [
146 "ban-keywords",
147 "check-format",
148 "allow-pascal-case"
149 ]
150 },
151 "whitespace": false
152 },
153 "rulesDirectory": []
154}
\No newline at end of file