@ntnyq/eslint-config 2.0.0-beta.2 → 2.0.0-beta.21

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/index.cjs ADDED
@@ -0,0 +1,1327 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all2) => {
9
+ for (var name in all2)
10
+ __defProp(target, name, { get: all2[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var src_exports = {};
32
+ __export(src_exports, {
33
+ GLOB_ALL_SRC: () => GLOB_ALL_SRC,
34
+ GLOB_ASTRO: () => GLOB_ASTRO,
35
+ GLOB_CSS: () => GLOB_CSS,
36
+ GLOB_DIST: () => GLOB_DIST,
37
+ GLOB_EXCLUDE: () => GLOB_EXCLUDE,
38
+ GLOB_HTML: () => GLOB_HTML,
39
+ GLOB_JS: () => GLOB_JS,
40
+ GLOB_JSON: () => GLOB_JSON,
41
+ GLOB_JSON5: () => GLOB_JSON5,
42
+ GLOB_JSONC: () => GLOB_JSONC,
43
+ GLOB_JSX: () => GLOB_JSX,
44
+ GLOB_LESS: () => GLOB_LESS,
45
+ GLOB_LOCKFILE: () => GLOB_LOCKFILE,
46
+ GLOB_MARKDOWN: () => GLOB_MARKDOWN,
47
+ GLOB_NODE_MODULES: () => GLOB_NODE_MODULES,
48
+ GLOB_SCSS: () => GLOB_SCSS,
49
+ GLOB_SRC: () => GLOB_SRC,
50
+ GLOB_SRC_EXT: () => GLOB_SRC_EXT,
51
+ GLOB_STYLE: () => GLOB_STYLE,
52
+ GLOB_TS: () => GLOB_TS,
53
+ GLOB_TSX: () => GLOB_TSX,
54
+ GLOB_VUE: () => GLOB_VUE,
55
+ GLOB_YAML: () => GLOB_YAML,
56
+ all: () => all,
57
+ astro: () => astro,
58
+ basic: () => basic,
59
+ comments: () => comments,
60
+ common: () => common,
61
+ getVueVersion: () => getVueVersion,
62
+ ignores: () => ignores,
63
+ imports: () => imports,
64
+ javascript: () => javascript,
65
+ jsonc: () => jsonc,
66
+ jsx: () => jsx,
67
+ markdown: () => markdown,
68
+ node: () => node,
69
+ ntnyq: () => ntnyq,
70
+ parserAstro: () => import_astro_eslint_parser.default,
71
+ parserJsonc: () => import_jsonc_eslint_parser.default,
72
+ parserTs: () => parserTs,
73
+ parserVue: () => import_vue_eslint_parser.default,
74
+ parserYaml: () => import_yaml_eslint_parser.default,
75
+ pluginAstro: () => pluginAstro,
76
+ pluginComments: () => import_eslint_plugin_eslint_comments.default,
77
+ pluginImport: () => import_eslint_plugin_i.default,
78
+ pluginJsonc: () => import_eslint_plugin_jsonc.default,
79
+ pluginMarkdown: () => import_eslint_plugin_markdown.default,
80
+ pluginNode: () => import_eslint_plugin_n.default,
81
+ pluginPrettier: () => import_eslint_plugin_prettier.default,
82
+ pluginReact: () => import_eslint_plugin_react.default,
83
+ pluginReactHooks: () => import_eslint_plugin_react_hooks.default,
84
+ pluginTs: () => import_eslint_plugin2.default,
85
+ pluginUnicorn: () => import_eslint_plugin_unicorn.default,
86
+ pluginUnoCSS: () => import_eslint_plugin.default,
87
+ pluginVue: () => import_eslint_plugin_vue.default,
88
+ pluginYaml: () => pluginYaml,
89
+ prettier: () => prettier,
90
+ react: () => react,
91
+ sortPackageJson: () => sortPackageJson,
92
+ sortTsConfig: () => sortTsConfig,
93
+ typescript: () => typescript,
94
+ unicorn: () => unicorn,
95
+ unocss: () => unocss,
96
+ vue: () => vue,
97
+ yml: () => yml
98
+ });
99
+ module.exports = __toCommonJS(src_exports);
100
+
101
+ // src/shared.ts
102
+ var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
103
+ var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
104
+ var GLOB_JS = "**/*.?([cm])js";
105
+ var GLOB_JSX = "**/*.?([cm])jsx";
106
+ var GLOB_TS = "**/*.?([cm])ts";
107
+ var GLOB_TSX = "**/*.?([cm])tsx";
108
+ var GLOB_STYLE = "**/*.{c,le,sc}ss";
109
+ var GLOB_CSS = "**/*.css";
110
+ var GLOB_LESS = "**/*.less";
111
+ var GLOB_SCSS = "**/*.scss";
112
+ var GLOB_JSON = "**/*.json";
113
+ var GLOB_JSON5 = "**/*.json5";
114
+ var GLOB_JSONC = "**/*.jsonc";
115
+ var GLOB_VUE = "**/*.vue";
116
+ var GLOB_ASTRO = "**/*.astro";
117
+ var GLOB_MARKDOWN = "**/*.md";
118
+ var GLOB_YAML = "**/*.y?(a)ml";
119
+ var GLOB_HTML = "**/*.htm?(l)";
120
+ var GLOB_ALL_SRC = [
121
+ GLOB_SRC,
122
+ GLOB_STYLE,
123
+ GLOB_JSON,
124
+ GLOB_JSON5,
125
+ GLOB_MARKDOWN,
126
+ GLOB_VUE,
127
+ GLOB_YAML,
128
+ GLOB_HTML
129
+ ];
130
+ var GLOB_NODE_MODULES = "**/node_modules/**";
131
+ var GLOB_DIST = "**/dist/**";
132
+ var GLOB_LOCKFILE = [
133
+ "**/package-lock.json",
134
+ "**/yarn.lock",
135
+ "**/pnpm-lock.yaml",
136
+ "**/bun.lockb"
137
+ ];
138
+ var GLOB_EXCLUDE = [
139
+ GLOB_NODE_MODULES,
140
+ GLOB_DIST,
141
+ ...GLOB_LOCKFILE,
142
+ "**/CHANGELOG*.md",
143
+ "**/*.min.*",
144
+ "**/LICENSE*",
145
+ "**/__snapshots__",
146
+ "**/auto-import?(s).d.ts",
147
+ "**/components.d.ts",
148
+ "**/output",
149
+ "**/coverage",
150
+ "**/temp",
151
+ "**/cache",
152
+ "**/fixtures",
153
+ "**/.vitepress/cache",
154
+ "**/.nuxt",
155
+ "**/.vercel",
156
+ "**/.changeset",
157
+ "**/.npmrc",
158
+ "**/.yarnrc"
159
+ ];
160
+
161
+ // src/configs/vue.ts
162
+ var import_node_process = __toESM(require("process"), 1);
163
+ var import_local_pkg = require("local-pkg");
164
+
165
+ // src/plugins.ts
166
+ var pluginYaml = __toESM(require("eslint-plugin-yml"), 1);
167
+ var pluginAstro = __toESM(require("eslint-plugin-astro"), 1);
168
+ var import_eslint_plugin_n = __toESM(require("eslint-plugin-n"), 1);
169
+ var import_eslint_plugin_i = __toESM(require("eslint-plugin-i"), 1);
170
+ var import_eslint_plugin_vue = __toESM(require("eslint-plugin-vue"), 1);
171
+ var import_eslint_plugin_jsonc = __toESM(require("eslint-plugin-jsonc"), 1);
172
+ var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
173
+ var import_eslint_plugin = __toESM(require("@unocss/eslint-plugin"), 1);
174
+ var import_eslint_plugin_unicorn = __toESM(require("eslint-plugin-unicorn"), 1);
175
+ var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
176
+ var import_eslint_plugin_markdown = __toESM(require("eslint-plugin-markdown"), 1);
177
+ var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
178
+ var import_eslint_plugin_eslint_comments = __toESM(require("eslint-plugin-eslint-comments"), 1);
179
+ var import_eslint_plugin2 = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
180
+ var import_yaml_eslint_parser = __toESM(require("yaml-eslint-parser"), 1);
181
+ var import_vue_eslint_parser = __toESM(require("vue-eslint-parser"), 1);
182
+ var import_jsonc_eslint_parser = __toESM(require("jsonc-eslint-parser"), 1);
183
+ var import_astro_eslint_parser = __toESM(require("astro-eslint-parser"), 1);
184
+ var parserTs = __toESM(require("@typescript-eslint/parser"), 1);
185
+
186
+ // src/configs/typescript.ts
187
+ var typescript = [
188
+ {
189
+ files: [GLOB_TS, GLOB_TSX],
190
+ languageOptions: {
191
+ parser: parserTs,
192
+ parserOptions: {
193
+ sourceType: "module"
194
+ }
195
+ },
196
+ plugins: {
197
+ "@typescript-eslint": import_eslint_plugin2.default
198
+ },
199
+ rules: {
200
+ ...import_eslint_plugin2.default.configs.recommended.rules,
201
+ ...import_eslint_plugin2.default.configs.stylistic.rules,
202
+ "@typescript-eslint/no-unused-vars": "error",
203
+ "@typescript-eslint/no-redeclare": "error",
204
+ "@typescript-eslint/consistent-type-imports": [
205
+ "error",
206
+ {
207
+ prefer: "type-imports",
208
+ fixStyle: "separate-type-imports",
209
+ disallowTypeAnnotations: false
210
+ }
211
+ ],
212
+ "@typescript-eslint/consistent-type-assertions": [
213
+ "error",
214
+ {
215
+ assertionStyle: "as",
216
+ objectLiteralTypeAssertions: "allow-as-parameter"
217
+ }
218
+ ],
219
+ "@typescript-eslint/prefer-as-const": "warn",
220
+ "@typescript-eslint/ban-types": "off",
221
+ "@typescript-eslint/camelcase": "off",
222
+ "@typescript-eslint/no-namespace": "off",
223
+ "@typescript-eslint/ban-ts-ignore": "off",
224
+ "@typescript-eslint/ban-ts-comment": "off",
225
+ "@typescript-eslint/no-explicit-any": "off",
226
+ "@typescript-eslint/no-empty-function": "off",
227
+ "@typescript-eslint/naming-convention": "off",
228
+ "@typescript-eslint/no-empty-interface": "off",
229
+ "@typescript-eslint/no-non-null-assertion": "off",
230
+ "@typescript-eslint/triple-slash-reference": "off",
231
+ "@typescript-eslint/no-parameter-properties": "off",
232
+ "@typescript-eslint/explicit-member-accessibility": "off",
233
+ "@typescript-eslint/explicit-function-return-type": "off",
234
+ "@typescript-eslint/explicit-module-boundary-types": "off",
235
+ "@typescript-eslint/consistent-indexed-object-style": "off"
236
+ }
237
+ },
238
+ {
239
+ files: ["**/*.d.ts"],
240
+ rules: {
241
+ "import/no-duplicates": "off",
242
+ "import/newline-after-import": "off"
243
+ }
244
+ },
245
+ {
246
+ files: ["**/*.{spec,test}.ts?(x)"],
247
+ rules: {
248
+ "no-unused-expressions": "off",
249
+ "max-lines-per-function": "off"
250
+ }
251
+ },
252
+ {
253
+ files: ["**/*.js", "**/*.cjs"],
254
+ rules: {
255
+ "@typescript-eslint/no-var-requires": "off"
256
+ }
257
+ }
258
+ ];
259
+
260
+ // src/configs/vue.ts
261
+ function getVueVersion() {
262
+ const pkg = (0, import_local_pkg.getPackageInfoSync)("vue", { paths: [import_node_process.default.cwd()] });
263
+ if (pkg && typeof pkg.version === "string" && !Number.isNaN(+pkg.version[0])) {
264
+ return +pkg.version[0];
265
+ }
266
+ return 3;
267
+ }
268
+ var isVue3 = getVueVersion() === 3;
269
+ var vueBaseRules = {};
270
+ var vue2Rules = {
271
+ ...vueBaseRules
272
+ };
273
+ var vue3Rules = {
274
+ ...vueBaseRules
275
+ };
276
+ var vue = [
277
+ {
278
+ files: [GLOB_VUE],
279
+ plugins: {
280
+ vue: import_eslint_plugin_vue.default,
281
+ "@typescript-eslint": import_eslint_plugin2.default
282
+ },
283
+ languageOptions: {
284
+ parser: import_vue_eslint_parser.default,
285
+ parserOptions: {
286
+ parser: "@typescript-eslint/parser",
287
+ sourceType: "module",
288
+ extraFileExtensions: [".vue"],
289
+ ecmaFeatures: {
290
+ jsx: true
291
+ }
292
+ }
293
+ },
294
+ processor: import_eslint_plugin_vue.default.processors[".vue"],
295
+ rules: {
296
+ ...typescript[0].rules
297
+ }
298
+ },
299
+ {
300
+ plugins: {
301
+ vue: import_eslint_plugin_vue.default
302
+ },
303
+ rules: isVue3 ? vue3Rules : vue2Rules
304
+ }
305
+ ];
306
+
307
+ // src/configs/yml.ts
308
+ var yml = [
309
+ {
310
+ files: [GLOB_YAML],
311
+ languageOptions: {
312
+ parser: import_yaml_eslint_parser.default
313
+ },
314
+ plugins: {
315
+ yml: pluginYaml
316
+ },
317
+ rules: {
318
+ ...pluginYaml.configs.standard.rules,
319
+ ...pluginYaml.configs.prettier.rules,
320
+ "yml/no-empty-mapping-value": "off",
321
+ "yml/quotes": ["error", { avoidEscape: false, prefer: "single" }]
322
+ }
323
+ }
324
+ ];
325
+
326
+ // src/configs/node.ts
327
+ var node = [
328
+ {
329
+ plugins: {
330
+ node: import_eslint_plugin_n.default
331
+ },
332
+ rules: {
333
+ "node/handle-callback-err": ["error", "^(err|error)$"],
334
+ "node/no-deprecated-api": "error",
335
+ "node/no-exports-assign": "error",
336
+ "node/no-new-require": "error",
337
+ "node/no-path-concat": "error",
338
+ "node/prefer-global/buffer": ["error", "never"],
339
+ "node/prefer-global/process": ["error", "never"],
340
+ "node/process-exit-as-throw": "error"
341
+ }
342
+ }
343
+ ];
344
+
345
+ // src/configs/sort.ts
346
+ var sortPackageJson = [
347
+ {
348
+ files: ["**/package.json"],
349
+ rules: {
350
+ "jsonc/sort-keys": [
351
+ "error",
352
+ {
353
+ pathPattern: "^$",
354
+ order: [
355
+ "publisher",
356
+ "name",
357
+ "displayName",
358
+ "type",
359
+ "version",
360
+ "private",
361
+ "packageManager",
362
+ "description",
363
+ "keywords",
364
+ "license",
365
+ "author",
366
+ "homepage",
367
+ "repository",
368
+ "funding",
369
+ "exports",
370
+ "main",
371
+ "module",
372
+ "unpkg",
373
+ "jsdelivr",
374
+ // workaround for `type: "module"` with TS `moduleResolution: "node16"`
375
+ "types",
376
+ "typesVersions",
377
+ "bin",
378
+ "icon",
379
+ "files",
380
+ "sideEffects",
381
+ "scripts",
382
+ "peerDependencies",
383
+ "peerDependenciesMeta",
384
+ "dependencies",
385
+ "optionalDependencies",
386
+ "devDependencies",
387
+ "activationEvents",
388
+ "contributes",
389
+ "categories",
390
+ "engines",
391
+ "pnpm",
392
+ "overrides",
393
+ "resolutions",
394
+ "husky",
395
+ "prettier",
396
+ "nano-staged",
397
+ "lint-staged",
398
+ "eslintConfig"
399
+ ]
400
+ },
401
+ {
402
+ pathPattern: "^(?:dev|peer|optional|bundled)?[Dd]ependencies$",
403
+ order: { type: "asc" }
404
+ },
405
+ {
406
+ pathPattern: "^exports.*$",
407
+ order: ["types", "import", "require", "default"]
408
+ },
409
+ {
410
+ pathPattern: "^scripts$",
411
+ order: { type: "asc" }
412
+ }
413
+ ],
414
+ "jsonc/sort-array-values": [
415
+ "error",
416
+ {
417
+ pathPattern: "^files$",
418
+ order: { type: "asc" }
419
+ }
420
+ ]
421
+ }
422
+ }
423
+ ];
424
+ var sortTsConfig = [
425
+ {
426
+ files: ["**/tsconfig.json", "**/tsconfig.*.json"],
427
+ rules: {
428
+ "jsonc/sort-keys": [
429
+ "error",
430
+ {
431
+ order: ["extends", "compilerOptions", "references", "files", "include", "exclude"],
432
+ pathPattern: "^$"
433
+ },
434
+ {
435
+ order: [
436
+ /* Projects */
437
+ "incremental",
438
+ "composite",
439
+ "tsBuildInfoFile",
440
+ "disableSourceOfProjectReferenceRedirect",
441
+ "disableSolutionSearching",
442
+ "disableReferencedProjectLoad",
443
+ /* Language and Environment */
444
+ "target",
445
+ "lib",
446
+ "jsx",
447
+ "experimentalDecorators",
448
+ "emitDecoratorMetadata",
449
+ "jsxFactory",
450
+ "jsxFragmentFactory",
451
+ "jsxImportSource",
452
+ "reactNamespace",
453
+ "noLib",
454
+ "useDefineForClassFields",
455
+ "moduleDetection",
456
+ /* Modules */
457
+ "module",
458
+ "rootDir",
459
+ "moduleResolution",
460
+ "baseUrl",
461
+ "paths",
462
+ "rootDirs",
463
+ "typeRoots",
464
+ "types",
465
+ "allowUmdGlobalAccess",
466
+ "moduleSuffixes",
467
+ "allowImportingTsExtensions",
468
+ "resolvePackageJsonExports",
469
+ "resolvePackageJsonImports",
470
+ "customConditions",
471
+ "resolveJsonModule",
472
+ "allowArbitraryExtensions",
473
+ "noResolve",
474
+ /* JavaScript Support */
475
+ "allowJs",
476
+ "checkJs",
477
+ "maxNodeModuleJsDepth",
478
+ /* Emit */
479
+ "declaration",
480
+ "declarationMap",
481
+ "emitDeclarationOnly",
482
+ "sourceMap",
483
+ "inlineSourceMap",
484
+ "outFile",
485
+ "outDir",
486
+ "removeComments",
487
+ "noEmit",
488
+ "importHelpers",
489
+ "importsNotUsedAsValues",
490
+ "downlevelIteration",
491
+ "sourceRoot",
492
+ "mapRoot",
493
+ "inlineSources",
494
+ "emitBOM",
495
+ "newLine",
496
+ "stripInternal",
497
+ "noEmitHelpers",
498
+ "noEmitOnError",
499
+ "preserveConstEnums",
500
+ "declarationDir",
501
+ "preserveValueImports",
502
+ /* Interop Constraints */
503
+ "isolatedModules",
504
+ "verbatimModuleSyntax",
505
+ "allowSyntheticDefaultImports",
506
+ "esModuleInterop",
507
+ "preserveSymlinks",
508
+ "forceConsistentCasingInFileNames",
509
+ /* Type Checking */
510
+ "strict",
511
+ "strictBindCallApply",
512
+ "strictFunctionTypes",
513
+ "strictNullChecks",
514
+ "strictPropertyInitialization",
515
+ "allowUnreachableCode",
516
+ "allowUnusedLabels",
517
+ "alwaysStrict",
518
+ "exactOptionalPropertyTypes",
519
+ "noFallthroughCasesInSwitch",
520
+ "noImplicitAny",
521
+ "noImplicitOverride",
522
+ "noImplicitReturns",
523
+ "noImplicitThis",
524
+ "noPropertyAccessFromIndexSignature",
525
+ "noUncheckedIndexedAccess",
526
+ "noUnusedLocals",
527
+ "noUnusedParameters",
528
+ "useUnknownInCatchVariables",
529
+ /* Completeness */
530
+ "skipDefaultLibCheck",
531
+ "skipLibCheck"
532
+ ],
533
+ pathPattern: "^compilerOptions$"
534
+ }
535
+ ]
536
+ }
537
+ }
538
+ ];
539
+
540
+ // src/configs/react.ts
541
+ var react = [
542
+ {
543
+ files: [GLOB_JSX, GLOB_TSX],
544
+ plugins: {
545
+ react: import_eslint_plugin_react.default,
546
+ "react-hooks": import_eslint_plugin_react_hooks.default
547
+ },
548
+ settings: {
549
+ react: {
550
+ version: "18.0"
551
+ }
552
+ },
553
+ languageOptions: {
554
+ parserOptions: {
555
+ ecmaFeatures: {
556
+ jsx: true
557
+ }
558
+ }
559
+ },
560
+ rules: {
561
+ ...import_eslint_plugin_react.default.configs.recommended.rules,
562
+ ...import_eslint_plugin_react_hooks.default.configs.recommended.rules,
563
+ "jsx-quotes": ["error", "prefer-double"],
564
+ "react/react-in-jsx-scope": "off"
565
+ }
566
+ }
567
+ ];
568
+
569
+ // src/configs/astro.ts
570
+ var astro = [
571
+ {
572
+ files: [GLOB_ASTRO],
573
+ plugins: {
574
+ astro: pluginAstro
575
+ },
576
+ languageOptions: {
577
+ parser: import_astro_eslint_parser.default,
578
+ parserOptions: {
579
+ parser: "@typescript-eslint/parser",
580
+ extraFileExtensions: [".astro"]
581
+ }
582
+ },
583
+ rules: {
584
+ ...pluginAstro.configs.recommended.rules
585
+ }
586
+ }
587
+ ];
588
+
589
+ // src/configs/jsonc.ts
590
+ var jsonc = [
591
+ {
592
+ files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
593
+ plugins: {
594
+ jsonc: import_eslint_plugin_jsonc.default
595
+ },
596
+ languageOptions: {
597
+ parser: import_jsonc_eslint_parser.default
598
+ },
599
+ rules: {
600
+ ...import_eslint_plugin_jsonc.default.configs["recommended-with-jsonc"].rules,
601
+ "jsonc/array-bracket-spacing": ["error", "never"],
602
+ "jsonc/comma-dangle": ["error", "never"],
603
+ "jsonc/comma-style": ["error", "last"],
604
+ "jsonc/indent": ["error", 2],
605
+ "jsonc/key-spacing": [
606
+ "error",
607
+ {
608
+ beforeColon: false,
609
+ afterColon: true
610
+ }
611
+ ],
612
+ "jsonc/no-octal-escape": "error",
613
+ "jsonc/object-curly-newline": [
614
+ "error",
615
+ {
616
+ multiline: true,
617
+ consistent: true
618
+ }
619
+ ],
620
+ "jsonc/object-curly-spacing": ["error", "always"],
621
+ "jsonc/object-property-newline": [
622
+ "error",
623
+ {
624
+ allowMultiplePropertiesPerLine: true
625
+ }
626
+ ]
627
+ }
628
+ }
629
+ ];
630
+
631
+ // src/configs/imports.ts
632
+ var imports = [
633
+ {
634
+ plugins: {
635
+ import: import_eslint_plugin_i.default
636
+ },
637
+ settings: {
638
+ "import/resolver": {
639
+ node: { extensions: [".js", ".mjs", ".ts", ".mts", ".d.ts"] }
640
+ }
641
+ },
642
+ rules: {
643
+ "import/no-unresolved": "off",
644
+ "import/no-absolute-path": "off",
645
+ "import/no-named-as-default-member": "off",
646
+ "import/first": "error",
647
+ "import/export": "error",
648
+ "import/no-duplicates": "error",
649
+ "import/no-mutable-exports": "error",
650
+ "import/newline-after-import": "error",
651
+ "import/order": [
652
+ "error",
653
+ {
654
+ groups: [
655
+ "builtin",
656
+ "external",
657
+ "internal",
658
+ "parent",
659
+ "sibling",
660
+ "index",
661
+ "object",
662
+ "type"
663
+ ],
664
+ "newlines-between": "never",
665
+ pathGroups: [{ pattern: "{{@,~}/,#}**", group: "internal" }],
666
+ pathGroupsExcludedImportTypes: ["type"]
667
+ }
668
+ ]
669
+ }
670
+ }
671
+ ];
672
+
673
+ // src/configs/unocss.ts
674
+ var unocss = [
675
+ {
676
+ plugins: {
677
+ "@unocss": import_eslint_plugin.default
678
+ },
679
+ rules: {
680
+ ...import_eslint_plugin.default.configs.recommended.rules
681
+ }
682
+ }
683
+ ];
684
+
685
+ // src/configs/unicorn.ts
686
+ var unicorn = [
687
+ {
688
+ plugins: {
689
+ unicorn: import_eslint_plugin_unicorn.default
690
+ },
691
+ rules: {
692
+ "unicorn/no-unsafe-regex": "off",
693
+ "unicorn/error-message": "error",
694
+ "unicorn/escape-case": "error",
695
+ "unicorn/no-new-buffer": "error",
696
+ "unicorn/number-literal-case": "error",
697
+ "unicorn/prefer-includes": "error",
698
+ "unicorn/prefer-type-error": "error",
699
+ "unicorn/throw-new-error": "error",
700
+ "unicorn/no-unnecessary-await": "error",
701
+ "unicorn/switch-case-braces": ["error", "avoid"],
702
+ "unicorn/no-typeof-undefined": "error",
703
+ "unicorn/prefer-set-size": "error",
704
+ "unicorn/better-regex": "error",
705
+ "unicorn/prefer-regexp-test": "error",
706
+ "unicorn/prefer-top-level-await": "error",
707
+ "unicorn/no-static-only-class": "error",
708
+ "unicorn/no-zero-fractions": "error",
709
+ "unicorn/custom-error-definition": "error",
710
+ "unicorn/prefer-modern-math-apis": "error",
711
+ "unicorn/explicit-length-check": "error",
712
+ "unicorn/new-for-builtins": "error",
713
+ "unicorn/no-console-spaces": "error",
714
+ "unicorn/no-for-loop": "error",
715
+ "unicorn/no-hex-escape": "error",
716
+ "unicorn/no-lonely-if": "error",
717
+ "unicorn/prefer-keyboard-event-key": "error",
718
+ "unicorn/prefer-math-trunc": "error",
719
+ "unicorn/prefer-negative-index": "error",
720
+ "unicorn/prefer-node-protocol": "error",
721
+ "unicorn/prefer-number-properties": "error",
722
+ "unicorn/prefer-optional-catch-binding": "error",
723
+ "unicorn/prefer-prototype-methods": "error",
724
+ "unicorn/prefer-reflect-apply": "error",
725
+ "unicorn/catch-error-name": [
726
+ "error",
727
+ {
728
+ name: "err",
729
+ ignore: ["^_."]
730
+ }
731
+ ],
732
+ "unicorn/prefer-date-now": "error",
733
+ // String
734
+ "unicorn/prefer-string-slice": "error",
735
+ "unicorn/prefer-string-trim-start-end": "error",
736
+ "unicorn/prefer-string-starts-ends-with": "error",
737
+ // DOM
738
+ "unicorn/prefer-add-event-listener": "error",
739
+ "unicorn/no-invalid-remove-event-listener": "error",
740
+ "unicorn/prefer-query-selector": "error",
741
+ "unicorn/prefer-modern-dom-apis": "error",
742
+ "unicorn/prefer-dom-node-append": "error",
743
+ "unicorn/prefer-dom-node-dataset": "error",
744
+ "unicorn/prefer-dom-node-remove": "error",
745
+ "unicorn/prefer-dom-node-text-content": "error",
746
+ // Array
747
+ "unicorn/no-new-array": "error",
748
+ "unicorn/no-instanceof-array": "error",
749
+ "unicorn/no-array-push-push": "error",
750
+ "unicorn/no-array-callback-reference": "error",
751
+ "unicorn/no-array-method-this-argument": "error",
752
+ "unicorn/prefer-array-find": "error",
753
+ "unicorn/prefer-array-some": "error",
754
+ "unicorn/prefer-array-flat-map": "error",
755
+ "unicorn/prefer-array-index-of": "error"
756
+ }
757
+ }
758
+ ];
759
+
760
+ // src/configs/prettier.ts
761
+ var import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1);
762
+ var prettier = [
763
+ {
764
+ plugins: {
765
+ prettier: import_eslint_plugin_prettier.default
766
+ },
767
+ rules: {
768
+ ...import_eslint_config_prettier.default.rules,
769
+ ...import_eslint_plugin_prettier.default.configs.recommended.rules,
770
+ "prettier/prettier": "warn"
771
+ }
772
+ }
773
+ ];
774
+
775
+ // src/configs/markdown.ts
776
+ var markdown = [
777
+ {
778
+ files: [GLOB_MARKDOWN],
779
+ plugins: {
780
+ markdown: import_eslint_plugin_markdown.default
781
+ },
782
+ processor: "markdown/markdown"
783
+ },
784
+ {
785
+ files: [`${GLOB_MARKDOWN}/${GLOB_SRC}`, `${GLOB_MARKDOWN}/${GLOB_VUE}`],
786
+ languageOptions: {
787
+ parserOptions: {
788
+ ecmaFeatures: {
789
+ impliedStrict: true
790
+ }
791
+ }
792
+ },
793
+ plugins: {
794
+ "@typescript-eslint": import_eslint_plugin2.default
795
+ },
796
+ rules: {
797
+ ...import_eslint_plugin_markdown.default.configs.recommended.overrides[1].rules,
798
+ "no-undef": "off",
799
+ "no-alert": "off",
800
+ "no-console": "off",
801
+ "no-unused-vars": "off",
802
+ "no-unused-expressions": "off",
803
+ "no-restricted-imports": "off",
804
+ "import/no-unresolved": "off",
805
+ "@typescript-eslint/comma-dangle": "off",
806
+ "@typescript-eslint/no-redeclare": "off",
807
+ "@typescript-eslint/no-unused-vars": "off",
808
+ "@typescript-eslint/no-var-requires": "off",
809
+ "@typescript-eslint/no-extraneous-class": "off",
810
+ "@typescript-eslint/no-use-before-define": "off",
811
+ "unused-imports/no-unused-imports": "off",
812
+ "unused-imports/no-unused-vars": "off"
813
+ }
814
+ }
815
+ ];
816
+
817
+ // src/configs/comments.ts
818
+ var comments = [
819
+ {
820
+ plugins: {
821
+ "eslint-comments": import_eslint_plugin_eslint_comments.default
822
+ },
823
+ rules: {
824
+ ...import_eslint_plugin_eslint_comments.default.configs.recommended.rules,
825
+ "eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }]
826
+ }
827
+ }
828
+ ];
829
+
830
+ // src/configs/javascript.ts
831
+ var import_globals = __toESM(require("globals"), 1);
832
+ var import_js = __toESM(require("@eslint/js"), 1);
833
+ var javascript = [
834
+ import_js.default.configs.recommended,
835
+ {
836
+ languageOptions: {
837
+ globals: {
838
+ ...import_globals.default.browser,
839
+ ...import_globals.default.es2021,
840
+ ...import_globals.default.node
841
+ },
842
+ sourceType: "module"
843
+ },
844
+ rules: {
845
+ // standard v17.0.0
846
+ "accessor-pairs": ["error", { setWithoutGet: true, enforceForClassMembers: true }],
847
+ "array-bracket-spacing": ["error", "never"],
848
+ "arrow-spacing": ["error", { before: true, after: true }],
849
+ "block-spacing": ["error", "always"],
850
+ "brace-style": ["error", "1tbs", { allowSingleLine: true }],
851
+ camelcase: [
852
+ "error",
853
+ {
854
+ allow: ["^UNSAFE_"],
855
+ properties: "never",
856
+ ignoreGlobals: true
857
+ }
858
+ ],
859
+ "comma-spacing": ["error", { before: false, after: true }],
860
+ "comma-style": ["error", "last"],
861
+ "computed-property-spacing": ["error", "never", { enforceForClassMembers: true }],
862
+ "constructor-super": "error",
863
+ curly: ["error", "multi-line"],
864
+ "default-case-last": "error",
865
+ "dot-location": ["error", "property"],
866
+ "dot-notation": ["error", { allowKeywords: true }],
867
+ "eol-last": "error",
868
+ "func-call-spacing": ["error", "never"],
869
+ indent: [
870
+ "error",
871
+ 2,
872
+ {
873
+ SwitchCase: 1,
874
+ VariableDeclarator: 1,
875
+ outerIIFEBody: 1,
876
+ MemberExpression: 1,
877
+ FunctionDeclaration: { parameters: 1, body: 1 },
878
+ FunctionExpression: { parameters: 1, body: 1 },
879
+ CallExpression: { arguments: 1 },
880
+ ArrayExpression: 1,
881
+ ObjectExpression: 1,
882
+ ImportDeclaration: 1,
883
+ flatTernaryExpressions: false,
884
+ ignoreComments: false,
885
+ ignoredNodes: [
886
+ "TemplateLiteral *",
887
+ "JSXElement",
888
+ "JSXElement > *",
889
+ "JSXAttribute",
890
+ "JSXIdentifier",
891
+ "JSXNamespacedName",
892
+ "JSXMemberExpression",
893
+ "JSXSpreadAttribute",
894
+ "JSXExpressionContainer",
895
+ "JSXOpeningElement",
896
+ "JSXClosingElement",
897
+ "JSXFragment",
898
+ "JSXOpeningFragment",
899
+ "JSXClosingFragment",
900
+ "JSXText",
901
+ "JSXEmptyExpression",
902
+ "JSXSpreadChild"
903
+ ],
904
+ offsetTernaryExpressions: true
905
+ }
906
+ ],
907
+ "key-spacing": ["error", { beforeColon: false, afterColon: true }],
908
+ "keyword-spacing": ["error", { before: true, after: true }],
909
+ "lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }],
910
+ "multiline-ternary": ["error", "always-multiline"],
911
+ "new-cap": ["error", { newIsCap: true, capIsNew: false, properties: true }],
912
+ "new-parens": "error",
913
+ "no-array-constructor": "error",
914
+ "no-async-promise-executor": "error",
915
+ "no-caller": "error",
916
+ "no-class-assign": "error",
917
+ "no-compare-neg-zero": "error",
918
+ "no-cond-assign": "error",
919
+ "no-const-assign": "error",
920
+ "no-constant-condition": ["error", { checkLoops: false }],
921
+ "no-control-regex": "error",
922
+ "no-debugger": "error",
923
+ "no-delete-var": "error",
924
+ "no-dupe-args": "error",
925
+ "no-dupe-class-members": "error",
926
+ "no-dupe-keys": "error",
927
+ "no-duplicate-case": "error",
928
+ "no-useless-backreference": "error",
929
+ "no-empty": ["error", { allowEmptyCatch: true }],
930
+ "no-empty-character-class": "error",
931
+ "no-empty-pattern": "error",
932
+ "no-eval": "error",
933
+ "no-ex-assign": "error",
934
+ "no-extend-native": "error",
935
+ "no-extra-bind": "error",
936
+ "no-extra-boolean-cast": "error",
937
+ "no-extra-parens": ["error", "functions"],
938
+ "no-fallthrough": "error",
939
+ "no-floating-decimal": "error",
940
+ "no-func-assign": "error",
941
+ "no-global-assign": "error",
942
+ "no-implied-eval": "error",
943
+ "no-import-assign": "error",
944
+ "no-invalid-regexp": "error",
945
+ "no-irregular-whitespace": "error",
946
+ "no-iterator": "error",
947
+ "no-labels": ["error", { allowLoop: false, allowSwitch: false }],
948
+ "no-lone-blocks": "error",
949
+ "no-loss-of-precision": "error",
950
+ "no-misleading-character-class": "error",
951
+ "no-prototype-builtins": "error",
952
+ "no-useless-catch": "error",
953
+ "no-mixed-operators": [
954
+ "error",
955
+ {
956
+ groups: [
957
+ ["==", "!=", "===", "!==", ">", ">=", "<", "<="],
958
+ ["&&", "||"],
959
+ ["in", "instanceof"]
960
+ ],
961
+ allowSamePrecedence: true
962
+ }
963
+ ],
964
+ "no-mixed-spaces-and-tabs": "error",
965
+ "no-multiple-empty-lines": ["error", { max: 1, maxBOF: 0, maxEOF: 0 }],
966
+ "no-new": "error",
967
+ "no-new-func": "error",
968
+ "no-new-object": "error",
969
+ "no-new-symbol": "error",
970
+ "no-new-wrappers": "error",
971
+ "no-obj-calls": "error",
972
+ "no-octal": "error",
973
+ "no-octal-escape": "error",
974
+ "no-proto": "error",
975
+ "no-redeclare": ["error", { builtinGlobals: false }],
976
+ "no-regex-spaces": "error",
977
+ "no-self-assign": ["error", { props: true }],
978
+ "no-self-compare": "error",
979
+ "no-sequences": "error",
980
+ "no-shadow-restricted-names": "error",
981
+ "no-sparse-arrays": "error",
982
+ "no-tabs": "error",
983
+ "no-template-curly-in-string": "error",
984
+ "no-this-before-super": "error",
985
+ "no-throw-literal": "error",
986
+ "no-trailing-spaces": "error",
987
+ "no-undef": "error",
988
+ "no-undef-init": "error",
989
+ "no-unexpected-multiline": "error",
990
+ "no-unmodified-loop-condition": "error",
991
+ "no-unneeded-ternary": ["error", { defaultAssignment: false }],
992
+ "no-unreachable": "error",
993
+ "no-unreachable-loop": "error",
994
+ "no-unsafe-finally": "error",
995
+ "no-unsafe-negation": "error",
996
+ "no-unused-expressions": [
997
+ "error",
998
+ {
999
+ allowShortCircuit: true,
1000
+ allowTernary: true,
1001
+ allowTaggedTemplates: true
1002
+ }
1003
+ ],
1004
+ "no-unused-vars": [
1005
+ "error",
1006
+ {
1007
+ args: "none",
1008
+ caughtErrors: "none",
1009
+ ignoreRestSiblings: true,
1010
+ vars: "all"
1011
+ }
1012
+ ],
1013
+ "no-useless-call": "error",
1014
+ "no-useless-computed-key": "error",
1015
+ "no-useless-constructor": "error",
1016
+ "no-useless-rename": "error",
1017
+ "no-useless-return": "error",
1018
+ "no-whitespace-before-property": "error",
1019
+ "object-curly-newline": ["error", { multiline: true, consistent: true }],
1020
+ "object-curly-spacing": ["error", "always"],
1021
+ "object-property-newline": ["error", { allowMultiplePropertiesPerLine: true }],
1022
+ "padded-blocks": ["error", { blocks: "never", switches: "never", classes: "never" }],
1023
+ "prefer-promise-reject-errors": "error",
1024
+ "prefer-regex-literals": ["error", { disallowRedundantWrapping: true }],
1025
+ "quote-props": ["error", "as-needed"],
1026
+ "rest-spread-spacing": ["error", "never"],
1027
+ semi: ["error", "never"],
1028
+ "semi-spacing": ["error", { before: false, after: true }],
1029
+ "space-before-blocks": ["error", "always"],
1030
+ "space-before-function-paren": ["error", "never"],
1031
+ "space-in-parens": ["error", "never"],
1032
+ "space-infix-ops": "error",
1033
+ "space-unary-ops": ["error", { words: true, nonwords: false }],
1034
+ "symbol-description": "error",
1035
+ "template-tag-spacing": ["error", "never"],
1036
+ "unicode-bom": ["error", "never"],
1037
+ "use-isnan": [
1038
+ "error",
1039
+ {
1040
+ enforceForSwitchCase: true,
1041
+ enforceForIndexOf: true
1042
+ }
1043
+ ],
1044
+ "valid-typeof": ["error", { requireStringLiterals: true }],
1045
+ "wrap-iife": ["error", "any", { functionPrototypeMethods: true }],
1046
+ "yield-star-spacing": ["error", "both"],
1047
+ yoda: ["error", "never"],
1048
+ // es6+
1049
+ "no-var": "error",
1050
+ "prefer-rest-params": "error",
1051
+ "prefer-spread": "error",
1052
+ "prefer-template": "error",
1053
+ "template-curly-spacing": "error",
1054
+ "generator-star-spacing": "off",
1055
+ "no-empty-static-block": "error",
1056
+ "no-new-native-nonconstructor": "error",
1057
+ "arrow-parens": [
1058
+ "error",
1059
+ "as-needed",
1060
+ {
1061
+ requireForBlockBody: false
1062
+ }
1063
+ ],
1064
+ quotes: [
1065
+ "error",
1066
+ "single",
1067
+ {
1068
+ avoidEscape: true,
1069
+ allowTemplateLiterals: false
1070
+ }
1071
+ ],
1072
+ "prefer-const": [
1073
+ "error",
1074
+ {
1075
+ destructuring: "all",
1076
+ ignoreReadBeforeAssign: true
1077
+ }
1078
+ ],
1079
+ "prefer-arrow-callback": [
1080
+ "error",
1081
+ {
1082
+ allowNamedFunctions: false,
1083
+ allowUnboundThis: true
1084
+ }
1085
+ ],
1086
+ "object-shorthand": [
1087
+ "error",
1088
+ "always",
1089
+ {
1090
+ ignoreConstructors: false,
1091
+ avoidQuotes: true
1092
+ }
1093
+ ],
1094
+ "spaced-comment": [
1095
+ "error",
1096
+ "always",
1097
+ {
1098
+ line: {
1099
+ markers: ["/"],
1100
+ exceptions: ["/", "#"]
1101
+ },
1102
+ block: {
1103
+ markers: ["!"],
1104
+ exceptions: ["*"],
1105
+ balanced: true
1106
+ }
1107
+ }
1108
+ ],
1109
+ // best-practice
1110
+ eqeqeq: ["error", "smart"],
1111
+ complexity: ["error", { max: 30 }],
1112
+ "array-callback-return": "error",
1113
+ "block-scoped-var": "error",
1114
+ "consistent-return": "off",
1115
+ "no-alert": "error",
1116
+ "no-case-declarations": "error",
1117
+ "no-multi-spaces": "error",
1118
+ "no-multi-str": "error",
1119
+ "no-with": "error",
1120
+ "no-void": "error",
1121
+ "no-useless-escape": "off",
1122
+ "vars-on-top": "error",
1123
+ "require-await": "off",
1124
+ "no-return-assign": "off",
1125
+ "one-var": ["error", "never"],
1126
+ "operator-linebreak": ["error", "before"],
1127
+ "comma-dangle": ["error", "always-multiline"],
1128
+ "max-params": ["error", { max: 5 }],
1129
+ "max-depth": ["error", { max: 5 }],
1130
+ "max-nested-callbacks": ["error", { max: 10 }],
1131
+ "max-statements-per-line": ["error", { max: 2 }],
1132
+ "max-lines": [
1133
+ "error",
1134
+ {
1135
+ max: 1e3,
1136
+ skipComments: true,
1137
+ skipBlankLines: true
1138
+ }
1139
+ ],
1140
+ "max-lines-per-function": [
1141
+ "error",
1142
+ {
1143
+ max: 100,
1144
+ skipComments: true,
1145
+ skipBlankLines: true
1146
+ }
1147
+ ],
1148
+ "no-use-before-define": [
1149
+ "error",
1150
+ {
1151
+ functions: false,
1152
+ classes: false,
1153
+ variables: true
1154
+ }
1155
+ ],
1156
+ "max-len": [
1157
+ "error",
1158
+ {
1159
+ code: 200,
1160
+ tabWidth: 2,
1161
+ comments: 200,
1162
+ ignoreUrls: true,
1163
+ ignoreStrings: true,
1164
+ ignoreRegExpLiterals: true,
1165
+ ignoreTemplateLiterals: true,
1166
+ ignoreTrailingComments: true
1167
+ }
1168
+ ],
1169
+ "sort-imports": [
1170
+ "error",
1171
+ {
1172
+ ignoreCase: false,
1173
+ ignoreDeclarationSort: true,
1174
+ ignoreMemberSort: false,
1175
+ memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
1176
+ allowSeparatedGroups: false
1177
+ }
1178
+ ]
1179
+ }
1180
+ },
1181
+ {
1182
+ files: ["**/scripts/*", "**/cli.*"],
1183
+ rules: {
1184
+ "no-console": "off"
1185
+ }
1186
+ },
1187
+ {
1188
+ files: ["**/*.{test,spec}.js?(x)"],
1189
+ rules: {
1190
+ "no-unused-expressions": "off",
1191
+ "max-lines-per-function": "off"
1192
+ }
1193
+ }
1194
+ ];
1195
+ var jsx = [
1196
+ {
1197
+ files: ["**/*.jsx"],
1198
+ languageOptions: {
1199
+ parserOptions: {
1200
+ ecmaFeatures: {
1201
+ jsx: true
1202
+ }
1203
+ }
1204
+ }
1205
+ }
1206
+ ];
1207
+
1208
+ // src/configs/ignores.ts
1209
+ var ignores = [
1210
+ {
1211
+ ignores: GLOB_EXCLUDE
1212
+ }
1213
+ ];
1214
+
1215
+ // src/presets.ts
1216
+ var basic = [
1217
+ ...ignores,
1218
+ ...javascript,
1219
+ ...jsx,
1220
+ ...node,
1221
+ ...typescript,
1222
+ ...imports,
1223
+ ...unicorn,
1224
+ ...comments
1225
+ ];
1226
+ var common = [
1227
+ ...basic,
1228
+ ...yml,
1229
+ ...jsonc,
1230
+ ...sortPackageJson,
1231
+ ...sortTsConfig,
1232
+ ...prettier,
1233
+ ...markdown
1234
+ ];
1235
+ var all = [...common, ...vue, ...react, ...astro, ...unocss];
1236
+ function ntnyq(config = [], {
1237
+ vue: enableVue = false,
1238
+ react: enableReact = false,
1239
+ astro: enableAstro = false,
1240
+ unocss: enableUnoCSS = false
1241
+ } = {}) {
1242
+ const configs = [...common];
1243
+ if (enableVue) {
1244
+ configs.push(...vue);
1245
+ }
1246
+ if (enableReact) {
1247
+ configs.push(...react);
1248
+ }
1249
+ if (enableAstro) {
1250
+ configs.push(...astro);
1251
+ }
1252
+ if (enableUnoCSS) {
1253
+ configs.push(...unocss);
1254
+ }
1255
+ if (Object.keys(config).length > 0) {
1256
+ configs.push(...Array.isArray(config) ? config : [config]);
1257
+ }
1258
+ return configs;
1259
+ }
1260
+ // Annotate the CommonJS export names for ESM import in node:
1261
+ 0 && (module.exports = {
1262
+ GLOB_ALL_SRC,
1263
+ GLOB_ASTRO,
1264
+ GLOB_CSS,
1265
+ GLOB_DIST,
1266
+ GLOB_EXCLUDE,
1267
+ GLOB_HTML,
1268
+ GLOB_JS,
1269
+ GLOB_JSON,
1270
+ GLOB_JSON5,
1271
+ GLOB_JSONC,
1272
+ GLOB_JSX,
1273
+ GLOB_LESS,
1274
+ GLOB_LOCKFILE,
1275
+ GLOB_MARKDOWN,
1276
+ GLOB_NODE_MODULES,
1277
+ GLOB_SCSS,
1278
+ GLOB_SRC,
1279
+ GLOB_SRC_EXT,
1280
+ GLOB_STYLE,
1281
+ GLOB_TS,
1282
+ GLOB_TSX,
1283
+ GLOB_VUE,
1284
+ GLOB_YAML,
1285
+ all,
1286
+ astro,
1287
+ basic,
1288
+ comments,
1289
+ common,
1290
+ getVueVersion,
1291
+ ignores,
1292
+ imports,
1293
+ javascript,
1294
+ jsonc,
1295
+ jsx,
1296
+ markdown,
1297
+ node,
1298
+ ntnyq,
1299
+ parserAstro,
1300
+ parserJsonc,
1301
+ parserTs,
1302
+ parserVue,
1303
+ parserYaml,
1304
+ pluginAstro,
1305
+ pluginComments,
1306
+ pluginImport,
1307
+ pluginJsonc,
1308
+ pluginMarkdown,
1309
+ pluginNode,
1310
+ pluginPrettier,
1311
+ pluginReact,
1312
+ pluginReactHooks,
1313
+ pluginTs,
1314
+ pluginUnicorn,
1315
+ pluginUnoCSS,
1316
+ pluginVue,
1317
+ pluginYaml,
1318
+ prettier,
1319
+ react,
1320
+ sortPackageJson,
1321
+ sortTsConfig,
1322
+ typescript,
1323
+ unicorn,
1324
+ unocss,
1325
+ vue,
1326
+ yml
1327
+ });