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

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