@ntnyq/eslint-config 2.0.0-beta.19 → 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/README.md CHANGED
@@ -27,6 +27,7 @@ Make sure to config `"eslint.experimental.useFlatConfig": true` in `.vscode/sett
27
27
  ## Credits
28
28
 
29
29
  - [@sxzz/eslint-config](https://github.com/sxzz/eslint-config)
30
+ - [@antfu/eslint-config](https://github.com/antfu/eslint-config)
30
31
 
31
32
  ## License
32
33
 
package/dist/index.cjs CHANGED
@@ -62,31 +62,34 @@ __export(src_exports, {
62
62
  ignores: () => ignores,
63
63
  imports: () => imports,
64
64
  javascript: () => javascript,
65
- jsonOrder: () => jsonOrder,
66
65
  jsonc: () => jsonc,
67
66
  jsx: () => jsx,
68
67
  markdown: () => markdown,
68
+ node: () => node,
69
69
  ntnyq: () => ntnyq,
70
- parserAstro: () => parserAstro,
71
- parserJsonc: () => parserJsonc,
72
- parserTypescript: () => parserTypescript,
73
- parserVue: () => parserVue,
74
- parserYml: () => parserYml,
75
- pluginAstro: () => pluginAstro,
76
- pluginComments: () => pluginComments,
77
- pluginImport: () => pluginImport,
78
- pluginJsonc: () => pluginJsonc,
79
- pluginMarkdown: () => pluginMarkdown,
80
- pluginPrettier: () => pluginPrettier,
81
- pluginReact: () => pluginReact,
82
- pluginReactHooks: () => pluginReactHooks,
83
- pluginTypescript: () => pluginTypescript,
84
- pluginUnicorn: () => pluginUnicorn,
85
- pluginUnoCSS: () => pluginUnoCSS,
86
- pluginVue: () => pluginVue,
87
- pluginYml: () => pluginYml,
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,
88
89
  prettier: () => prettier,
89
90
  react: () => react,
91
+ sortPackageJson: () => sortPackageJson,
92
+ sortTsConfig: () => sortTsConfig,
90
93
  typescript: () => typescript,
91
94
  unicorn: () => unicorn,
92
95
  unocss: () => unocss,
@@ -156,58 +159,48 @@ var GLOB_EXCLUDE = [
156
159
  ];
157
160
 
158
161
  // src/configs/vue.ts
162
+ var import_node_process = __toESM(require("process"), 1);
159
163
  var import_local_pkg = require("local-pkg");
160
164
 
161
165
  // src/parsers.ts
162
- var parserYml = __toESM(require("yaml-eslint-parser"), 1);
163
- var parserVue = __toESM(require("vue-eslint-parser"), 1);
164
- var parserJsonc = __toESM(require("jsonc-eslint-parser"), 1);
165
- var parserAstro = __toESM(require("astro-eslint-parser"), 1);
166
- var parserTypescript = __toESM(require("@typescript-eslint/parser"), 1);
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);
167
171
 
168
172
  // src/plugins.ts
169
- var _pluginVue = __toESM(require("eslint-plugin-vue"), 1);
170
- var _pluginReact = __toESM(require("eslint-plugin-react"), 1);
171
- var _pluginUnoCSS = __toESM(require("@unocss/eslint-plugin"), 1);
172
- var _pluginUnicorn = __toESM(require("eslint-plugin-unicorn"), 1);
173
- var _pluginPrettier = __toESM(require("eslint-plugin-prettier"), 1);
174
- var _pluginMarkdown = __toESM(require("eslint-plugin-markdown"), 1);
175
- var _pluginReactHooks = __toESM(require("eslint-plugin-react-hooks"), 1);
176
- var _pluginComments = __toESM(require("eslint-plugin-eslint-comments"), 1);
177
- var _pluginTypeScript = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
178
- var pluginYml = __toESM(require("eslint-plugin-yml"), 1);
179
- var pluginAstro = __toESM(require("eslint-plugin-astro"), 1);
180
- var pluginJsonc = __toESM(require("eslint-plugin-jsonc"), 1);
181
- var pluginImport = __toESM(require("eslint-plugin-import"), 1);
182
- function interopDefault(mod) {
183
- return mod.default || mod;
184
- }
185
- var pluginVue = interopDefault(_pluginVue);
186
- var pluginReact = interopDefault(_pluginReact);
187
- var pluginUnoCSS = interopDefault(_pluginUnoCSS);
188
- var pluginUnicorn = interopDefault(_pluginUnicorn);
189
- var pluginPrettier = interopDefault(_pluginPrettier);
190
- var pluginMarkdown = interopDefault(_pluginMarkdown);
191
- var pluginComments = interopDefault(_pluginComments);
192
- var pluginReactHooks = interopDefault(_pluginReactHooks);
193
- var pluginTypescript = interopDefault(_pluginTypeScript);
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);
194
187
 
195
188
  // src/configs/typescript.ts
196
189
  var typescript = [
197
190
  {
198
191
  files: [GLOB_TS, GLOB_TSX],
199
192
  languageOptions: {
200
- parser: parserTypescript,
193
+ parser: import_parser.default,
201
194
  parserOptions: {
202
195
  sourceType: "module"
203
196
  }
204
197
  },
205
198
  plugins: {
206
- "@typescript-eslint": pluginTypescript
199
+ "@typescript-eslint": import_eslint_plugin2.default
207
200
  },
208
201
  rules: {
209
- ...pluginTypescript.configs.recommended.rules,
210
- ...pluginTypescript.configs.stylistic.rules,
202
+ ...import_eslint_plugin2.default.configs.recommended.rules,
203
+ ...import_eslint_plugin2.default.configs.stylistic.rules,
211
204
  "@typescript-eslint/no-unused-vars": "error",
212
205
  "@typescript-eslint/no-redeclare": "error",
213
206
  "@typescript-eslint/consistent-type-imports": [
@@ -268,7 +261,7 @@ var typescript = [
268
261
 
269
262
  // src/configs/vue.ts
270
263
  function getVueVersion() {
271
- const pkg = (0, import_local_pkg.getPackageInfoSync)("vue", { paths: [process.cwd()] });
264
+ const pkg = (0, import_local_pkg.getPackageInfoSync)("vue", { paths: [import_node_process.default.cwd()] });
272
265
  if (pkg && typeof pkg.version === "string" && !Number.isNaN(+pkg.version[0])) {
273
266
  return +pkg.version[0];
274
267
  }
@@ -286,11 +279,11 @@ var vue = [
286
279
  {
287
280
  files: [GLOB_VUE],
288
281
  plugins: {
289
- vue: pluginVue,
290
- "@typescript-eslint": pluginTypescript
282
+ vue: import_eslint_plugin_vue.default,
283
+ "@typescript-eslint": import_eslint_plugin2.default
291
284
  },
292
285
  languageOptions: {
293
- parser: parserVue,
286
+ parser: import_vue_eslint_parser.default,
294
287
  parserOptions: {
295
288
  parser: "@typescript-eslint/parser",
296
289
  sourceType: "module",
@@ -300,14 +293,14 @@ var vue = [
300
293
  }
301
294
  }
302
295
  },
303
- processor: pluginVue.processors[".vue"],
296
+ processor: import_eslint_plugin_vue.default.processors[".vue"],
304
297
  rules: {
305
298
  ...typescript[0].rules
306
299
  }
307
300
  },
308
301
  {
309
302
  plugins: {
310
- vue: pluginVue
303
+ vue: import_eslint_plugin_vue.default
311
304
  },
312
305
  rules: isVue3 ? vue3Rules : vue2Rules
313
306
  }
@@ -318,110 +311,41 @@ var yml = [
318
311
  {
319
312
  files: [GLOB_YAML],
320
313
  languageOptions: {
321
- parser: parserYml
314
+ parser: import_yaml_eslint_parser.default
322
315
  },
323
316
  plugins: {
324
- yml: pluginYml
317
+ yml: import_eslint_plugin_yml.default
325
318
  },
326
319
  rules: {
327
- ...pluginYml.configs.standard.rules,
328
- ...pluginYml.configs.prettier.rules,
329
- "yml/no-empty-mapping-value": "off"
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" }]
330
324
  }
331
325
  }
332
326
  ];
333
327
 
334
- // src/configs/react.ts
335
- var react = [
328
+ // src/configs/node.ts
329
+ var node = [
336
330
  {
337
- files: [GLOB_JSX, GLOB_TSX],
338
331
  plugins: {
339
- react: pluginReact,
340
- "react-hooks": pluginReactHooks
341
- },
342
- settings: {
343
- react: {
344
- version: "18.0"
345
- }
346
- },
347
- languageOptions: {
348
- parserOptions: {
349
- ecmaFeatures: {
350
- jsx: true
351
- }
352
- }
332
+ node: import_eslint_plugin_n.default
353
333
  },
354
334
  rules: {
355
- ...pluginReact.configs.recommended.rules,
356
- ...pluginReactHooks.configs.recommended.rules,
357
- "jsx-quotes": ["error", "prefer-double"],
358
- "react/react-in-jsx-scope": "off"
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"
359
343
  }
360
344
  }
361
345
  ];
362
346
 
363
- // src/configs/astro.ts
364
- var astro = [
365
- {
366
- files: [GLOB_ASTRO],
367
- plugins: {
368
- astro: pluginAstro
369
- },
370
- languageOptions: {
371
- parser: parserAstro,
372
- parserOptions: {
373
- parser: "@typescript-eslint/parser",
374
- extraFileExtensions: [".astro"]
375
- }
376
- },
377
- rules: {
378
- ...pluginAstro.configs.recommended.rules
379
- }
380
- }
381
- ];
382
-
383
- // src/configs/jsonc.ts
384
- var jsonc = [
385
- {
386
- files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
387
- plugins: {
388
- jsonc: pluginJsonc
389
- },
390
- languageOptions: {
391
- parser: parserJsonc
392
- },
393
- rules: {
394
- ...pluginJsonc.configs["recommended-with-jsonc"].rules,
395
- "jsonc/array-bracket-spacing": ["error", "never"],
396
- "jsonc/comma-dangle": ["error", "never"],
397
- "jsonc/comma-style": ["error", "last"],
398
- "jsonc/indent": ["error", 2],
399
- "jsonc/key-spacing": [
400
- "error",
401
- {
402
- beforeColon: false,
403
- afterColon: true
404
- }
405
- ],
406
- "jsonc/no-octal-escape": "error",
407
- "jsonc/object-curly-newline": [
408
- "error",
409
- {
410
- multiline: true,
411
- consistent: true
412
- }
413
- ],
414
- "jsonc/object-curly-spacing": ["error", "always"],
415
- "jsonc/object-property-newline": [
416
- "error",
417
- {
418
- allowMultiplePropertiesPerLine: true
419
- }
420
- ]
421
- }
422
- }
423
- ];
424
- var jsonOrder = [
347
+ // src/configs/sort.ts
348
+ var sortPackageJson = [
425
349
  {
426
350
  files: ["**/package.json"],
427
351
  rules: {
@@ -499,12 +423,218 @@ var jsonOrder = [
499
423
  }
500
424
  }
501
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
+ ];
502
632
 
503
633
  // src/configs/imports.ts
504
634
  var imports = [
505
635
  {
506
636
  plugins: {
507
- import: pluginImport
637
+ import: import_eslint_plugin_i.default
508
638
  },
509
639
  settings: {
510
640
  "import/resolver": {
@@ -516,6 +646,7 @@ var imports = [
516
646
  "import/no-absolute-path": "off",
517
647
  "import/no-named-as-default-member": "off",
518
648
  "import/first": "error",
649
+ "import/export": "error",
519
650
  "import/no-duplicates": "error",
520
651
  "import/no-mutable-exports": "error",
521
652
  "import/newline-after-import": "error",
@@ -545,10 +676,10 @@ var imports = [
545
676
  var unocss = [
546
677
  {
547
678
  plugins: {
548
- "@unocss": pluginUnoCSS
679
+ "@unocss": import_eslint_plugin.default
549
680
  },
550
681
  rules: {
551
- ...pluginUnoCSS.configs.recommended.rules
682
+ ...import_eslint_plugin.default.configs.recommended.rules
552
683
  }
553
684
  }
554
685
  ];
@@ -557,7 +688,7 @@ var unocss = [
557
688
  var unicorn = [
558
689
  {
559
690
  plugins: {
560
- unicorn: pluginUnicorn
691
+ unicorn: import_eslint_plugin_unicorn.default
561
692
  },
562
693
  rules: {
563
694
  "unicorn/no-unsafe-regex": "off",
@@ -633,11 +764,11 @@ var import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1
633
764
  var prettier = [
634
765
  {
635
766
  plugins: {
636
- prettier: pluginPrettier
767
+ prettier: import_eslint_plugin_prettier.default
637
768
  },
638
769
  rules: {
639
770
  ...import_eslint_config_prettier.default.rules,
640
- ...pluginPrettier.configs.recommended.rules,
771
+ ...import_eslint_plugin_prettier.default.configs.recommended.rules,
641
772
  "prettier/prettier": "warn"
642
773
  }
643
774
  }
@@ -648,7 +779,7 @@ var markdown = [
648
779
  {
649
780
  files: [GLOB_MARKDOWN],
650
781
  plugins: {
651
- markdown: pluginMarkdown
782
+ markdown: import_eslint_plugin_markdown.default
652
783
  },
653
784
  processor: "markdown/markdown"
654
785
  },
@@ -662,10 +793,10 @@ var markdown = [
662
793
  }
663
794
  },
664
795
  plugins: {
665
- "@typescript-eslint": pluginTypescript
796
+ "@typescript-eslint": import_eslint_plugin2.default
666
797
  },
667
798
  rules: {
668
- ...pluginMarkdown.configs.recommended.overrides[1].rules,
799
+ ...import_eslint_plugin_markdown.default.configs.recommended.overrides[1].rules,
669
800
  "no-undef": "off",
670
801
  "no-alert": "off",
671
802
  "no-console": "off",
@@ -689,10 +820,10 @@ var markdown = [
689
820
  var comments = [
690
821
  {
691
822
  plugins: {
692
- "eslint-comments": pluginComments
823
+ "eslint-comments": import_eslint_plugin_eslint_comments.default
693
824
  },
694
825
  rules: {
695
- ...pluginComments.configs.recommended.rules,
826
+ ...import_eslint_plugin_eslint_comments.default.configs.recommended.rules,
696
827
  "eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }]
697
828
  }
698
829
  }
@@ -713,7 +844,7 @@ var javascript = [
713
844
  sourceType: "module"
714
845
  },
715
846
  rules: {
716
- // standard v 17.0.0
847
+ // standard v17.0.0
717
848
  "accessor-pairs": ["error", { setWithoutGet: true, enforceForClassMembers: true }],
718
849
  "array-bracket-spacing": ["error", "never"],
719
850
  "arrow-spacing": ["error", { before: true, after: true }],
@@ -1088,6 +1219,7 @@ var basic = [
1088
1219
  ...ignores,
1089
1220
  ...javascript,
1090
1221
  ...jsx,
1222
+ ...node,
1091
1223
  ...typescript,
1092
1224
  ...imports,
1093
1225
  ...unicorn,
@@ -1097,7 +1229,8 @@ var common = [
1097
1229
  ...basic,
1098
1230
  ...yml,
1099
1231
  ...jsonc,
1100
- ...jsonOrder,
1232
+ ...sortPackageJson,
1233
+ ...sortTsConfig,
1101
1234
  ...prettier,
1102
1235
  ...markdown
1103
1236
  ];
@@ -1160,10 +1293,10 @@ function ntnyq(config = [], {
1160
1293
  ignores,
1161
1294
  imports,
1162
1295
  javascript,
1163
- jsonOrder,
1164
1296
  jsonc,
1165
1297
  jsx,
1166
1298
  markdown,
1299
+ node,
1167
1300
  ntnyq,
1168
1301
  parserAstro,
1169
1302
  parserJsonc,
@@ -1175,16 +1308,19 @@ function ntnyq(config = [], {
1175
1308
  pluginImport,
1176
1309
  pluginJsonc,
1177
1310
  pluginMarkdown,
1311
+ pluginNode,
1178
1312
  pluginPrettier,
1179
1313
  pluginReact,
1180
1314
  pluginReactHooks,
1181
- pluginTypescript,
1315
+ pluginTypeScript,
1182
1316
  pluginUnicorn,
1183
1317
  pluginUnoCSS,
1184
1318
  pluginVue,
1185
1319
  pluginYml,
1186
1320
  prettier,
1187
1321
  react,
1322
+ sortPackageJson,
1323
+ sortTsConfig,
1188
1324
  typescript,
1189
1325
  unicorn,
1190
1326
  unocss,