1 |
|
2 |
|
3 |
|
4 |
|
5 | module.exports = {
|
6 | "rules": {
|
7 |
|
8 | |
9 |
|
10 |
|
11 |
|
12 | "no-eval": true,
|
13 |
|
14 | |
15 |
|
16 |
|
17 |
|
18 | "await-promise": true,
|
19 | "forin": true,
|
20 | "id-length": true,
|
21 | "label-position": true,
|
22 | "match-default-export-name": true,
|
23 | "max-func-args": [true, 3],
|
24 | "min-class-cohesion": [true, 0.5],
|
25 | "newspaper-order": true,
|
26 | "no-any": true,
|
27 | "no-arg": true,
|
28 | "no-bitwise": true,
|
29 | "no-conditional-assignment": true,
|
30 | "no-console": [true, "debug", "info", "log", "time", "timeEnd", "trace"],
|
31 | "no-debugger": true,
|
32 | "no-duplicate-super": true,
|
33 | "no-duplicate-variable": true,
|
34 | "no-empty": true,
|
35 | "no-flag-args": true,
|
36 | "no-floating-promises": true,
|
37 | "no-for-each-push": true,
|
38 | "no-for-in-array": true,
|
39 | "no-import-side-effect": true,
|
40 | "no-invalid-template-strings": true,
|
41 | "no-invalid-this": true,
|
42 | "no-map-without-usage": true,
|
43 | "no-misused-new": true,
|
44 | "no-non-null-assertion": true,
|
45 | "no-reference-import": true,
|
46 | "no-sparse-arrays": true,
|
47 | "no-string-literal": true,
|
48 | "no-string-throw": true,
|
49 | "no-unnecessary-callback-wrapper": true,
|
50 | "no-unnecessary-initializer": true,
|
51 | "no-unsafe-any": true,
|
52 | "no-unsafe-finally": true,
|
53 | "no-unused-expression": true,
|
54 | "no-use-before-declare": true,
|
55 | "promise-function-async": true,
|
56 | "radix": true,
|
57 | "restrict-plus-operands": true,
|
58 | "strict-boolean-expressions": true,
|
59 | "switch-default": true,
|
60 | "triple-equals": [true, "allow-null-check"],
|
61 | "try-catch-first": true,
|
62 | "use-isnan": true,
|
63 |
|
64 | |
65 |
|
66 |
|
67 |
|
68 | "adjacent-overload-signatures": true,
|
69 | "array-type": [true, "array"],
|
70 | "arrow-parens": false,
|
71 | "callable-types": true,
|
72 | "class-name": true,
|
73 | "comment-format": true,
|
74 | "completed-docs": [true, "classes"],
|
75 | "interface-name": true,
|
76 | "jsdoc-format": true,
|
77 | "max-classes-per-file": [true, 3],
|
78 | "max-file-line-count": true,
|
79 | "max-line-length": [true, 140],
|
80 | "member-access": true,
|
81 | "member-ordering": [true, { "order": "fields-first" }],
|
82 | "new-parens": true,
|
83 | "no-commented-out-code": true,
|
84 | "no-complex-conditionals": true,
|
85 | "no-construct": true,
|
86 | "no-default-export": true,
|
87 | "no-empty-interface": true,
|
88 | "no-feature-envy": [true, 1, ["_"]],
|
89 | "no-inferrable-types": false,
|
90 | "no-null-keyword": false,
|
91 | "no-parameter-properties": true,
|
92 | "no-require-imports": true,
|
93 | "no-shadowed-variable": true,
|
94 | "no-unnecessary-qualifier": true,
|
95 | "no-var-keyword": true,
|
96 | "no-var-requires": true,
|
97 | "no-void-expression": true,
|
98 | "object-literal-sort-keys": false,
|
99 | "one-variable-per-declaration": true,
|
100 | "only-arrow-functions": false,
|
101 | "ordered-imports": true,
|
102 | "prefer-const": true,
|
103 | "prefer-dry-conditionals": true,
|
104 | "prefer-for-of": true,
|
105 | "prefer-method-signature": true,
|
106 | "prefer-template": true,
|
107 | "return-undefined": false,
|
108 | "typedef": [true, "call-signature", "arrow-call-signature", "parameter", "arrow-parameter", "property-declaration", "variable-declaration", "member-variable-declaration"],
|
109 | "unified-signatures": true,
|
110 | "variable-name": true,
|
111 |
|
112 | |
113 |
|
114 |
|
115 |
|
116 |
|
117 |
|
118 | |
119 |
|
120 |
|
121 |
|
122 | "align": [true, "parameters", "arguments", "statements"],
|
123 | "curly": true,
|
124 | "eofline": true,
|
125 | "import-spacing": true,
|
126 | "indent": [true, "spaces"],
|
127 | "linebreak-style": true,
|
128 | "newline-before-return": true,
|
129 | "no-consecutive-blank-lines": true,
|
130 | "no-trailing-whitespace": true,
|
131 | "object-literal-key-quotes": [true, "as-needed"],
|
132 | "one-line": [true, "check-open-brace", "check-catch", "check-else", "check-whitespace"],
|
133 | "quotemark": [true, "single"],
|
134 | "semicolon": [true, "always"],
|
135 | "trailing-comma": [true, {"singleline": "never", "multiline": "never"}],
|
136 |
|
137 |
|
138 |
|
139 | "typedef-whitespace": false,
|
140 | "whitespace": [true, "check-branch", "check-decl", "check-operator", "check-separator", "check-type"],
|
141 |
|
142 | |
143 |
|
144 |
|
145 | "ban": false,
|
146 | "ban-types": true,
|
147 | "cyclomatic-complexity": true,
|
148 | "file-header": false,
|
149 | "import-blacklist": false,
|
150 | "interface-over-type-literal": false,
|
151 | "no-angle-bracket-type-assertion": false,
|
152 | "no-inferred-empty-object-type": false,
|
153 | "no-internal-module": false,
|
154 | "no-magic-numbers": false,
|
155 | "no-mergeable-namespace": false,
|
156 | "no-namespace": false,
|
157 | "no-reference": true,
|
158 | "object-literal-shorthand": false,
|
159 | "space-before-function-paren": false,
|
160 |
|
161 | |
162 |
|
163 |
|
164 | "no-switch-case-fall-through": false,
|
165 | "typeof-compare": false,
|
166 | }
|
167 | };
|
168 |
|