@ntnyq/eslint-config 3.0.0-beta.14 → 3.0.0-beta.15

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 CHANGED
@@ -106,6 +106,7 @@ __export(src_exports, {
106
106
  sortI18nLocale: () => sortI18nLocale,
107
107
  sortPackageJson: () => sortPackageJson,
108
108
  sortTsConfig: () => sortTsConfig,
109
+ test: () => test,
109
110
  toArray: () => toArray,
110
111
  toml: () => toml,
111
112
  tseslint: () => import_typescript_eslint.default,
@@ -127,11 +128,16 @@ var import_eslint_flat_config_utils = require("eslint-flat-config-utils");
127
128
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
128
129
  var GLOB_SRC = `**/*.${GLOB_SRC_EXT}`;
129
130
  var GLOB_JS = "**/*.?([cm])js";
130
- var GLOB_JSX = "**/*.?([cm])jsx";
131
+ var GLOB_JSX = `${GLOB_JS}x`;
131
132
  var GLOB_TS = "**/*.?([cm])ts";
132
- var GLOB_TSX = "**/*.?([cm])tsx";
133
+ var GLOB_TSX = `${GLOB_TS}x`;
133
134
  var GLOB_DTS = "**/*.d.?([cm])ts";
134
- var GLOB_TEST = `**/*.{test,spec,bench,benchmark}.${GLOB_SRC_EXT}`;
135
+ var GLOB_TEST = [
136
+ `**/*.test.${GLOB_SRC_EXT}`,
137
+ `**/*.spec.${GLOB_SRC_EXT}`,
138
+ `**/*.bench.${GLOB_SRC_EXT}`,
139
+ `**/*.benchmark.${GLOB_SRC_EXT}`
140
+ ];
135
141
  var GLOB_STYLE = "**/*.{c,le,sc}ss";
136
142
  var GLOB_CSS = "**/*.css";
137
143
  var GLOB_LESS = "**/*.less";
@@ -258,6 +264,8 @@ var typescriptCore = (options = {}) => {
258
264
  rules: {
259
265
  // Disabled in favor of ts rules
260
266
  "no-redeclare": "off",
267
+ "no-use-before-define": "off",
268
+ "no-unused-vars": "off",
261
269
  "@typescript-eslint/no-redeclare": [
262
270
  "error",
263
271
  {
@@ -265,6 +273,18 @@ var typescriptCore = (options = {}) => {
265
273
  ignoreDeclarationMerge: true
266
274
  }
267
275
  ],
276
+ "@typescript-eslint/no-use-before-define": [
277
+ "error",
278
+ {
279
+ functions: false,
280
+ classes: false,
281
+ variables: true,
282
+ allowNamedExports: false,
283
+ enums: true,
284
+ typedefs: false,
285
+ ignoreTypeReferences: false
286
+ }
287
+ ],
268
288
  "@typescript-eslint/no-unused-vars": [
269
289
  "error",
270
290
  {
@@ -324,7 +344,7 @@ var typescriptCore = (options = {}) => {
324
344
  "@typescript-eslint/explicit-function-return-type": "off",
325
345
  "@typescript-eslint/explicit-module-boundary-types": "off",
326
346
  "@typescript-eslint/consistent-indexed-object-style": "off",
327
- // Overrides built-in rules
347
+ // Overrides rules
328
348
  ...options.overrides
329
349
  }
330
350
  });
@@ -333,21 +353,14 @@ var typescriptCore = (options = {}) => {
333
353
  var typescript = (options = {}) => [
334
354
  ...typescriptCore(options),
335
355
  {
336
- name: "ntnyq/ts/dts",
356
+ name: "ntnyq/ts/types",
337
357
  files: [GLOB_DTS, "**/types/**/*.ts"],
338
358
  rules: {
339
359
  "no-use-before-define": "off",
340
360
  "no-restricted-syntax": "off",
341
361
  "import/no-duplicates": "off",
342
- "import/newline-after-import": "off"
343
- }
344
- },
345
- {
346
- name: "ntnyq/ts/test",
347
- files: ["**/*.{spec,test}.ts?(x)"],
348
- rules: {
349
- "no-unused-expressions": "off",
350
- "max-lines-per-function": "off"
362
+ "import/newline-after-import": "off",
363
+ "@typescript-eslint/no-use-before-define": "off"
351
364
  }
352
365
  }
353
366
  ];
@@ -620,7 +633,7 @@ var vue = (options = {}) => {
620
633
  multiline: 1
621
634
  }
622
635
  ],
623
- // Overrides built-in rules
636
+ // Overrides rules
624
637
  ...options.overrides
625
638
  }
626
639
  }
@@ -643,7 +656,7 @@ var yml = (options = {}) => [
643
656
  ...import_eslint_plugin_yml.default.configs.prettier.rules,
644
657
  "yml/no-empty-mapping-value": "off",
645
658
  "yml/quotes": ["error", { avoidEscape: false, prefer: "single" }],
646
- // Overrides built-in rules
659
+ // Overrides rules
647
660
  ...options.overrides
648
661
  }
649
662
  }
@@ -665,7 +678,7 @@ var node = (options = {}) => [
665
678
  "node/prefer-global/buffer": ["error", "never"],
666
679
  "node/prefer-global/process": ["error", "never"],
667
680
  "node/process-exit-as-throw": "error",
668
- // Overrides built-in rules
681
+ // Overrides rules
669
682
  ...options.overrides
670
683
  }
671
684
  }
@@ -935,11 +948,39 @@ var toml = (options = {}) => [
935
948
  "toml/quoted-keys": "error",
936
949
  "toml/spaced-comment": "error",
937
950
  "toml/table-bracket-spacing": "error",
938
- // Overrides built-in rules
951
+ // Overrides rules
952
+ ...options.overrides
953
+ }
954
+ }
955
+ ];
956
+
957
+ // src/configs/test.ts
958
+ var test = (options = {}) => [
959
+ {
960
+ name: "ntnyq/test",
961
+ files: [...GLOB_TEST],
962
+ rules: {
963
+ "no-unused-expressions": "off",
964
+ "max-lines-per-function": "off",
965
+ // Overrides rules
939
966
  ...options.overrides
940
967
  }
941
968
  }
942
969
  ];
970
+ var vitest = (options = {}) => [
971
+ {
972
+ name: "ntnyq/vitest",
973
+ plugins: {
974
+ vitest: import_eslint_plugin2.default
975
+ },
976
+ files: [...GLOB_TEST],
977
+ rules: {
978
+ ...import_eslint_plugin2.default.configs.recommended.rules,
979
+ // Overrides rules
980
+ ...options.overridesVitestRules
981
+ }
982
+ }
983
+ ];
943
984
 
944
985
  // src/configs/antfu.ts
945
986
  var antfu = (options = {}) => [
@@ -983,7 +1024,7 @@ var jsdoc = (options = {}) => [
983
1024
  "jsdoc/require-yields-check": "warn",
984
1025
  "jsdoc/check-alignment": "warn",
985
1026
  "jsdoc/multiline-blocks": "warn",
986
- // Overrides built-in rules
1027
+ // Overrides rules
987
1028
  ...options.overrides
988
1029
  }
989
1030
  }
@@ -1028,7 +1069,7 @@ var jsonc = (options = {}) => [
1028
1069
  allowMultiplePropertiesPerLine: true
1029
1070
  }
1030
1071
  ],
1031
- // Overrides built-in rules
1072
+ // Overrides rules
1032
1073
  ...options.overrides
1033
1074
  }
1034
1075
  }
@@ -1042,7 +1083,7 @@ var regexp = (options = {}) => [
1042
1083
  {
1043
1084
  name: "ntnyq/regexp",
1044
1085
  ...pluginRegexp.configs["flat/recommended"],
1045
- // Overrides built-in rules
1086
+ // Overrides rules
1046
1087
  ...options.overrides
1047
1088
  }
1048
1089
  ];
@@ -1058,23 +1099,7 @@ var unocss = (options = {}) => [
1058
1099
  "unocss/order": "error",
1059
1100
  // We don't use this
1060
1101
  "unocss/order-attributify": "off",
1061
- // Overrides built-in rules
1062
- ...options.overrides
1063
- }
1064
- }
1065
- ];
1066
-
1067
- // src/configs/vitest.ts
1068
- var vitest = (options = {}) => [
1069
- {
1070
- name: "ntnyq/vitest",
1071
- plugins: {
1072
- vitest: import_eslint_plugin2.default
1073
- },
1074
- files: [GLOB_TEST],
1075
- rules: {
1076
- ...import_eslint_plugin2.default.configs.recommended.rules,
1077
- // Overrides built-in rules
1102
+ // Overrides rules
1078
1103
  ...options.overrides
1079
1104
  }
1080
1105
  }
@@ -1126,7 +1151,7 @@ var imports = (options = {}) => [
1126
1151
  "import/no-duplicates": "error",
1127
1152
  "import/no-mutable-exports": "error",
1128
1153
  "import/newline-after-import": "error",
1129
- // Overrides built-in rules
1154
+ // Overrides rules
1130
1155
  ...options.overrides
1131
1156
  }
1132
1157
  }
@@ -1204,7 +1229,7 @@ var unicorn = (options = {}) => [
1204
1229
  "unicorn/prefer-array-some": "error",
1205
1230
  "unicorn/prefer-array-flat-map": "error",
1206
1231
  "unicorn/prefer-array-index-of": "error",
1207
- // Overrides built-in rules
1232
+ // Overrides rules
1208
1233
  ...options.overrides
1209
1234
  }
1210
1235
  }
@@ -1240,7 +1265,7 @@ var comments = (options = {}) => [
1240
1265
  rules: {
1241
1266
  ...import_eslint_plugin_eslint_comments.default.configs.recommended.rules,
1242
1267
  "@eslint-community/eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }],
1243
- // Overrides built-in rules
1268
+ // Overrides rules
1244
1269
  ...options.overrides
1245
1270
  }
1246
1271
  }
@@ -1278,7 +1303,7 @@ var markdown = (options = {}) => {
1278
1303
  "@typescript-eslint/no-use-before-define": "off",
1279
1304
  "@typescript-eslint/no-unused-expressions": "off",
1280
1305
  "@typescript-eslint/consistent-type-imports": "off",
1281
- // Overrides built-in rules
1306
+ // Overrides rules
1282
1307
  ...options.overrides
1283
1308
  }
1284
1309
  }
@@ -1332,7 +1357,7 @@ var prettier = (options = {}) => [
1332
1357
  "vue/template-curly-spacing": "off",
1333
1358
  ...import_eslint_plugin_prettier.default.configs.recommended.rules,
1334
1359
  "prettier/prettier": options.level || "warn",
1335
- // Overrides built-in rules
1360
+ // Overrides rules
1336
1361
  ...options.overrides
1337
1362
  }
1338
1363
  },
@@ -1567,22 +1592,15 @@ var javascript = (options = {}) => {
1567
1592
  {
1568
1593
  functions: false,
1569
1594
  classes: false,
1570
- variables: true
1595
+ variables: true,
1596
+ allowNamedExports: false
1571
1597
  }
1572
1598
  ],
1573
1599
  // Strict rules
1574
1600
  ...options.strict ? strictRules : {},
1575
- // Overrides built-in rules
1601
+ // Overrides rules
1576
1602
  ...options.overrides
1577
1603
  }
1578
- },
1579
- {
1580
- name: "ntnyq/js/test",
1581
- files: ["**/*.{test,spec}.js?(x)"],
1582
- rules: {
1583
- "no-unused-expressions": "off",
1584
- "max-lines-per-function": "off"
1585
- }
1586
1604
  }
1587
1605
  ];
1588
1606
  };
@@ -1680,7 +1698,7 @@ var perfectionist = (options = {}) => [
1680
1698
  groupKind: "values-first"
1681
1699
  }
1682
1700
  ],
1683
- // Overrides built-in rules
1701
+ // Overrides rules
1684
1702
  ...options.overrides
1685
1703
  }
1686
1704
  }
@@ -1709,7 +1727,7 @@ var unusedImports = (options = {}) => [
1709
1727
  caughtErrorsIgnorePattern: "^_"
1710
1728
  }
1711
1729
  ],
1712
- // Overrides built-in rules
1730
+ // Overrides rules
1713
1731
  ...options.overrides
1714
1732
  }
1715
1733
  }
@@ -1864,10 +1882,13 @@ function ntnyq(options = {}, userConfigs = []) {
1864
1882
  })
1865
1883
  );
1866
1884
  }
1867
- if (options.vitest ?? hasVitest) {
1885
+ if (options.test ?? hasVitest) {
1868
1886
  configs.push(
1887
+ ...test({
1888
+ overrides: getOverrides(options, "test")
1889
+ }),
1869
1890
  ...vitest({
1870
- overrides: getOverrides(options, "vitest")
1891
+ overrides: getOverrides(options, "test")
1871
1892
  })
1872
1893
  );
1873
1894
  }
@@ -1984,6 +2005,7 @@ function ntnyq(options = {}, userConfigs = []) {
1984
2005
  sortI18nLocale,
1985
2006
  sortPackageJson,
1986
2007
  sortTsConfig,
2008
+ test,
1987
2009
  toArray,
1988
2010
  toml,
1989
2011
  tseslint,
package/dist/index.d.cts CHANGED
@@ -780,6 +780,11 @@ interface RuleOptions {
780
780
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
781
781
  */
782
782
  'antfu/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>;
783
+ /**
784
+ * Prevent using top-level await
785
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.test.ts
786
+ */
787
+ 'antfu/no-top-level-await'?: Linter.RuleEntry<[]>;
783
788
  /**
784
789
  * Do not use `exports =`
785
790
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
@@ -12206,7 +12211,7 @@ type Yoda = [] | [("always" | "never")] | [
12206
12211
  onlyEquality?: boolean;
12207
12212
  }
12208
12213
  ];
12209
- type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/gitignore' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/js/test' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/disabled/code-blocks' | 'ntnyq/node' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/regexp' | 'ntnyq/perfectionist' | 'ntnyq/sort/package-json' | 'ntnyq/sort/tsconfig' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/ts/dts' | 'ntnyq/ts/test' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/vue/ts' | 'ntnyq/vue/core' | 'ntnyq/yaml' | 'ntnyq/toml';
12214
+ type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/gitignore' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/disabled/code-blocks' | 'ntnyq/node' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/regexp' | 'ntnyq/perfectionist' | 'ntnyq/sort/package-json' | 'ntnyq/sort/tsconfig' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/vue/ts' | 'ntnyq/vue/core' | 'ntnyq/yaml' | 'ntnyq/toml';
12210
12215
 
12211
12216
  /**
12212
12217
  * Typed flat config item
@@ -12319,7 +12324,11 @@ interface ConfigVueOptions extends OptionsOverrides {
12319
12324
  */
12320
12325
  vueVersion?: 2 | 3;
12321
12326
  }
12322
- interface ConfigVitestOptions extends OptionsOverrides {
12327
+ interface ConfigTestOptions extends OptionsOverrides {
12328
+ /**
12329
+ * Rules for vitest
12330
+ */
12331
+ overridesVitestRules?: TypedConfigItem['rules'];
12323
12332
  }
12324
12333
  interface ConfigUnusedImportsOptions extends OptionsOverrides {
12325
12334
  }
@@ -12357,7 +12366,7 @@ interface ConfigOptions {
12357
12366
  markdown?: boolean | ConfigMarkdownOptions;
12358
12367
  toml?: boolean | ConfigTomlOptions;
12359
12368
  vue?: boolean | ConfigVueOptions;
12360
- vitest?: boolean | ConfigVitestOptions;
12369
+ test?: boolean | ConfigTestOptions;
12361
12370
  }
12362
12371
 
12363
12372
  /**
@@ -12379,7 +12388,7 @@ declare const GLOB_JSX = "**/*.?([cm])jsx";
12379
12388
  declare const GLOB_TS = "**/*.?([cm])ts";
12380
12389
  declare const GLOB_TSX = "**/*.?([cm])tsx";
12381
12390
  declare const GLOB_DTS = "**/*.d.?([cm])ts";
12382
- declare const GLOB_TEST = "**/*.{test,spec,bench,benchmark}.?([cm])[jt]s?(x)";
12391
+ declare const GLOB_TEST: string[];
12383
12392
  declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
12384
12393
  declare const GLOB_CSS = "**/*.css";
12385
12394
  declare const GLOB_LESS = "**/*.less";
@@ -12437,6 +12446,9 @@ declare const sortI18nLocale: () => TypedConfigItem[];
12437
12446
 
12438
12447
  declare const toml: (options?: ConfigTomlOptions) => TypedConfigItem[];
12439
12448
 
12449
+ declare const test: (options?: ConfigTestOptions) => TypedConfigItem[];
12450
+ declare const vitest: (options?: ConfigTestOptions) => TypedConfigItem[];
12451
+
12440
12452
  declare const antfu: (options?: ConfigAntfuOptions) => TypedConfigItem[];
12441
12453
 
12442
12454
  declare const jsdoc: (options?: ConfigJsdocOptions) => TypedConfigItem[];
@@ -12447,8 +12459,6 @@ declare const regexp: (options?: ConfigRegexpOptions) => TypedConfigItem[];
12447
12459
 
12448
12460
  declare const unocss: (options?: ConfigUnoCSSOptions) => TypedConfigItem[];
12449
12461
 
12450
- declare const vitest: (options?: ConfigVitestOptions) => TypedConfigItem[];
12451
-
12452
12462
  declare const command: (options?: ConfigCommandOptions) => TypedConfigItem[];
12453
12463
 
12454
12464
  /**
@@ -12480,4 +12490,4 @@ declare const perfectionist: (options?: ConfigPerfectionistOptions) => TypedConf
12480
12490
 
12481
12491
  declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConfigItem[];
12482
12492
 
12483
- export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVitestOptions, type ConfigVueOptions, type ConfigYmlOptions, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type LiteralUnion, type OptionsFiles, type OptionsOverrides, type ParserOptions, type PerfectionistSortOrder, type PerfectionistSortType, type ResolvedOptions, type RuleOptions, type TypedConfigItem, antfu, command, comments, disables, getOverrides, gitignore, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, resolveSubOptions, sortI18nLocale, sortPackageJson, sortTsConfig, toArray, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
12493
+ export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type LiteralUnion, type OptionsFiles, type OptionsOverrides, type ParserOptions, type PerfectionistSortOrder, type PerfectionistSortType, type ResolvedOptions, type RuleOptions, type TypedConfigItem, antfu, command, comments, disables, getOverrides, gitignore, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, resolveSubOptions, sortI18nLocale, sortPackageJson, sortTsConfig, test, toArray, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
package/dist/index.d.ts CHANGED
@@ -780,6 +780,11 @@ interface RuleOptions {
780
780
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
781
781
  */
782
782
  'antfu/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>;
783
+ /**
784
+ * Prevent using top-level await
785
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.test.ts
786
+ */
787
+ 'antfu/no-top-level-await'?: Linter.RuleEntry<[]>;
783
788
  /**
784
789
  * Do not use `exports =`
785
790
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
@@ -12206,7 +12211,7 @@ type Yoda = [] | [("always" | "never")] | [
12206
12211
  onlyEquality?: boolean;
12207
12212
  }
12208
12213
  ];
12209
- type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/gitignore' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/js/test' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/disabled/code-blocks' | 'ntnyq/node' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/regexp' | 'ntnyq/perfectionist' | 'ntnyq/sort/package-json' | 'ntnyq/sort/tsconfig' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/ts/dts' | 'ntnyq/ts/test' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/vue/ts' | 'ntnyq/vue/core' | 'ntnyq/yaml' | 'ntnyq/toml';
12214
+ type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/gitignore' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/disabled/code-blocks' | 'ntnyq/node' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/regexp' | 'ntnyq/perfectionist' | 'ntnyq/sort/package-json' | 'ntnyq/sort/tsconfig' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/vue/ts' | 'ntnyq/vue/core' | 'ntnyq/yaml' | 'ntnyq/toml';
12210
12215
 
12211
12216
  /**
12212
12217
  * Typed flat config item
@@ -12319,7 +12324,11 @@ interface ConfigVueOptions extends OptionsOverrides {
12319
12324
  */
12320
12325
  vueVersion?: 2 | 3;
12321
12326
  }
12322
- interface ConfigVitestOptions extends OptionsOverrides {
12327
+ interface ConfigTestOptions extends OptionsOverrides {
12328
+ /**
12329
+ * Rules for vitest
12330
+ */
12331
+ overridesVitestRules?: TypedConfigItem['rules'];
12323
12332
  }
12324
12333
  interface ConfigUnusedImportsOptions extends OptionsOverrides {
12325
12334
  }
@@ -12357,7 +12366,7 @@ interface ConfigOptions {
12357
12366
  markdown?: boolean | ConfigMarkdownOptions;
12358
12367
  toml?: boolean | ConfigTomlOptions;
12359
12368
  vue?: boolean | ConfigVueOptions;
12360
- vitest?: boolean | ConfigVitestOptions;
12369
+ test?: boolean | ConfigTestOptions;
12361
12370
  }
12362
12371
 
12363
12372
  /**
@@ -12379,7 +12388,7 @@ declare const GLOB_JSX = "**/*.?([cm])jsx";
12379
12388
  declare const GLOB_TS = "**/*.?([cm])ts";
12380
12389
  declare const GLOB_TSX = "**/*.?([cm])tsx";
12381
12390
  declare const GLOB_DTS = "**/*.d.?([cm])ts";
12382
- declare const GLOB_TEST = "**/*.{test,spec,bench,benchmark}.?([cm])[jt]s?(x)";
12391
+ declare const GLOB_TEST: string[];
12383
12392
  declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
12384
12393
  declare const GLOB_CSS = "**/*.css";
12385
12394
  declare const GLOB_LESS = "**/*.less";
@@ -12437,6 +12446,9 @@ declare const sortI18nLocale: () => TypedConfigItem[];
12437
12446
 
12438
12447
  declare const toml: (options?: ConfigTomlOptions) => TypedConfigItem[];
12439
12448
 
12449
+ declare const test: (options?: ConfigTestOptions) => TypedConfigItem[];
12450
+ declare const vitest: (options?: ConfigTestOptions) => TypedConfigItem[];
12451
+
12440
12452
  declare const antfu: (options?: ConfigAntfuOptions) => TypedConfigItem[];
12441
12453
 
12442
12454
  declare const jsdoc: (options?: ConfigJsdocOptions) => TypedConfigItem[];
@@ -12447,8 +12459,6 @@ declare const regexp: (options?: ConfigRegexpOptions) => TypedConfigItem[];
12447
12459
 
12448
12460
  declare const unocss: (options?: ConfigUnoCSSOptions) => TypedConfigItem[];
12449
12461
 
12450
- declare const vitest: (options?: ConfigVitestOptions) => TypedConfigItem[];
12451
-
12452
12462
  declare const command: (options?: ConfigCommandOptions) => TypedConfigItem[];
12453
12463
 
12454
12464
  /**
@@ -12480,4 +12490,4 @@ declare const perfectionist: (options?: ConfigPerfectionistOptions) => TypedConf
12480
12490
 
12481
12491
  declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConfigItem[];
12482
12492
 
12483
- export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVitestOptions, type ConfigVueOptions, type ConfigYmlOptions, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type LiteralUnion, type OptionsFiles, type OptionsOverrides, type ParserOptions, type PerfectionistSortOrder, type PerfectionistSortType, type ResolvedOptions, type RuleOptions, type TypedConfigItem, antfu, command, comments, disables, getOverrides, gitignore, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, resolveSubOptions, sortI18nLocale, sortPackageJson, sortTsConfig, toArray, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
12493
+ export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type LiteralUnion, type OptionsFiles, type OptionsOverrides, type ParserOptions, type PerfectionistSortOrder, type PerfectionistSortType, type ResolvedOptions, type RuleOptions, type TypedConfigItem, antfu, command, comments, disables, getOverrides, gitignore, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, resolveSubOptions, sortI18nLocale, sortPackageJson, sortTsConfig, test, toArray, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
package/dist/index.js CHANGED
@@ -5,11 +5,16 @@ import { FlatConfigComposer } from "eslint-flat-config-utils";
5
5
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
6
6
  var GLOB_SRC = `**/*.${GLOB_SRC_EXT}`;
7
7
  var GLOB_JS = "**/*.?([cm])js";
8
- var GLOB_JSX = "**/*.?([cm])jsx";
8
+ var GLOB_JSX = `${GLOB_JS}x`;
9
9
  var GLOB_TS = "**/*.?([cm])ts";
10
- var GLOB_TSX = "**/*.?([cm])tsx";
10
+ var GLOB_TSX = `${GLOB_TS}x`;
11
11
  var GLOB_DTS = "**/*.d.?([cm])ts";
12
- var GLOB_TEST = `**/*.{test,spec,bench,benchmark}.${GLOB_SRC_EXT}`;
12
+ var GLOB_TEST = [
13
+ `**/*.test.${GLOB_SRC_EXT}`,
14
+ `**/*.spec.${GLOB_SRC_EXT}`,
15
+ `**/*.bench.${GLOB_SRC_EXT}`,
16
+ `**/*.benchmark.${GLOB_SRC_EXT}`
17
+ ];
13
18
  var GLOB_STYLE = "**/*.{c,le,sc}ss";
14
19
  var GLOB_CSS = "**/*.css";
15
20
  var GLOB_LESS = "**/*.less";
@@ -136,6 +141,8 @@ var typescriptCore = (options = {}) => {
136
141
  rules: {
137
142
  // Disabled in favor of ts rules
138
143
  "no-redeclare": "off",
144
+ "no-use-before-define": "off",
145
+ "no-unused-vars": "off",
139
146
  "@typescript-eslint/no-redeclare": [
140
147
  "error",
141
148
  {
@@ -143,6 +150,18 @@ var typescriptCore = (options = {}) => {
143
150
  ignoreDeclarationMerge: true
144
151
  }
145
152
  ],
153
+ "@typescript-eslint/no-use-before-define": [
154
+ "error",
155
+ {
156
+ functions: false,
157
+ classes: false,
158
+ variables: true,
159
+ allowNamedExports: false,
160
+ enums: true,
161
+ typedefs: false,
162
+ ignoreTypeReferences: false
163
+ }
164
+ ],
146
165
  "@typescript-eslint/no-unused-vars": [
147
166
  "error",
148
167
  {
@@ -202,7 +221,7 @@ var typescriptCore = (options = {}) => {
202
221
  "@typescript-eslint/explicit-function-return-type": "off",
203
222
  "@typescript-eslint/explicit-module-boundary-types": "off",
204
223
  "@typescript-eslint/consistent-indexed-object-style": "off",
205
- // Overrides built-in rules
224
+ // Overrides rules
206
225
  ...options.overrides
207
226
  }
208
227
  });
@@ -211,21 +230,14 @@ var typescriptCore = (options = {}) => {
211
230
  var typescript = (options = {}) => [
212
231
  ...typescriptCore(options),
213
232
  {
214
- name: "ntnyq/ts/dts",
233
+ name: "ntnyq/ts/types",
215
234
  files: [GLOB_DTS, "**/types/**/*.ts"],
216
235
  rules: {
217
236
  "no-use-before-define": "off",
218
237
  "no-restricted-syntax": "off",
219
238
  "import/no-duplicates": "off",
220
- "import/newline-after-import": "off"
221
- }
222
- },
223
- {
224
- name: "ntnyq/ts/test",
225
- files: ["**/*.{spec,test}.ts?(x)"],
226
- rules: {
227
- "no-unused-expressions": "off",
228
- "max-lines-per-function": "off"
239
+ "import/newline-after-import": "off",
240
+ "@typescript-eslint/no-use-before-define": "off"
229
241
  }
230
242
  }
231
243
  ];
@@ -498,7 +510,7 @@ var vue = (options = {}) => {
498
510
  multiline: 1
499
511
  }
500
512
  ],
501
- // Overrides built-in rules
513
+ // Overrides rules
502
514
  ...options.overrides
503
515
  }
504
516
  }
@@ -521,7 +533,7 @@ var yml = (options = {}) => [
521
533
  ...default4.configs.prettier.rules,
522
534
  "yml/no-empty-mapping-value": "off",
523
535
  "yml/quotes": ["error", { avoidEscape: false, prefer: "single" }],
524
- // Overrides built-in rules
536
+ // Overrides rules
525
537
  ...options.overrides
526
538
  }
527
539
  }
@@ -543,7 +555,7 @@ var node = (options = {}) => [
543
555
  "node/prefer-global/buffer": ["error", "never"],
544
556
  "node/prefer-global/process": ["error", "never"],
545
557
  "node/process-exit-as-throw": "error",
546
- // Overrides built-in rules
558
+ // Overrides rules
547
559
  ...options.overrides
548
560
  }
549
561
  }
@@ -813,11 +825,39 @@ var toml = (options = {}) => [
813
825
  "toml/quoted-keys": "error",
814
826
  "toml/spaced-comment": "error",
815
827
  "toml/table-bracket-spacing": "error",
816
- // Overrides built-in rules
828
+ // Overrides rules
829
+ ...options.overrides
830
+ }
831
+ }
832
+ ];
833
+
834
+ // src/configs/test.ts
835
+ var test = (options = {}) => [
836
+ {
837
+ name: "ntnyq/test",
838
+ files: [...GLOB_TEST],
839
+ rules: {
840
+ "no-unused-expressions": "off",
841
+ "max-lines-per-function": "off",
842
+ // Overrides rules
817
843
  ...options.overrides
818
844
  }
819
845
  }
820
846
  ];
847
+ var vitest = (options = {}) => [
848
+ {
849
+ name: "ntnyq/vitest",
850
+ plugins: {
851
+ vitest: default11
852
+ },
853
+ files: [...GLOB_TEST],
854
+ rules: {
855
+ ...default11.configs.recommended.rules,
856
+ // Overrides rules
857
+ ...options.overridesVitestRules
858
+ }
859
+ }
860
+ ];
821
861
 
822
862
  // src/configs/antfu.ts
823
863
  var antfu = (options = {}) => [
@@ -861,7 +901,7 @@ var jsdoc = (options = {}) => [
861
901
  "jsdoc/require-yields-check": "warn",
862
902
  "jsdoc/check-alignment": "warn",
863
903
  "jsdoc/multiline-blocks": "warn",
864
- // Overrides built-in rules
904
+ // Overrides rules
865
905
  ...options.overrides
866
906
  }
867
907
  }
@@ -906,7 +946,7 @@ var jsonc = (options = {}) => [
906
946
  allowMultiplePropertiesPerLine: true
907
947
  }
908
948
  ],
909
- // Overrides built-in rules
949
+ // Overrides rules
910
950
  ...options.overrides
911
951
  }
912
952
  }
@@ -920,7 +960,7 @@ var regexp = (options = {}) => [
920
960
  {
921
961
  name: "ntnyq/regexp",
922
962
  ...pluginRegexp.configs["flat/recommended"],
923
- // Overrides built-in rules
963
+ // Overrides rules
924
964
  ...options.overrides
925
965
  }
926
966
  ];
@@ -936,23 +976,7 @@ var unocss = (options = {}) => [
936
976
  "unocss/order": "error",
937
977
  // We don't use this
938
978
  "unocss/order-attributify": "off",
939
- // Overrides built-in rules
940
- ...options.overrides
941
- }
942
- }
943
- ];
944
-
945
- // src/configs/vitest.ts
946
- var vitest = (options = {}) => [
947
- {
948
- name: "ntnyq/vitest",
949
- plugins: {
950
- vitest: default11
951
- },
952
- files: [GLOB_TEST],
953
- rules: {
954
- ...default11.configs.recommended.rules,
955
- // Overrides built-in rules
979
+ // Overrides rules
956
980
  ...options.overrides
957
981
  }
958
982
  }
@@ -1004,7 +1028,7 @@ var imports = (options = {}) => [
1004
1028
  "import/no-duplicates": "error",
1005
1029
  "import/no-mutable-exports": "error",
1006
1030
  "import/newline-after-import": "error",
1007
- // Overrides built-in rules
1031
+ // Overrides rules
1008
1032
  ...options.overrides
1009
1033
  }
1010
1034
  }
@@ -1082,7 +1106,7 @@ var unicorn = (options = {}) => [
1082
1106
  "unicorn/prefer-array-some": "error",
1083
1107
  "unicorn/prefer-array-flat-map": "error",
1084
1108
  "unicorn/prefer-array-index-of": "error",
1085
- // Overrides built-in rules
1109
+ // Overrides rules
1086
1110
  ...options.overrides
1087
1111
  }
1088
1112
  }
@@ -1118,7 +1142,7 @@ var comments = (options = {}) => [
1118
1142
  rules: {
1119
1143
  ...default17.configs.recommended.rules,
1120
1144
  "@eslint-community/eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }],
1121
- // Overrides built-in rules
1145
+ // Overrides rules
1122
1146
  ...options.overrides
1123
1147
  }
1124
1148
  }
@@ -1156,7 +1180,7 @@ var markdown = (options = {}) => {
1156
1180
  "@typescript-eslint/no-use-before-define": "off",
1157
1181
  "@typescript-eslint/no-unused-expressions": "off",
1158
1182
  "@typescript-eslint/consistent-type-imports": "off",
1159
- // Overrides built-in rules
1183
+ // Overrides rules
1160
1184
  ...options.overrides
1161
1185
  }
1162
1186
  }
@@ -1210,7 +1234,7 @@ var prettier = (options = {}) => [
1210
1234
  "vue/template-curly-spacing": "off",
1211
1235
  ...default14.configs.recommended.rules,
1212
1236
  "prettier/prettier": options.level || "warn",
1213
- // Overrides built-in rules
1237
+ // Overrides rules
1214
1238
  ...options.overrides
1215
1239
  }
1216
1240
  },
@@ -1445,22 +1469,15 @@ var javascript = (options = {}) => {
1445
1469
  {
1446
1470
  functions: false,
1447
1471
  classes: false,
1448
- variables: true
1472
+ variables: true,
1473
+ allowNamedExports: false
1449
1474
  }
1450
1475
  ],
1451
1476
  // Strict rules
1452
1477
  ...options.strict ? strictRules : {},
1453
- // Overrides built-in rules
1478
+ // Overrides rules
1454
1479
  ...options.overrides
1455
1480
  }
1456
- },
1457
- {
1458
- name: "ntnyq/js/test",
1459
- files: ["**/*.{test,spec}.js?(x)"],
1460
- rules: {
1461
- "no-unused-expressions": "off",
1462
- "max-lines-per-function": "off"
1463
- }
1464
1481
  }
1465
1482
  ];
1466
1483
  };
@@ -1558,7 +1575,7 @@ var perfectionist = (options = {}) => [
1558
1575
  groupKind: "values-first"
1559
1576
  }
1560
1577
  ],
1561
- // Overrides built-in rules
1578
+ // Overrides rules
1562
1579
  ...options.overrides
1563
1580
  }
1564
1581
  }
@@ -1587,7 +1604,7 @@ var unusedImports = (options = {}) => [
1587
1604
  caughtErrorsIgnorePattern: "^_"
1588
1605
  }
1589
1606
  ],
1590
- // Overrides built-in rules
1607
+ // Overrides rules
1591
1608
  ...options.overrides
1592
1609
  }
1593
1610
  }
@@ -1742,10 +1759,13 @@ function ntnyq(options = {}, userConfigs = []) {
1742
1759
  })
1743
1760
  );
1744
1761
  }
1745
- if (options.vitest ?? hasVitest) {
1762
+ if (options.test ?? hasVitest) {
1746
1763
  configs.push(
1764
+ ...test({
1765
+ overrides: getOverrides(options, "test")
1766
+ }),
1747
1767
  ...vitest({
1748
- overrides: getOverrides(options, "vitest")
1768
+ overrides: getOverrides(options, "test")
1749
1769
  })
1750
1770
  );
1751
1771
  }
@@ -1861,6 +1881,7 @@ export {
1861
1881
  sortI18nLocale,
1862
1882
  sortPackageJson,
1863
1883
  sortTsConfig,
1884
+ test,
1864
1885
  toArray,
1865
1886
  toml,
1866
1887
  tseslint,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "3.0.0-beta.14",
5
- "packageManager": "pnpm@9.10.0",
4
+ "version": "3.0.0-beta.15",
5
+ "packageManager": "pnpm@9.11.0",
6
6
  "description": "An opinionated ESLint config preset of ntnyq",
7
7
  "keywords": [
8
8
  "eslint",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
59
- "@eslint/js": "^9.10.0",
59
+ "@eslint/js": "^9.11.0",
60
60
  "@eslint/markdown": "^6.1.0",
61
61
  "@types/eslint__js": "^8.42.3",
62
62
  "@unocss/eslint-plugin": "^0.62.4",
@@ -64,7 +64,7 @@
64
64
  "eslint-config-flat-gitignore": "^0.3.0",
65
65
  "eslint-flat-config-utils": "^0.4.0",
66
66
  "eslint-merge-processors": "^0.1.0",
67
- "eslint-plugin-antfu": "^2.6.0",
67
+ "eslint-plugin-antfu": "^2.7.0",
68
68
  "eslint-plugin-command": "^0.2.5",
69
69
  "eslint-plugin-import-x": "^4.2.1",
70
70
  "eslint-plugin-jsdoc": "^50.2.4",
@@ -91,7 +91,7 @@
91
91
  "@ntnyq/prettier-config": "^1.21.3",
92
92
  "@types/node": "^22.5.5",
93
93
  "bumpp": "^9.5.2",
94
- "eslint": "^9.10.0",
94
+ "eslint": "^9.11.0",
95
95
  "eslint-typegen": "^0.3.2",
96
96
  "husky": "^9.1.6",
97
97
  "jiti": "^1.21.6",
@@ -101,7 +101,7 @@
101
101
  "tsup": "^8.3.0",
102
102
  "tsx": "^4.19.1",
103
103
  "typescript": "^5.6.2",
104
- "zx": "^8.1.7"
104
+ "zx": "^8.1.8"
105
105
  },
106
106
  "engines": {
107
107
  "node": ">=18.18.0"