@egy186/eslint-config 0.103.0 → 0.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.ts +10 -0
- package/dist/browser.js +15 -0
- package/dist/commonjs.d.ts +9 -0
- package/dist/commonjs.js +12 -0
- package/dist/index.d.ts +508 -0
- package/dist/index.js +32 -0
- package/dist/jest.d.ts +65 -0
- package/dist/jest.js +63 -0
- package/dist/react.d.ts +134 -0
- package/dist/react.js +151 -0
- package/dist/rules/eslint-rules.d.ts +220 -0
- package/dist/rules/eslint-rules.js +221 -0
- package/dist/rules/import-rules.d.ts +48 -0
- package/dist/rules/import-rules.js +50 -0
- package/dist/rules/jsdoc-rules.d.ts +62 -0
- package/dist/rules/jsdoc-rules.js +62 -0
- package/dist/rules/n-rules.d.ts +40 -0
- package/dist/rules/n-rules.js +42 -0
- package/dist/rules/stylistic-rules.d.ts +140 -0
- package/dist/rules/stylistic-rules.js +180 -0
- package/dist/typescript.d.ts +172 -0
- package/dist/typescript.js +175 -0
- package/package.json +1 -1
package/dist/browser.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const n_rules_js_1 = __importDefault(require("./rules/n-rules.js"));
|
|
7
|
+
const config = {
|
|
8
|
+
env: {
|
|
9
|
+
browser: true,
|
|
10
|
+
node: false
|
|
11
|
+
},
|
|
12
|
+
// Disable all node rules
|
|
13
|
+
rules: Object.fromEntries(Object.keys(n_rules_js_1.default).map(rule => [rule, 'off']))
|
|
14
|
+
};
|
|
15
|
+
exports.default = config;
|
package/dist/commonjs.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const import_rules_js_1 = __importDefault(require("./rules/import-rules.js"));
|
|
7
|
+
const config = {
|
|
8
|
+
parserOptions: { sourceType: 'script' },
|
|
9
|
+
// Disable all import rules
|
|
10
|
+
rules: Object.fromEntries(Object.keys(import_rules_js_1.default).map(rule => [rule, 'off']))
|
|
11
|
+
};
|
|
12
|
+
exports.default = config;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
env: {
|
|
3
|
+
es2022: true;
|
|
4
|
+
node: true;
|
|
5
|
+
};
|
|
6
|
+
parserOptions: {
|
|
7
|
+
sourceType: "module";
|
|
8
|
+
};
|
|
9
|
+
plugins: string[];
|
|
10
|
+
reportUnusedDisableDirectives: true;
|
|
11
|
+
rules: {
|
|
12
|
+
'@stylistic/array-bracket-newline': "error";
|
|
13
|
+
'@stylistic/array-bracket-spacing': ["error", string];
|
|
14
|
+
'@stylistic/array-element-newline': ["error", {
|
|
15
|
+
minItems: number;
|
|
16
|
+
multiline: boolean;
|
|
17
|
+
}];
|
|
18
|
+
'@stylistic/arrow-parens': ["error", string];
|
|
19
|
+
'@stylistic/arrow-spacing': ["error", {
|
|
20
|
+
after: boolean;
|
|
21
|
+
before: boolean;
|
|
22
|
+
}];
|
|
23
|
+
'@stylistic/block-spacing': ["error", string];
|
|
24
|
+
'@stylistic/brace-style': ["error", string, {
|
|
25
|
+
allowSingleLine: boolean;
|
|
26
|
+
}];
|
|
27
|
+
'@stylistic/comma-dangle': ["error", string];
|
|
28
|
+
'@stylistic/comma-spacing': ["error", {
|
|
29
|
+
after: boolean;
|
|
30
|
+
before: boolean;
|
|
31
|
+
}];
|
|
32
|
+
'@stylistic/comma-style': ["error", string];
|
|
33
|
+
'@stylistic/computed-property-spacing': ["error", string];
|
|
34
|
+
'@stylistic/dot-location': ["error", string];
|
|
35
|
+
'@stylistic/eol-last': "error";
|
|
36
|
+
'@stylistic/func-call-spacing': ["error", string];
|
|
37
|
+
'@stylistic/function-call-argument-newline': ["error", string];
|
|
38
|
+
'@stylistic/function-call-spacing': ["error", string];
|
|
39
|
+
'@stylistic/function-paren-newline': ["error", string];
|
|
40
|
+
'@stylistic/generator-star-spacing': ["error", string];
|
|
41
|
+
'@stylistic/implicit-arrow-linebreak': ["error", string];
|
|
42
|
+
'@stylistic/indent': ["error", number, {
|
|
43
|
+
MemberExpression: number;
|
|
44
|
+
SwitchCase: number;
|
|
45
|
+
}];
|
|
46
|
+
'@stylistic/indent-binary-ops': ["error", number];
|
|
47
|
+
'@stylistic/jsx-child-element-spacing': "error";
|
|
48
|
+
'@stylistic/jsx-closing-bracket-location': "error";
|
|
49
|
+
'@stylistic/jsx-closing-tag-location': "error";
|
|
50
|
+
'@stylistic/jsx-curly-brace-presence': ["error", {
|
|
51
|
+
children: string;
|
|
52
|
+
props: string;
|
|
53
|
+
}];
|
|
54
|
+
'@stylistic/jsx-curly-newline': ["error", string];
|
|
55
|
+
'@stylistic/jsx-curly-spacing': "error";
|
|
56
|
+
'@stylistic/jsx-equals-spacing': "error";
|
|
57
|
+
'@stylistic/jsx-first-prop-new-line': "error";
|
|
58
|
+
'@stylistic/jsx-indent': ["error", number];
|
|
59
|
+
'@stylistic/jsx-indent-props': ["error", number];
|
|
60
|
+
'@stylistic/jsx-max-props-per-line': "error";
|
|
61
|
+
'@stylistic/jsx-newline': "off";
|
|
62
|
+
'@stylistic/jsx-one-expression-per-line': "error";
|
|
63
|
+
'@stylistic/jsx-props-no-multi-spaces': "error";
|
|
64
|
+
'@stylistic/jsx-quotes': ["error", string];
|
|
65
|
+
'@stylistic/jsx-self-closing-comp': "error";
|
|
66
|
+
'@stylistic/jsx-sort-props': "error";
|
|
67
|
+
'@stylistic/jsx-tag-spacing': ["error", {
|
|
68
|
+
beforeClosing: string;
|
|
69
|
+
}];
|
|
70
|
+
'@stylistic/jsx-wrap-multilines': "error";
|
|
71
|
+
'@stylistic/key-spacing': ["error", {
|
|
72
|
+
afterColon: boolean;
|
|
73
|
+
beforeColon: boolean;
|
|
74
|
+
}];
|
|
75
|
+
'@stylistic/keyword-spacing': ["error", {
|
|
76
|
+
after: boolean;
|
|
77
|
+
before: boolean;
|
|
78
|
+
}];
|
|
79
|
+
'@stylistic/linebreak-style': "error";
|
|
80
|
+
'@stylistic/lines-around-comment': "off";
|
|
81
|
+
'@stylistic/lines-between-class-members': "error";
|
|
82
|
+
'@stylistic/max-len': "off";
|
|
83
|
+
'@stylistic/max-statements-per-line': "error";
|
|
84
|
+
'@stylistic/member-delimiter-style': "error";
|
|
85
|
+
'@stylistic/multiline-ternary': ["error", string];
|
|
86
|
+
'@stylistic/new-parens': "error";
|
|
87
|
+
'@stylistic/newline-per-chained-call': "off";
|
|
88
|
+
'@stylistic/no-confusing-arrow': ["error", {
|
|
89
|
+
allowParens: boolean;
|
|
90
|
+
}];
|
|
91
|
+
'@stylistic/no-extra-parens': ["error", string, {
|
|
92
|
+
ignoreJSX: string;
|
|
93
|
+
nestedBinaryExpressions: boolean;
|
|
94
|
+
}];
|
|
95
|
+
'@stylistic/no-extra-semi': "error";
|
|
96
|
+
'@stylistic/no-floating-decimal': "error";
|
|
97
|
+
'@stylistic/no-mixed-operators': "error";
|
|
98
|
+
'@stylistic/no-mixed-spaces-and-tabs': "error";
|
|
99
|
+
'@stylistic/no-multi-spaces': "error";
|
|
100
|
+
'@stylistic/no-multiple-empty-lines': ["error", {
|
|
101
|
+
max: number;
|
|
102
|
+
maxBOF: number;
|
|
103
|
+
maxEOF: number;
|
|
104
|
+
}];
|
|
105
|
+
'@stylistic/no-tabs': "off";
|
|
106
|
+
'@stylistic/no-trailing-spaces': "error";
|
|
107
|
+
'@stylistic/no-whitespace-before-property': "error";
|
|
108
|
+
'@stylistic/nonblock-statement-body-position': "error";
|
|
109
|
+
'@stylistic/object-curly-newline': ["error", {
|
|
110
|
+
multiline: boolean;
|
|
111
|
+
}];
|
|
112
|
+
'@stylistic/object-curly-spacing': ["error", string];
|
|
113
|
+
'@stylistic/object-property-newline': "error";
|
|
114
|
+
'@stylistic/one-var-declaration-per-line': "off";
|
|
115
|
+
'@stylistic/operator-linebreak': ["error", string];
|
|
116
|
+
'@stylistic/padded-blocks': ["error", string];
|
|
117
|
+
'@stylistic/padding-line-between-statements': "error";
|
|
118
|
+
'@stylistic/quote-props': ["error", string];
|
|
119
|
+
'@stylistic/quotes': ["error", string, string];
|
|
120
|
+
'@stylistic/rest-spread-spacing': ["error", string];
|
|
121
|
+
'@stylistic/semi': ["error", string];
|
|
122
|
+
'@stylistic/semi-spacing': ["error", {
|
|
123
|
+
after: boolean;
|
|
124
|
+
before: boolean;
|
|
125
|
+
}];
|
|
126
|
+
'@stylistic/semi-style': ["error", string];
|
|
127
|
+
'@stylistic/space-before-blocks': "error";
|
|
128
|
+
'@stylistic/space-before-function-paren': ["error", string];
|
|
129
|
+
'@stylistic/space-in-parens': ["error", string];
|
|
130
|
+
'@stylistic/space-infix-ops': "error";
|
|
131
|
+
'@stylistic/space-unary-ops': "error";
|
|
132
|
+
'@stylistic/spaced-comment': ["error", string, {
|
|
133
|
+
block: {
|
|
134
|
+
balanced: boolean;
|
|
135
|
+
};
|
|
136
|
+
}];
|
|
137
|
+
'@stylistic/switch-colon-spacing': "error";
|
|
138
|
+
'@stylistic/template-curly-spacing': ["error", string];
|
|
139
|
+
'@stylistic/template-tag-spacing': ["error", string];
|
|
140
|
+
'@stylistic/type-annotation-spacing': "error";
|
|
141
|
+
'@stylistic/type-generic-spacing': "error";
|
|
142
|
+
'@stylistic/type-named-tuple-spacing': "error";
|
|
143
|
+
'@stylistic/wrap-iife': ["error", string];
|
|
144
|
+
'@stylistic/wrap-regex': "off";
|
|
145
|
+
'@stylistic/yield-star-spacing': ["error", {
|
|
146
|
+
after: boolean;
|
|
147
|
+
before: boolean;
|
|
148
|
+
}];
|
|
149
|
+
'n/callback-return': "error";
|
|
150
|
+
'n/exports-style': "error";
|
|
151
|
+
'n/file-extension-in-import': "error";
|
|
152
|
+
'n/global-require': "error";
|
|
153
|
+
'n/handle-callback-err': ["error", string];
|
|
154
|
+
'n/no-callback-literal': "error";
|
|
155
|
+
'n/no-deprecated-api': "error";
|
|
156
|
+
'n/no-exports-assign': "error";
|
|
157
|
+
'n/no-extraneous-import': "error";
|
|
158
|
+
'n/no-extraneous-require': "error";
|
|
159
|
+
'n/no-missing-import': "error";
|
|
160
|
+
'n/no-missing-require': "error";
|
|
161
|
+
'n/no-mixed-requires': "error";
|
|
162
|
+
'n/no-new-require': "error";
|
|
163
|
+
'n/no-path-concat': "error";
|
|
164
|
+
'n/no-process-env': "warn";
|
|
165
|
+
'n/no-process-exit': "warn";
|
|
166
|
+
'n/no-restricted-import': "off";
|
|
167
|
+
'n/no-restricted-require': "off";
|
|
168
|
+
'n/no-sync': "error";
|
|
169
|
+
'n/no-unpublished-bin': "error";
|
|
170
|
+
'n/no-unpublished-import': "error";
|
|
171
|
+
'n/no-unpublished-require': "error";
|
|
172
|
+
'n/no-unsupported-features/es-builtins': "error";
|
|
173
|
+
'n/no-unsupported-features/es-syntax': "error";
|
|
174
|
+
'n/no-unsupported-features/node-builtins': "error";
|
|
175
|
+
'n/prefer-global/buffer': "error";
|
|
176
|
+
'n/prefer-global/console': "error";
|
|
177
|
+
'n/prefer-global/process': "error";
|
|
178
|
+
'n/prefer-global/text-decoder': "error";
|
|
179
|
+
'n/prefer-global/text-encoder': "error";
|
|
180
|
+
'n/prefer-global/url': "error";
|
|
181
|
+
'n/prefer-global/url-search-params': "error";
|
|
182
|
+
'n/prefer-promises/dns': "error";
|
|
183
|
+
'n/prefer-promises/fs': "error";
|
|
184
|
+
'n/process-exit-as-throw': "error";
|
|
185
|
+
'n/shebang': "error";
|
|
186
|
+
'jsdoc/check-access': "error";
|
|
187
|
+
'jsdoc/check-alignment': "error";
|
|
188
|
+
'jsdoc/check-examples': "off";
|
|
189
|
+
'jsdoc/check-indentation': "error";
|
|
190
|
+
'jsdoc/check-line-alignment': "off";
|
|
191
|
+
'jsdoc/check-param-names': "error";
|
|
192
|
+
'jsdoc/check-property-names': "error";
|
|
193
|
+
'jsdoc/check-syntax': "error";
|
|
194
|
+
'jsdoc/check-tag-names': "error";
|
|
195
|
+
'jsdoc/check-types': "error";
|
|
196
|
+
'jsdoc/check-values': "error";
|
|
197
|
+
'jsdoc/empty-tags': "error";
|
|
198
|
+
'jsdoc/implements-on-classes': "error";
|
|
199
|
+
'jsdoc/imports-as-dependencies': "error";
|
|
200
|
+
'jsdoc/informative-docs': "error";
|
|
201
|
+
'jsdoc/match-description': "error";
|
|
202
|
+
'jsdoc/match-name': "off";
|
|
203
|
+
'jsdoc/multiline-blocks': "error";
|
|
204
|
+
'jsdoc/no-bad-blocks': "error";
|
|
205
|
+
'jsdoc/no-blank-block-descriptions': "error";
|
|
206
|
+
'jsdoc/no-blank-blocks': "error";
|
|
207
|
+
'jsdoc/no-defaults': "error";
|
|
208
|
+
'jsdoc/no-missing-syntax': ["off", {
|
|
209
|
+
contexts: never[];
|
|
210
|
+
}];
|
|
211
|
+
'jsdoc/no-multi-asterisks': "error";
|
|
212
|
+
'jsdoc/no-restricted-syntax': "off";
|
|
213
|
+
'jsdoc/no-types': "off";
|
|
214
|
+
'jsdoc/no-undefined-types': "error";
|
|
215
|
+
'jsdoc/require-asterisk-prefix': "error";
|
|
216
|
+
'jsdoc/require-description': "off";
|
|
217
|
+
'jsdoc/require-description-complete-sentence': "error";
|
|
218
|
+
'jsdoc/require-example': "off";
|
|
219
|
+
'jsdoc/require-file-overview': "off";
|
|
220
|
+
'jsdoc/require-hyphen-before-param-description': "error";
|
|
221
|
+
'jsdoc/require-jsdoc': "off";
|
|
222
|
+
'jsdoc/require-param': "error";
|
|
223
|
+
'jsdoc/require-param-description': "error";
|
|
224
|
+
'jsdoc/require-param-name': "error";
|
|
225
|
+
'jsdoc/require-param-type': "error";
|
|
226
|
+
'jsdoc/require-property': "error";
|
|
227
|
+
'jsdoc/require-property-description': "error";
|
|
228
|
+
'jsdoc/require-property-name': "error";
|
|
229
|
+
'jsdoc/require-property-type': "error";
|
|
230
|
+
'jsdoc/require-returns': "error";
|
|
231
|
+
'jsdoc/require-returns-check': "error";
|
|
232
|
+
'jsdoc/require-returns-description': "error";
|
|
233
|
+
'jsdoc/require-returns-type': "error";
|
|
234
|
+
'jsdoc/require-throws': "error";
|
|
235
|
+
'jsdoc/require-yields': "error";
|
|
236
|
+
'jsdoc/require-yields-check': "error";
|
|
237
|
+
'jsdoc/sort-tags': "error";
|
|
238
|
+
'jsdoc/tag-lines': ["error", string, {
|
|
239
|
+
startLines: number;
|
|
240
|
+
}];
|
|
241
|
+
'jsdoc/text-escaping': ["error", {
|
|
242
|
+
escapeHTML: boolean;
|
|
243
|
+
}];
|
|
244
|
+
'jsdoc/valid-types': "error";
|
|
245
|
+
'import/consistent-type-specifier-style': "error";
|
|
246
|
+
'import/default': "error";
|
|
247
|
+
'import/dynamic-import-chunkname': "error";
|
|
248
|
+
'import/export': "error";
|
|
249
|
+
'import/exports-last': "error";
|
|
250
|
+
'import/extensions': "error";
|
|
251
|
+
'import/first': "error";
|
|
252
|
+
'import/group-exports': "error";
|
|
253
|
+
'import/max-dependencies': "error";
|
|
254
|
+
'import/named': "error";
|
|
255
|
+
'import/namespace': "error";
|
|
256
|
+
'import/newline-after-import': "error";
|
|
257
|
+
'import/no-absolute-path': "error";
|
|
258
|
+
'import/no-amd': "error";
|
|
259
|
+
'import/no-anonymous-default-export': "error";
|
|
260
|
+
'import/no-commonjs': "error";
|
|
261
|
+
'import/no-cycle': "error";
|
|
262
|
+
'import/no-default-export': "off";
|
|
263
|
+
'import/no-deprecated': "error";
|
|
264
|
+
'import/no-duplicates': "error";
|
|
265
|
+
'import/no-dynamic-require': "error";
|
|
266
|
+
'import/no-empty-named-blocks': "error";
|
|
267
|
+
'import/no-extraneous-dependencies': "off";
|
|
268
|
+
'import/no-import-module-exports': "error";
|
|
269
|
+
'import/no-internal-modules': "off";
|
|
270
|
+
'import/no-mutable-exports': "error";
|
|
271
|
+
'import/no-named-as-default': "error";
|
|
272
|
+
'import/no-named-as-default-member': "error";
|
|
273
|
+
'import/no-named-default': "error";
|
|
274
|
+
'import/no-named-export': "off";
|
|
275
|
+
'import/no-namespace': "error";
|
|
276
|
+
'import/no-nodejs-modules': "off";
|
|
277
|
+
'import/no-relative-packages': "error";
|
|
278
|
+
'import/no-relative-parent-imports': "off";
|
|
279
|
+
'import/no-restricted-paths': "off";
|
|
280
|
+
'import/no-self-import': "error";
|
|
281
|
+
'import/no-unassigned-import': "error";
|
|
282
|
+
'import/no-unresolved': "error";
|
|
283
|
+
'import/no-unused-modules': "error";
|
|
284
|
+
'import/no-useless-path-segments': "error";
|
|
285
|
+
'import/no-webpack-loader-syntax': "error";
|
|
286
|
+
'import/order': "off";
|
|
287
|
+
'import/prefer-default-export': "error";
|
|
288
|
+
'import/unambiguous': "error";
|
|
289
|
+
'no-duplicate-imports': "off";
|
|
290
|
+
'line-comment-position': "off";
|
|
291
|
+
'unicode-bom': ["error", string];
|
|
292
|
+
'accessor-pairs': "error";
|
|
293
|
+
'arrow-body-style': ["error", string];
|
|
294
|
+
'block-scoped-var': "error";
|
|
295
|
+
camelcase: ["error", {
|
|
296
|
+
properties: string;
|
|
297
|
+
}];
|
|
298
|
+
'capitalized-comments': "error";
|
|
299
|
+
'class-methods-use-this': "error";
|
|
300
|
+
complexity: ["warn", number];
|
|
301
|
+
'consistent-return': "error";
|
|
302
|
+
'consistent-this': "error";
|
|
303
|
+
curly: ["error", string];
|
|
304
|
+
'default-case': "error";
|
|
305
|
+
'default-case-last': "error";
|
|
306
|
+
'default-param-last': "error";
|
|
307
|
+
'dot-notation': "error";
|
|
308
|
+
eqeqeq: "error";
|
|
309
|
+
'func-name-matching': "error";
|
|
310
|
+
'func-names': ["error", string];
|
|
311
|
+
'func-style': ["error", string];
|
|
312
|
+
'grouped-accessor-pairs': ["error", string];
|
|
313
|
+
'guard-for-in': "error";
|
|
314
|
+
'id-denylist': "off";
|
|
315
|
+
'id-length': "off";
|
|
316
|
+
'id-match': "off";
|
|
317
|
+
'init-declarations': "error";
|
|
318
|
+
'logical-assignment-operators': "off";
|
|
319
|
+
'max-classes-per-file': "error";
|
|
320
|
+
'max-depth': "error";
|
|
321
|
+
'max-lines': "warn";
|
|
322
|
+
'max-lines-per-function': "warn";
|
|
323
|
+
'max-nested-callbacks': "error";
|
|
324
|
+
'max-params': "off";
|
|
325
|
+
'max-statements': "warn";
|
|
326
|
+
'multiline-comment-style': "error";
|
|
327
|
+
'new-cap': "error";
|
|
328
|
+
'no-alert': "error";
|
|
329
|
+
'no-array-constructor': "error";
|
|
330
|
+
'no-bitwise': "off";
|
|
331
|
+
'no-caller': "error";
|
|
332
|
+
'no-case-declarations': "error";
|
|
333
|
+
'no-console': "warn";
|
|
334
|
+
'no-continue': "off";
|
|
335
|
+
'no-delete-var': "error";
|
|
336
|
+
'no-div-regex': "error";
|
|
337
|
+
'no-else-return': "error";
|
|
338
|
+
'no-empty': "error";
|
|
339
|
+
'no-empty-function': "error";
|
|
340
|
+
'no-empty-static-block': "error";
|
|
341
|
+
'no-eq-null': "error";
|
|
342
|
+
'no-eval': "error";
|
|
343
|
+
'no-extend-native': "error";
|
|
344
|
+
'no-extra-bind': "error";
|
|
345
|
+
'no-extra-boolean-cast': "error";
|
|
346
|
+
'no-extra-label': "off";
|
|
347
|
+
'no-global-assign': "error";
|
|
348
|
+
'no-implicit-coercion': "error";
|
|
349
|
+
'no-implicit-globals': "error";
|
|
350
|
+
'no-implied-eval': "error";
|
|
351
|
+
'no-inline-comments': "off";
|
|
352
|
+
'no-invalid-this': "error";
|
|
353
|
+
'no-iterator': "error";
|
|
354
|
+
'no-label-var': "off";
|
|
355
|
+
'no-labels': "error";
|
|
356
|
+
'no-lone-blocks': "error";
|
|
357
|
+
'no-lonely-if': "error";
|
|
358
|
+
'no-loop-func': "error";
|
|
359
|
+
'no-magic-numbers': "off";
|
|
360
|
+
'no-multi-assign': "error";
|
|
361
|
+
'no-multi-str': "error";
|
|
362
|
+
'no-negated-condition': "error";
|
|
363
|
+
'no-nested-ternary': "error";
|
|
364
|
+
'no-new': "error";
|
|
365
|
+
'no-new-func': "error";
|
|
366
|
+
'no-new-wrappers': "error";
|
|
367
|
+
'no-nonoctal-decimal-escape': "error";
|
|
368
|
+
'no-object-constructor': "error";
|
|
369
|
+
'no-octal': "error";
|
|
370
|
+
'no-octal-escape': "error";
|
|
371
|
+
'no-param-reassign': ["error", {
|
|
372
|
+
props: boolean;
|
|
373
|
+
}];
|
|
374
|
+
'no-plusplus': "off";
|
|
375
|
+
'no-proto': "error";
|
|
376
|
+
'no-redeclare': "error";
|
|
377
|
+
'no-regex-spaces': "error";
|
|
378
|
+
'no-restricted-exports': "off";
|
|
379
|
+
'no-restricted-globals': "off";
|
|
380
|
+
'no-restricted-imports': "off";
|
|
381
|
+
'no-restricted-properties': "off";
|
|
382
|
+
'no-restricted-syntax': "off";
|
|
383
|
+
'no-return-assign': "error";
|
|
384
|
+
'no-script-url': "error";
|
|
385
|
+
'no-sequences': "error";
|
|
386
|
+
'no-shadow': "error";
|
|
387
|
+
'no-shadow-restricted-names': "error";
|
|
388
|
+
'no-ternary': "off";
|
|
389
|
+
'no-throw-literal': "error";
|
|
390
|
+
'no-undef-init': "error";
|
|
391
|
+
'no-undefined': "off";
|
|
392
|
+
'no-underscore-dangle': ["error", {
|
|
393
|
+
allowAfterThis: boolean;
|
|
394
|
+
}];
|
|
395
|
+
'no-unneeded-ternary': ["error", {
|
|
396
|
+
defaultAssignment: boolean;
|
|
397
|
+
}];
|
|
398
|
+
'no-unused-expressions': ["error", {
|
|
399
|
+
enforceForJSX: boolean;
|
|
400
|
+
}];
|
|
401
|
+
'no-unused-labels': "off";
|
|
402
|
+
'no-useless-call': "error";
|
|
403
|
+
'no-useless-catch': "error";
|
|
404
|
+
'no-useless-computed-key': "error";
|
|
405
|
+
'no-useless-concat': "error";
|
|
406
|
+
'no-useless-constructor': "error";
|
|
407
|
+
'no-useless-escape': "error";
|
|
408
|
+
'no-useless-rename': "error";
|
|
409
|
+
'no-useless-return': "error";
|
|
410
|
+
'no-var': "error";
|
|
411
|
+
'no-void': "error";
|
|
412
|
+
'no-warning-comments': "error";
|
|
413
|
+
'no-with': "error";
|
|
414
|
+
'object-shorthand': ["error", string];
|
|
415
|
+
'one-var': ["error", string];
|
|
416
|
+
'operator-assignment': "off";
|
|
417
|
+
'prefer-arrow-callback': "error";
|
|
418
|
+
'prefer-const': "error";
|
|
419
|
+
'prefer-destructuring': "error";
|
|
420
|
+
'prefer-exponentiation-operator': "error";
|
|
421
|
+
'prefer-named-capture-group': "error";
|
|
422
|
+
'prefer-numeric-literals': "error";
|
|
423
|
+
'prefer-object-has-own': "error";
|
|
424
|
+
'prefer-object-spread': "error";
|
|
425
|
+
'prefer-promise-reject-errors': "error";
|
|
426
|
+
'prefer-regex-literals': "error";
|
|
427
|
+
'prefer-rest-params': "error";
|
|
428
|
+
'prefer-spread': "error";
|
|
429
|
+
'prefer-template': "error";
|
|
430
|
+
radix: "error";
|
|
431
|
+
'require-await': "error";
|
|
432
|
+
'require-unicode-regexp': "error";
|
|
433
|
+
'require-yield': "error";
|
|
434
|
+
'sort-imports': "error";
|
|
435
|
+
'sort-keys': "error";
|
|
436
|
+
'sort-vars': "error";
|
|
437
|
+
strict: ["error", string];
|
|
438
|
+
'symbol-description': "error";
|
|
439
|
+
'vars-on-top': "error";
|
|
440
|
+
yoda: "error";
|
|
441
|
+
'array-callback-return': ["error", {
|
|
442
|
+
checkForEach: boolean;
|
|
443
|
+
}];
|
|
444
|
+
'constructor-super': "error";
|
|
445
|
+
'for-direction': "error";
|
|
446
|
+
'getter-return': "error";
|
|
447
|
+
'no-async-promise-executor': "error";
|
|
448
|
+
'no-await-in-loop': "error";
|
|
449
|
+
'no-class-assign': "error";
|
|
450
|
+
'no-compare-neg-zero': "error";
|
|
451
|
+
'no-cond-assign': ["error", string];
|
|
452
|
+
'no-const-assign': "error";
|
|
453
|
+
'no-constant-binary-expression': "error";
|
|
454
|
+
'no-constant-condition': "error";
|
|
455
|
+
'no-constructor-return': "error";
|
|
456
|
+
'no-control-regex': "error";
|
|
457
|
+
'no-debugger': "error";
|
|
458
|
+
'no-dupe-args': "error";
|
|
459
|
+
'no-dupe-class-members': "error";
|
|
460
|
+
'no-dupe-else-if': "error";
|
|
461
|
+
'no-dupe-keys': "error";
|
|
462
|
+
'no-duplicate-case': "error";
|
|
463
|
+
'no-empty-character-class': "error";
|
|
464
|
+
'no-empty-pattern': "error";
|
|
465
|
+
'no-ex-assign': "error";
|
|
466
|
+
'no-fallthrough': "error";
|
|
467
|
+
'no-func-assign': "error";
|
|
468
|
+
'no-import-assign': "error";
|
|
469
|
+
'no-inner-declarations': "error";
|
|
470
|
+
'no-invalid-regexp': "error";
|
|
471
|
+
'no-irregular-whitespace': "error";
|
|
472
|
+
'no-loss-of-precision': "error";
|
|
473
|
+
'no-misleading-character-class': "error";
|
|
474
|
+
'no-new-native-nonconstructor': "error";
|
|
475
|
+
'no-new-symbol': "error";
|
|
476
|
+
'no-obj-calls': "error";
|
|
477
|
+
'no-promise-executor-return': "error";
|
|
478
|
+
'no-prototype-builtins': "error";
|
|
479
|
+
'no-self-assign': "error";
|
|
480
|
+
'no-self-compare': "error";
|
|
481
|
+
'no-setter-return': "error";
|
|
482
|
+
'no-sparse-arrays': "error";
|
|
483
|
+
'no-template-curly-in-string': "error";
|
|
484
|
+
'no-this-before-super': "error";
|
|
485
|
+
'no-undef': "error";
|
|
486
|
+
'no-unexpected-multiline': "error";
|
|
487
|
+
'no-unmodified-loop-condition': "error";
|
|
488
|
+
'no-unreachable': "error";
|
|
489
|
+
'no-unreachable-loop': "error";
|
|
490
|
+
'no-unsafe-finally': "error";
|
|
491
|
+
'no-unsafe-negation': "error";
|
|
492
|
+
'no-unsafe-optional-chaining': ["error", {
|
|
493
|
+
disallowArithmeticOperators: boolean;
|
|
494
|
+
}];
|
|
495
|
+
'no-unused-private-class-members': "error";
|
|
496
|
+
'no-unused-vars': ["error", {
|
|
497
|
+
args: string;
|
|
498
|
+
caughtErrors: string;
|
|
499
|
+
vars: string;
|
|
500
|
+
}];
|
|
501
|
+
'no-use-before-define': "error";
|
|
502
|
+
'no-useless-backreference': "error";
|
|
503
|
+
'require-atomic-updates': "error";
|
|
504
|
+
'use-isnan': "error";
|
|
505
|
+
'valid-typeof': "error";
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
export default config;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const eslint_rules_js_1 = __importDefault(require("./rules/eslint-rules.js"));
|
|
7
|
+
const import_rules_js_1 = __importDefault(require("./rules/import-rules.js"));
|
|
8
|
+
const jsdoc_rules_js_1 = __importDefault(require("./rules/jsdoc-rules.js"));
|
|
9
|
+
const n_rules_js_1 = __importDefault(require("./rules/n-rules.js"));
|
|
10
|
+
const stylistic_rules_js_1 = __importDefault(require("./rules/stylistic-rules.js"));
|
|
11
|
+
const config = {
|
|
12
|
+
env: {
|
|
13
|
+
es2022: true,
|
|
14
|
+
node: true
|
|
15
|
+
},
|
|
16
|
+
parserOptions: { sourceType: 'module' },
|
|
17
|
+
plugins: [
|
|
18
|
+
'import',
|
|
19
|
+
'jsdoc',
|
|
20
|
+
'n',
|
|
21
|
+
'@stylistic'
|
|
22
|
+
],
|
|
23
|
+
reportUnusedDisableDirectives: true,
|
|
24
|
+
rules: {
|
|
25
|
+
...eslint_rules_js_1.default,
|
|
26
|
+
...import_rules_js_1.default,
|
|
27
|
+
...jsdoc_rules_js_1.default,
|
|
28
|
+
...n_rules_js_1.default,
|
|
29
|
+
...stylistic_rules_js_1.default
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.default = config;
|
package/dist/jest.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
env: {
|
|
3
|
+
jest: true;
|
|
4
|
+
};
|
|
5
|
+
plugins: string[];
|
|
6
|
+
rules: {
|
|
7
|
+
'jest/consistent-test-it': "error";
|
|
8
|
+
'jest/expect-expect': "error";
|
|
9
|
+
'jest/max-expects': "error";
|
|
10
|
+
'jest/max-nested-describe': "error";
|
|
11
|
+
'jest/no-alias-methods': "error";
|
|
12
|
+
'jest/no-commented-out-tests': "error";
|
|
13
|
+
'jest/no-conditional-expect': "error";
|
|
14
|
+
'jest/no-conditional-in-test': "error";
|
|
15
|
+
'jest/no-confusing-set-timeout': "error";
|
|
16
|
+
'jest/no-deprecated-functions': "error";
|
|
17
|
+
'jest/no-disabled-tests': "error";
|
|
18
|
+
'jest/no-done-callback': "error";
|
|
19
|
+
'jest/no-duplicate-hooks': "error";
|
|
20
|
+
'jest/no-export': "error";
|
|
21
|
+
'jest/no-focused-tests': "error";
|
|
22
|
+
'jest/no-hooks': "off";
|
|
23
|
+
'jest/no-identical-title': "error";
|
|
24
|
+
'jest/no-interpolation-in-snapshots': "error";
|
|
25
|
+
'jest/no-jasmine-globals': "error";
|
|
26
|
+
'jest/no-large-snapshots': "warn";
|
|
27
|
+
'jest/no-mocks-import': "error";
|
|
28
|
+
'jest/no-restricted-jest-methods': "off";
|
|
29
|
+
'jest/no-restricted-matchers': "off";
|
|
30
|
+
'jest/no-standalone-expect': "error";
|
|
31
|
+
'jest/no-test-prefixes': "error";
|
|
32
|
+
'jest/no-test-return-statement': "error";
|
|
33
|
+
'jest/no-untyped-mock-factory': "warn";
|
|
34
|
+
'jest/prefer-called-with': "error";
|
|
35
|
+
'jest/prefer-comparison-matcher': "error";
|
|
36
|
+
'jest/prefer-each': "error";
|
|
37
|
+
'jest/prefer-equality-matcher': "error";
|
|
38
|
+
'jest/prefer-expect-assertions': ["warn", {
|
|
39
|
+
onlyFunctionsWithAsyncKeyword: boolean;
|
|
40
|
+
}];
|
|
41
|
+
'jest/prefer-expect-resolves': "error";
|
|
42
|
+
'jest/prefer-hooks-in-order': "error";
|
|
43
|
+
'jest/prefer-hooks-on-top': "error";
|
|
44
|
+
'jest/prefer-lowercase-title': "error";
|
|
45
|
+
'jest/prefer-mock-promise-shorthand': "error";
|
|
46
|
+
'jest/prefer-snapshot-hint': "error";
|
|
47
|
+
'jest/prefer-spy-on': "error";
|
|
48
|
+
'jest/prefer-strict-equal': "error";
|
|
49
|
+
'jest/prefer-to-be': "error";
|
|
50
|
+
'jest/prefer-to-contain': "error";
|
|
51
|
+
'jest/prefer-to-have-length': "error";
|
|
52
|
+
'jest/prefer-todo': "error";
|
|
53
|
+
'jest/require-hook': "error";
|
|
54
|
+
'jest/require-to-throw-message': "error";
|
|
55
|
+
'jest/require-top-level-describe': "error";
|
|
56
|
+
'jest/unbound-method': "error";
|
|
57
|
+
'jest/valid-describe-callback': "error";
|
|
58
|
+
'jest/valid-expect': "error";
|
|
59
|
+
'jest/valid-expect-in-promise': "error";
|
|
60
|
+
'jest/valid-title': "error";
|
|
61
|
+
'max-lines-per-function': "off";
|
|
62
|
+
'max-statements': "off";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export default config;
|