@azat-io/eslint-config 2.0.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.
@@ -0,0 +1,631 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const eslintCommentsPlugin = require("@eslint-community/eslint-plugin-eslint-comments");
4
+ const preferArrowPlugin = require("eslint-plugin-prefer-arrow");
5
+ const preferLetPlugin = require("eslint-plugin-prefer-let");
6
+ const importXPlugin = require("eslint-plugin-import-x");
7
+ const promisePlugin = require("eslint-plugin-promise");
8
+ const sonarjsPlugin = require("eslint-plugin-sonarjs");
9
+ const unicornPlugin = require("eslint-plugin-unicorn");
10
+ const regexpPlugin = require("eslint-plugin-regexp");
11
+ const jsdocPlugin = require("eslint-plugin-jsdoc");
12
+ const globals = require("globals");
13
+ let core = (config) => {
14
+ let files = ["**/*.js", "**/*.cjs", "**/*.mjs"];
15
+ if (config.typescript) {
16
+ files.push("**/*.ts", "**/*.cts", "**/*.mts");
17
+ }
18
+ if (config.react || config.qwik) {
19
+ files.push("**/*.jsx");
20
+ if (config.typescript) {
21
+ files.push("**/*.tsx");
22
+ }
23
+ }
24
+ if (config.astro) {
25
+ files.push("**/*.astro");
26
+ }
27
+ if (config.svelte) {
28
+ files.push("**/*.svelte");
29
+ }
30
+ if (config.vue) {
31
+ files.push("**/*.vue");
32
+ }
33
+ return {
34
+ files,
35
+ languageOptions: {
36
+ globals: {
37
+ ...globals.browser,
38
+ ...globals.es2025,
39
+ ...globals.node
40
+ },
41
+ parserOptions: {
42
+ ecmaVersion: "latest",
43
+ sourceType: "module"
44
+ }
45
+ },
46
+ plugins: {
47
+ "@eslint-community/eslint-comments": eslintCommentsPlugin,
48
+ "import-x": importXPlugin,
49
+ jsdoc: jsdocPlugin,
50
+ "prefer-arrow": preferArrowPlugin,
51
+ "prefer-let": preferLetPlugin,
52
+ promise: promisePlugin,
53
+ regexp: regexpPlugin,
54
+ sonarjs: sonarjsPlugin,
55
+ unicorn: unicornPlugin
56
+ },
57
+ rules: {
58
+ "array-callback-return": [
59
+ "error",
60
+ {
61
+ allowImplicit: false,
62
+ checkForEach: false
63
+ }
64
+ ],
65
+ "arrow-body-style": ["error", "as-needed"],
66
+ camelcase: [
67
+ "error",
68
+ {
69
+ ignoreGlobals: true,
70
+ properties: "always"
71
+ }
72
+ ],
73
+ "capitalized-comments": [
74
+ "error",
75
+ "always",
76
+ {
77
+ ignorePattern: "c8|v8|spell-checker"
78
+ }
79
+ ],
80
+ "consistent-return": "error",
81
+ "constructor-super": "error",
82
+ curly: ["error", "all"],
83
+ "default-case-last": "error",
84
+ "default-param-last": "error",
85
+ "dot-notation": "error",
86
+ eqeqeq: "error",
87
+ "func-names": ["error", "never"],
88
+ "id-length": [
89
+ "error",
90
+ {
91
+ exceptions: ["_", "a", "b", "i", "j", "t", "x", "y", "z"],
92
+ min: 2,
93
+ properties: "never"
94
+ }
95
+ ],
96
+ "logical-assignment-operators": ["error", "always"],
97
+ "max-params": [
98
+ "error",
99
+ {
100
+ max: 3
101
+ }
102
+ ],
103
+ "new-cap": [
104
+ "error",
105
+ {
106
+ capIsNew: false,
107
+ newIsCap: true,
108
+ properties: true
109
+ }
110
+ ],
111
+ "no-array-constructor": "error",
112
+ "no-async-promise-executor": "error",
113
+ "no-await-in-loop": "error",
114
+ "no-caller": "error",
115
+ "no-case-declarations": "error",
116
+ "no-class-assign": "error",
117
+ "no-compare-neg-zero": "error",
118
+ "no-cond-assign": "error",
119
+ "no-console": [
120
+ "error",
121
+ {
122
+ allow: ["error", "warn", "info"]
123
+ }
124
+ ],
125
+ "no-const-assign": "error",
126
+ "no-constant-binary-expression": "error",
127
+ "no-constant-condition": "error",
128
+ "no-constructor-return": "error",
129
+ "no-control-regex": "error",
130
+ "no-debugger": "error",
131
+ "no-delete-var": "error",
132
+ "no-dupe-args": "error",
133
+ "no-dupe-class-members": "error",
134
+ "no-dupe-else-if": "error",
135
+ "no-dupe-keys": "error",
136
+ "no-duplicate-case": "error",
137
+ "no-else-return": "error",
138
+ "no-empty": [
139
+ "error",
140
+ {
141
+ allowEmptyCatch: true
142
+ }
143
+ ],
144
+ "no-empty-character-class": "error",
145
+ "no-empty-pattern": "error",
146
+ "no-empty-static-block": "error",
147
+ "no-eval": "error",
148
+ "no-ex-assign": "error",
149
+ "no-extend-native": "error",
150
+ "no-extra-bind": "error",
151
+ "no-extra-boolean-cast": "error",
152
+ "no-extra-label": "error",
153
+ "no-fallthrough": "error",
154
+ "no-func-assign": "error",
155
+ "no-global-assign": "error",
156
+ "no-implied-eval": "error",
157
+ "no-import-assign": "error",
158
+ "no-invalid-regexp": "error",
159
+ "no-irregular-whitespace": [
160
+ "error",
161
+ {
162
+ skipComments: true,
163
+ skipJSXText: true,
164
+ skipRegExps: true,
165
+ skipStrings: true,
166
+ skipTemplates: true
167
+ }
168
+ ],
169
+ "no-iterator": "error",
170
+ "no-label-var": "error",
171
+ "no-labels": [
172
+ "error",
173
+ {
174
+ allowLoop: false,
175
+ allowSwitch: false
176
+ }
177
+ ],
178
+ "no-loop-func": "error",
179
+ "no-loss-of-precision": "error",
180
+ "no-multi-assign": "error",
181
+ "no-multi-str": "error",
182
+ "no-nested-ternary": "error",
183
+ "no-new": "error",
184
+ "no-new-func": "error",
185
+ "no-new-native-nonconstructor": "error",
186
+ "no-new-wrappers": "error",
187
+ "no-nonoctal-decimal-escape": "error",
188
+ "no-obj-calls": "error",
189
+ "no-object-constructor": "error",
190
+ "no-octal": "error",
191
+ "no-octal-escape": "error",
192
+ "no-param-reassign": "error",
193
+ "no-promise-executor-return": "error",
194
+ "no-proto": "error",
195
+ "no-prototype-builtins": "error",
196
+ "no-regex-spaces": "error",
197
+ "no-return-assign": ["error", "except-parens"],
198
+ "no-self-assign": [
199
+ "error",
200
+ {
201
+ props: true
202
+ }
203
+ ],
204
+ "no-self-compare": "error",
205
+ "no-setter-return": "error",
206
+ "no-shadow": "error",
207
+ "no-shadow-restricted-names": "error",
208
+ "no-sparse-arrays": "error",
209
+ "no-template-curly-in-string": "error",
210
+ "no-this-before-super": "error",
211
+ "no-undef": "error",
212
+ "no-undef-init": "error",
213
+ "no-undefined": "error",
214
+ "no-unexpected-multiline": "error",
215
+ "no-unneeded-ternary": [
216
+ "error",
217
+ {
218
+ defaultAssignment: false
219
+ }
220
+ ],
221
+ "no-unreachable": "error",
222
+ "no-unreachable-loop": "error",
223
+ "no-unsafe-finally": "error",
224
+ "no-unsafe-negation": "error",
225
+ "no-unsafe-optional-chaining": "error",
226
+ "no-unused-expressions": [
227
+ "error",
228
+ {
229
+ allowShortCircuit: true,
230
+ allowTaggedTemplates: true,
231
+ allowTernary: true
232
+ }
233
+ ],
234
+ "no-unused-private-class-members": "error",
235
+ "no-unused-vars": [
236
+ "error",
237
+ {
238
+ argsIgnorePattern: "^_",
239
+ caughtErrorsIgnorePattern: "^_",
240
+ ignoreRestSiblings: true,
241
+ varsIgnorePattern: "^_"
242
+ }
243
+ ],
244
+ "no-use-before-define": [
245
+ "error",
246
+ {
247
+ classes: false,
248
+ functions: false,
249
+ variables: false
250
+ }
251
+ ],
252
+ "no-useless-assignment": config.astro || config.react || config.qwik ? "off" : "error",
253
+ "no-useless-backreference": "error",
254
+ "no-useless-call": "error",
255
+ "no-useless-catch": "error",
256
+ "no-useless-computed-key": "error",
257
+ "no-useless-concat": "error",
258
+ "no-useless-constructor": "error",
259
+ "no-useless-escape": "error",
260
+ "no-useless-rename": "error",
261
+ "no-useless-return": "error",
262
+ "no-var": "error",
263
+ "no-void": "error",
264
+ "no-with": "error",
265
+ "object-shorthand": ["error", "always"],
266
+ "one-var": [
267
+ "error",
268
+ {
269
+ initialized: "never"
270
+ }
271
+ ],
272
+ "operator-assignment": ["error", "always"],
273
+ "prefer-arrow-callback": "error",
274
+ "prefer-destructuring": "error",
275
+ "prefer-exponentiation-operator": "error",
276
+ "prefer-named-capture-group": "error",
277
+ "prefer-numeric-literals": "error",
278
+ "prefer-object-has-own": "error",
279
+ "prefer-object-spread": "error",
280
+ "prefer-promise-reject-errors": "error",
281
+ "prefer-regex-literals": [
282
+ "error",
283
+ {
284
+ disallowRedundantWrapping: true
285
+ }
286
+ ],
287
+ "prefer-rest-params": "error",
288
+ "prefer-spread": "error",
289
+ "prefer-template": "error",
290
+ "require-await": "error",
291
+ "require-yield": "error",
292
+ strict: ["error", "never"],
293
+ "symbol-description": "error",
294
+ "use-isnan": [
295
+ "error",
296
+ {
297
+ enforceForIndexOf: true,
298
+ enforceForSwitchCase: true
299
+ }
300
+ ],
301
+ "valid-typeof": [
302
+ "error",
303
+ {
304
+ requireStringLiterals: true
305
+ }
306
+ ],
307
+ yoda: ["error", "never"],
308
+ "@eslint-community/eslint-comments/disable-enable-pair": "error",
309
+ "@eslint-community/eslint-comments/no-aggregating-enable": "error",
310
+ "@eslint-community/eslint-comments/no-duplicate-disable": "error",
311
+ "@eslint-community/eslint-comments/no-unlimited-disable": "error",
312
+ "@eslint-community/eslint-comments/no-unused-disable": "error",
313
+ "@eslint-community/eslint-comments/no-unused-enable": "error",
314
+ "import-x/consistent-type-specifier-style": ["error", "prefer-top-level"],
315
+ "import-x/default": "error",
316
+ "import-x/export": "error",
317
+ "import-x/first": "error",
318
+ "import-x/named": "error",
319
+ "import-x/namespace": "error",
320
+ "import-x/newline-after-import": "error",
321
+ "import-x/no-absolute-path": "error",
322
+ "import-x/no-amd": "error",
323
+ "import-x/no-empty-named-blocks": "error",
324
+ "import-x/no-extraneous-dependencies": [
325
+ "error",
326
+ {
327
+ devDependencies: true,
328
+ optionalDependencies: false,
329
+ peerDependencies: false
330
+ }
331
+ ],
332
+ "import-x/no-import-module-exports": "error",
333
+ "import-x/no-named-as-default-member": "error",
334
+ "import-x/no-named-default": "error",
335
+ "import-x/no-self-import": "error",
336
+ "import-x/no-unresolved": [
337
+ "error",
338
+ config.astro ? {
339
+ ignore: ["^astro:(assets|content|transitions)"]
340
+ } : {}
341
+ ],
342
+ "import-x/no-useless-path-segments": "error",
343
+ "import-x/no-webpack-loader-syntax": "error",
344
+ "jsdoc/check-access": "error",
345
+ "jsdoc/check-alignment": "error",
346
+ "jsdoc/check-indentation": "error",
347
+ "jsdoc/check-line-alignment": "error",
348
+ "jsdoc/check-param-names": "error",
349
+ "jsdoc/check-property-names": "error",
350
+ "jsdoc/check-syntax": "error",
351
+ "jsdoc/check-tag-names": "error",
352
+ "jsdoc/check-template-names": "error",
353
+ "jsdoc/check-types": "error",
354
+ "jsdoc/check-values": "error",
355
+ "jsdoc/empty-tags": "error",
356
+ "jsdoc/implements-on-classes": "error",
357
+ "jsdoc/imports-as-dependencies": "error",
358
+ "jsdoc/informative-docs": "error",
359
+ "jsdoc/multiline-blocks": "error",
360
+ "jsdoc/no-bad-blocks": "error",
361
+ "jsdoc/no-blank-block-descriptions": "error",
362
+ "jsdoc/no-blank-blocks": "error",
363
+ "jsdoc/no-defaults": "error",
364
+ "jsdoc/no-multi-asterisks": "error",
365
+ "jsdoc/no-undefined-types": "error",
366
+ "jsdoc/require-asterisk-prefix": "error",
367
+ "jsdoc/require-description": "error",
368
+ "jsdoc/require-hyphen-before-param-description": "error",
369
+ "jsdoc/require-param": "error",
370
+ "jsdoc/require-param-description": "error",
371
+ "jsdoc/require-param-name": "error",
372
+ "jsdoc/require-param-type": "error",
373
+ "jsdoc/require-property": "error",
374
+ "jsdoc/require-property-description": "error",
375
+ "jsdoc/require-property-name": "error",
376
+ "jsdoc/require-property-type": "error",
377
+ "jsdoc/require-returns": "error",
378
+ "jsdoc/require-returns-check": "error",
379
+ "jsdoc/require-returns-description": "error",
380
+ "jsdoc/require-returns-type": "error",
381
+ "jsdoc/require-yields-check": "error",
382
+ "jsdoc/sort-tags": "error",
383
+ "jsdoc/tag-lines": "error",
384
+ "jsdoc/valid-types": "error",
385
+ "prefer-arrow/prefer-arrow-functions": [
386
+ "error",
387
+ {
388
+ classPropertiesAllowed: false,
389
+ disallowPrototype: true,
390
+ singleReturnOnly: false
391
+ }
392
+ ],
393
+ "prefer-let/prefer-let": "error",
394
+ "promise/catch-or-return": "error",
395
+ "promise/no-callback-in-promise": "error",
396
+ "promise/no-multiple-resolved": "error",
397
+ "promise/no-nesting": "error",
398
+ "promise/no-new-statics": "error",
399
+ "promise/no-promise-in-callback": "error",
400
+ "promise/no-return-in-finally": "error",
401
+ "promise/no-return-wrap": "error",
402
+ "promise/param-names": "error",
403
+ "promise/spec-only": "error",
404
+ "promise/valid-params": "error",
405
+ "regexp/confusing-quantifier": "error",
406
+ "regexp/control-character-escape": "error",
407
+ "regexp/letter-case": [
408
+ "error",
409
+ {
410
+ caseInsensitive: "lowercase",
411
+ controlEscape: "lowercase",
412
+ hexadecimalEscape: "lowercase",
413
+ unicodeEscape: "lowercase"
414
+ }
415
+ ],
416
+ "regexp/match-any": "error",
417
+ "regexp/negation": "error",
418
+ "regexp/no-contradiction-with-assertion": "error",
419
+ "regexp/no-control-character": "error",
420
+ "regexp/no-dupe-characters-character-class": "error",
421
+ "regexp/no-dupe-disjunctions": "error",
422
+ "regexp/no-empty-alternative": "error",
423
+ "regexp/no-empty-capturing-group": "error",
424
+ "regexp/no-empty-character-class": "error",
425
+ "regexp/no-empty-group": "error",
426
+ "regexp/no-empty-lookarounds-assertion": "error",
427
+ "regexp/no-empty-string-literal": "error",
428
+ "regexp/no-escape-backspace": "error",
429
+ "regexp/no-invalid-regexp": "error",
430
+ "regexp/no-invisible-character": "error",
431
+ "regexp/no-lazy-ends": "error",
432
+ "regexp/no-legacy-features": "error",
433
+ "regexp/no-misleading-capturing-group": "error",
434
+ "regexp/no-missing-g-flag": "error",
435
+ "regexp/no-non-standard-flag": "error",
436
+ "regexp/no-obscure-range": "error",
437
+ "regexp/no-octal": "error",
438
+ "regexp/no-optional-assertion": "error",
439
+ "regexp/no-potentially-useless-backreference": "error",
440
+ "regexp/no-standalone-backslash": "error",
441
+ "regexp/no-super-linear-backtracking": "error",
442
+ "regexp/no-trivially-nested-assertion": "error",
443
+ "regexp/no-trivially-nested-quantifier": "error",
444
+ "regexp/no-unused-capturing-group": "error",
445
+ "regexp/no-useless-assertions": "error",
446
+ "regexp/no-useless-backreference": "error",
447
+ "regexp/no-useless-character-class": "error",
448
+ "regexp/no-useless-dollar-replacements": "error",
449
+ "regexp/no-useless-escape": "error",
450
+ "regexp/no-useless-flag": "error",
451
+ "regexp/no-useless-lazy": "error",
452
+ "regexp/no-useless-non-capturing-group": "error",
453
+ "regexp/no-useless-quantifier": "error",
454
+ "regexp/no-useless-range": "error",
455
+ "regexp/no-useless-set-operand": "error",
456
+ "regexp/no-useless-string-literal": "error",
457
+ "regexp/no-useless-two-nums-quantifier": "error",
458
+ "regexp/no-zero-quantifier": "error",
459
+ "regexp/optimal-lookaround-quantifier": "error",
460
+ "regexp/optimal-quantifier-concatenation": "error",
461
+ "regexp/prefer-character-class": "error",
462
+ "regexp/prefer-d": "error",
463
+ "regexp/prefer-escape-replacement-dollar-char": "error",
464
+ "regexp/prefer-lookaround": "error",
465
+ "regexp/prefer-named-backreference": "error",
466
+ "regexp/prefer-named-capture-group": "error",
467
+ "regexp/prefer-named-replacement": "error",
468
+ "regexp/prefer-plus-quantifier": "error",
469
+ "regexp/prefer-predefined-assertion": "error",
470
+ "regexp/prefer-quantifier": "error",
471
+ "regexp/prefer-question-quantifier": "error",
472
+ "regexp/prefer-range": "error",
473
+ "regexp/prefer-set-operation": "error",
474
+ "regexp/prefer-star-quantifier": "error",
475
+ "regexp/prefer-unicode-codepoint-escapes": "error",
476
+ "regexp/prefer-w": "error",
477
+ "regexp/require-unicode-regexp": "error",
478
+ "regexp/simplify-set-operations": "error",
479
+ "regexp/sort-alternatives": "error",
480
+ "regexp/sort-character-class-elements": "error",
481
+ "regexp/sort-flags": "error",
482
+ "regexp/strict": "error",
483
+ "regexp/unicode-escape": "error",
484
+ "regexp/unicode-property": "error",
485
+ "regexp/use-ignore-case": "error",
486
+ "sonarjs/accessor-pairs": "error",
487
+ "sonarjs/arguments-order": "error",
488
+ "sonarjs/array-callback-without-return": "error",
489
+ "sonarjs/for-in": "error",
490
+ "sonarjs/no-collapsible-if": "error",
491
+ "sonarjs/no-duplicated-branches": "error",
492
+ "sonarjs/no-equals-in-for-termination": "error",
493
+ "sonarjs/no-gratuitous-expressions": "error",
494
+ "sonarjs/no-identical-conditions": "error",
495
+ "sonarjs/no-identical-expressions": "error",
496
+ "sonarjs/no-identical-functions": "error",
497
+ "sonarjs/no-ignored-exceptions": "error",
498
+ "sonarjs/no-ignored-return": "error",
499
+ "sonarjs/no-infinite-loop": "error",
500
+ "sonarjs/no-inverted-boolean-check": "error",
501
+ "sonarjs/no-misleading-array-reverse": "error",
502
+ "sonarjs/no-redundant-boolean": "error",
503
+ "sonarjs/no-same-line-conditional": "error",
504
+ "sonarjs/no-small-switch": "error",
505
+ "sonarjs/no-undefined-argument": "error",
506
+ "sonarjs/prefer-immediate-return": "error",
507
+ "sonarjs/prefer-promise-shorthand": "error",
508
+ "sonarjs/prefer-single-boolean-return": "error",
509
+ "sonarjs/reduce-initial-value": "error",
510
+ "sonarjs/sonar-prefer-optional-chain": "error",
511
+ "unicorn/better-regex": "error",
512
+ "unicorn/catch-error-name": "error",
513
+ "unicorn/consistent-destructuring": "error",
514
+ "unicorn/consistent-empty-array-spread": "error",
515
+ "unicorn/consistent-existence-index-check": "error",
516
+ "unicorn/custom-error-definition": "error",
517
+ "unicorn/error-message": "error",
518
+ "unicorn/escape-case": "error",
519
+ "unicorn/new-for-builtins": "error",
520
+ "unicorn/no-array-for-each": "error",
521
+ "unicorn/no-array-method-this-argument": "error",
522
+ "unicorn/no-array-push-push": "error",
523
+ "unicorn/no-await-in-promise-methods": "error",
524
+ "unicorn/no-for-loop": "error",
525
+ "unicorn/no-hex-escape": "error",
526
+ "unicorn/no-instanceof-array": "error",
527
+ "unicorn/no-invalid-fetch-options": "error",
528
+ "unicorn/no-invalid-remove-event-listener": "error",
529
+ "unicorn/no-length-as-slice-end": "error",
530
+ "unicorn/no-negated-condition": "error",
531
+ "unicorn/no-negation-in-equality-check": "error",
532
+ "unicorn/no-new-array": "error",
533
+ "unicorn/no-new-buffer": "error",
534
+ "unicorn/no-process-exit": "error",
535
+ "unicorn/no-single-promise-in-promise-methods": "error",
536
+ "unicorn/no-static-only-class": "error",
537
+ "unicorn/no-this-assignment": "error",
538
+ "unicorn/no-typeof-undefined": "error",
539
+ "unicorn/no-unnecessary-await": "error",
540
+ "unicorn/no-unreadable-array-destructuring": "error",
541
+ "unicorn/no-unreadable-iife": "error",
542
+ "unicorn/no-unused-properties": "error",
543
+ "unicorn/no-useless-fallback-in-spread": "error",
544
+ "unicorn/no-useless-length-check": "error",
545
+ "unicorn/no-useless-promise-resolve-reject": "error",
546
+ "unicorn/no-useless-spread": "error",
547
+ "unicorn/no-useless-switch-case": "error",
548
+ "unicorn/no-useless-undefined": [
549
+ "error",
550
+ {
551
+ checkArguments: false
552
+ }
553
+ ],
554
+ "unicorn/no-zero-fractions": ["error"],
555
+ "unicorn/numeric-separators-style": [
556
+ "error",
557
+ {
558
+ onlyIfContainsSeparator: true
559
+ }
560
+ ],
561
+ "unicorn/prefer-add-event-listener": "error",
562
+ "unicorn/prefer-array-find": "error",
563
+ "unicorn/prefer-array-flat": "error",
564
+ "unicorn/prefer-array-flat-map": "error",
565
+ "unicorn/prefer-array-index-of": "error",
566
+ "unicorn/prefer-array-some": "error",
567
+ "unicorn/prefer-at": "error",
568
+ "unicorn/prefer-blob-reading-methods": "error",
569
+ "unicorn/prefer-date-now": "error",
570
+ "unicorn/prefer-default-parameters": "error",
571
+ "unicorn/prefer-dom-node-append": "error",
572
+ "unicorn/prefer-dom-node-dataset": "error",
573
+ "unicorn/prefer-dom-node-remove": "error",
574
+ "unicorn/prefer-dom-node-text-content": "error",
575
+ "unicorn/prefer-event-target": "error",
576
+ "unicorn/prefer-export-from": "error",
577
+ "unicorn/prefer-global-this": "error",
578
+ "unicorn/prefer-includes": "error",
579
+ "unicorn/prefer-keyboard-event-key": "error",
580
+ "unicorn/prefer-logical-operator-over-ternary": "error",
581
+ "unicorn/prefer-math-min-max": "error",
582
+ "unicorn/prefer-modern-dom-apis": "error",
583
+ "unicorn/prefer-modern-math-apis": "error",
584
+ "unicorn/prefer-native-coercion-functions": "error",
585
+ "unicorn/prefer-negative-index": "error",
586
+ "unicorn/prefer-number-properties": "error",
587
+ "unicorn/prefer-object-from-entries": "error",
588
+ "unicorn/prefer-query-selector": "error",
589
+ "unicorn/prefer-regexp-test": "error",
590
+ "unicorn/prefer-set-has": "error",
591
+ "unicorn/prefer-set-size": "error",
592
+ "unicorn/prefer-spread": "error",
593
+ "unicorn/prefer-string-replace-all": "error",
594
+ "unicorn/prefer-string-slice": "error",
595
+ "unicorn/prefer-string-starts-ends-with": "error",
596
+ "unicorn/prefer-string-trim-start-end": "error",
597
+ "unicorn/prefer-structured-clone": "error",
598
+ "unicorn/prefer-top-level-await": "error",
599
+ "unicorn/prefer-type-error": "error",
600
+ "unicorn/prevent-abbreviations": [
601
+ "error",
602
+ {
603
+ allowList: {
604
+ attrs: true,
605
+ env: config.astro,
606
+ i: true,
607
+ Props: true,
608
+ props: true,
609
+ rel: ["astro", "react", "svelte", "vue"].some(
610
+ (configName) => config[configName]
611
+ )
612
+ }
613
+ }
614
+ ],
615
+ "unicorn/require-array-join-separator": "error",
616
+ "unicorn/require-number-to-fixed-digits-argument": "error",
617
+ "unicorn/text-encoding-identifier-case": "error",
618
+ "unicorn/throw-new-error": "error"
619
+ },
620
+ settings: {
621
+ "import-x/resolver": {
622
+ node: true,
623
+ typescript: config.typescript
624
+ },
625
+ jsdoc: {
626
+ mode: "jsdoc"
627
+ }
628
+ }
629
+ };
630
+ };
631
+ exports.core = core;