@whoj/eslint-config 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -209,7 +209,7 @@ async function astro(options = {}) {
209
209
  ]);
210
210
  return [
211
211
  {
212
- name: "antfu/astro/setup",
212
+ name: "whoj/astro/setup",
213
213
  plugins: {
214
214
  astro: pluginAstro
215
215
  }
@@ -225,12 +225,9 @@ async function astro(options = {}) {
225
225
  },
226
226
  sourceType: "module"
227
227
  },
228
- name: "antfu/astro/rules",
228
+ name: "whoj/astro/rules",
229
229
  processor: "astro/client-side-ts",
230
230
  rules: {
231
- // Astro uses top level await for e.g. data fetching
232
- // https://docs.astro.build/en/guides/data-fetching/#fetch-in-astro
233
- "antfu/no-top-level-await": "off",
234
231
  // use recommended rules
235
232
  "astro/missing-client-only-directive-value": "error",
236
233
  "astro/no-conflict-set-directives": "error",
@@ -242,6 +239,9 @@ async function astro(options = {}) {
242
239
  "astro/no-unused-define-vars-in-style": "error",
243
240
  "astro/semi": "off",
244
241
  "astro/valid-compile": "error",
242
+ // Astro uses top level await for e.g. data fetching
243
+ // https://docs.astro.build/en/guides/data-fetching/#fetch-in-astro
244
+ "whoj/no-top-level-await": "off",
245
245
  ...stylistic2 ? {
246
246
  "style/indent": "off",
247
247
  "style/jsx-closing-tag-location": "off",
@@ -261,7 +261,7 @@ async function command() {
261
261
  return [
262
262
  {
263
263
  ...createCommand(),
264
- name: "antfu/command/rules"
264
+ name: "whoj/command/rules"
265
265
  }
266
266
  ];
267
267
  }
@@ -283,7 +283,7 @@ import { default as default7 } from "eslint-plugin-unused-imports";
283
283
  async function comments() {
284
284
  return [
285
285
  {
286
- name: "antfu/eslint-comments/rules",
286
+ name: "whoj/eslint-comments/rules",
287
287
  plugins: {
288
288
  "eslint-comments": default2
289
289
  },
@@ -303,32 +303,32 @@ async function disables() {
303
303
  return [
304
304
  {
305
305
  files: [`**/scripts/${GLOB_SRC}`],
306
- name: "antfu/disables/scripts",
306
+ name: "whoj/disables/scripts",
307
307
  rules: {
308
- "antfu/no-top-level-await": "off",
309
308
  "no-console": "off",
310
- "ts/explicit-function-return-type": "off"
309
+ "ts/explicit-function-return-type": "off",
310
+ "whoj/no-top-level-await": "off"
311
311
  }
312
312
  },
313
313
  {
314
314
  files: [`**/cli/${GLOB_SRC}`, `**/cli.${GLOB_SRC_EXT}`],
315
- name: "antfu/disables/cli",
315
+ name: "whoj/disables/cli",
316
316
  rules: {
317
- "antfu/no-top-level-await": "off",
318
- "no-console": "off"
317
+ "no-console": "off",
318
+ "whoj/no-top-level-await": "off"
319
319
  }
320
320
  },
321
321
  {
322
322
  files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
323
- name: "antfu/disables/bin",
323
+ name: "whoj/disables/bin",
324
324
  rules: {
325
- "antfu/no-import-dist": "off",
326
- "antfu/no-import-node-modules-by-path": "off"
325
+ "whoj/no-import-dist": "off",
326
+ "whoj/no-import-node-modules-by-path": "off"
327
327
  }
328
328
  },
329
329
  {
330
330
  files: ["**/*.d.?([cm])ts"],
331
- name: "antfu/disables/dts",
331
+ name: "whoj/disables/dts",
332
332
  rules: {
333
333
  "eslint-comments/no-unlimited-disable": "off",
334
334
  "import/no-duplicates": "off",
@@ -338,18 +338,18 @@ async function disables() {
338
338
  },
339
339
  {
340
340
  files: ["**/*.js", "**/*.cjs"],
341
- name: "antfu/disables/cjs",
341
+ name: "whoj/disables/cjs",
342
342
  rules: {
343
343
  "ts/no-require-imports": "off"
344
344
  }
345
345
  },
346
346
  {
347
347
  files: [`**/*.config.${GLOB_SRC_EXT}`, `**/*.config.*.${GLOB_SRC_EXT}`],
348
- name: "antfu/disables/config-files",
348
+ name: "whoj/disables/config-files",
349
349
  rules: {
350
- "antfu/no-top-level-await": "off",
351
350
  "no-console": "off",
352
- "ts/explicit-function-return-type": "off"
351
+ "ts/explicit-function-return-type": "off",
352
+ "whoj/no-top-level-await": "off"
353
353
  }
354
354
  }
355
355
  ];
@@ -390,21 +390,21 @@ async function stylistic(options = {}) {
390
390
  });
391
391
  return [
392
392
  {
393
- name: "antfu/stylistic/rules",
393
+ name: "whoj/stylistic/rules",
394
394
  plugins: {
395
- antfu: default3,
396
- style: pluginStylistic
395
+ style: pluginStylistic,
396
+ whoj: default3
397
397
  },
398
398
  rules: {
399
399
  ...config.rules,
400
- "antfu/consistent-chaining": "error",
401
- "antfu/consistent-list-newline": "error",
400
+ "whoj/consistent-chaining": "error",
401
+ "whoj/consistent-list-newline": "error",
402
402
  ...lessOpinionated ? {
403
403
  curly: ["error", "all"]
404
404
  } : {
405
- "antfu/curly": "error",
406
- "antfu/if-newline": "error",
407
- "antfu/top-level-function": "error"
405
+ "whoj/curly": "error",
406
+ "whoj/if-newline": "error",
407
+ "whoj/top-level-function": "error"
408
408
  },
409
409
  ...overrides
410
410
  }
@@ -482,7 +482,7 @@ async function formatters(options = {}, stylistic2 = {}) {
482
482
  const pluginFormat = await interopDefault(import("eslint-plugin-format"));
483
483
  const configs2 = [
484
484
  {
485
- name: "antfu/formatter/setup",
485
+ name: "whoj/formatter/setup",
486
486
  plugins: {
487
487
  format: pluginFormat
488
488
  }
@@ -495,7 +495,7 @@ async function formatters(options = {}, stylistic2 = {}) {
495
495
  languageOptions: {
496
496
  parser: parserPlain
497
497
  },
498
- name: "antfu/formatter/css",
498
+ name: "whoj/formatter/css",
499
499
  rules: {
500
500
  "format/prettier": [
501
501
  "error",
@@ -510,7 +510,7 @@ async function formatters(options = {}, stylistic2 = {}) {
510
510
  languageOptions: {
511
511
  parser: parserPlain
512
512
  },
513
- name: "antfu/formatter/scss",
513
+ name: "whoj/formatter/scss",
514
514
  rules: {
515
515
  "format/prettier": [
516
516
  "error",
@@ -525,7 +525,7 @@ async function formatters(options = {}, stylistic2 = {}) {
525
525
  languageOptions: {
526
526
  parser: parserPlain
527
527
  },
528
- name: "antfu/formatter/less",
528
+ name: "whoj/formatter/less",
529
529
  rules: {
530
530
  "format/prettier": [
531
531
  "error",
@@ -543,7 +543,7 @@ async function formatters(options = {}, stylistic2 = {}) {
543
543
  languageOptions: {
544
544
  parser: parserPlain
545
545
  },
546
- name: "antfu/formatter/html",
546
+ name: "whoj/formatter/html",
547
547
  rules: {
548
548
  "format/prettier": [
549
549
  "error",
@@ -560,7 +560,7 @@ async function formatters(options = {}, stylistic2 = {}) {
560
560
  languageOptions: {
561
561
  parser: parserPlain
562
562
  },
563
- name: "antfu/formatter/xml",
563
+ name: "whoj/formatter/xml",
564
564
  rules: {
565
565
  "format/prettier": [
566
566
  "error",
@@ -580,7 +580,7 @@ async function formatters(options = {}, stylistic2 = {}) {
580
580
  languageOptions: {
581
581
  parser: parserPlain
582
582
  },
583
- name: "antfu/formatter/svg",
583
+ name: "whoj/formatter/svg",
584
584
  rules: {
585
585
  "format/prettier": [
586
586
  "error",
@@ -603,7 +603,7 @@ async function formatters(options = {}, stylistic2 = {}) {
603
603
  languageOptions: {
604
604
  parser: parserPlain
605
605
  },
606
- name: "antfu/formatter/markdown",
606
+ name: "whoj/formatter/markdown",
607
607
  rules: {
608
608
  [`format/${formater}`]: [
609
609
  "error",
@@ -623,7 +623,7 @@ async function formatters(options = {}, stylistic2 = {}) {
623
623
  languageOptions: {
624
624
  parser: parserPlain
625
625
  },
626
- name: "antfu/formatter/slidev",
626
+ name: "whoj/formatter/slidev",
627
627
  rules: {
628
628
  "format/prettier": [
629
629
  "error",
@@ -645,7 +645,7 @@ async function formatters(options = {}, stylistic2 = {}) {
645
645
  languageOptions: {
646
646
  parser: parserPlain
647
647
  },
648
- name: "antfu/formatter/astro",
648
+ name: "whoj/formatter/astro",
649
649
  rules: {
650
650
  "format/prettier": [
651
651
  "error",
@@ -660,7 +660,7 @@ async function formatters(options = {}, stylistic2 = {}) {
660
660
  });
661
661
  configs2.push({
662
662
  files: [GLOB_ASTRO, GLOB_ASTRO_TS],
663
- name: "antfu/formatter/astro/disables",
663
+ name: "whoj/formatter/astro/disables",
664
664
  rules: {
665
665
  "style/arrow-parens": "off",
666
666
  "style/block-spacing": "off",
@@ -678,7 +678,7 @@ async function formatters(options = {}, stylistic2 = {}) {
678
678
  languageOptions: {
679
679
  parser: parserPlain
680
680
  },
681
- name: "antfu/formatter/graphql",
681
+ name: "whoj/formatter/graphql",
682
682
  rules: {
683
683
  "format/prettier": [
684
684
  "error",
@@ -701,7 +701,7 @@ async function ignores(userIgnores = []) {
701
701
  ...GLOB_EXCLUDE,
702
702
  ...userIgnores
703
703
  ],
704
- name: "antfu/ignores"
704
+ name: "whoj/ignores"
705
705
  }
706
706
  ];
707
707
  }
@@ -714,15 +714,12 @@ async function imports(options = {}) {
714
714
  } = options;
715
715
  return [
716
716
  {
717
- name: "antfu/imports/rules",
717
+ name: "whoj/imports/rules",
718
718
  plugins: {
719
- antfu: default3,
720
- import: pluginImport
719
+ import: pluginImport,
720
+ whoj: default3
721
721
  },
722
722
  rules: {
723
- "antfu/import-dedupe": "error",
724
- "antfu/no-import-dist": "error",
725
- "antfu/no-import-node-modules-by-path": "error",
726
723
  "import/consistent-type-specifier-style": ["error", "prefer-top-level"],
727
724
  "import/first": "error",
728
725
  "import/no-duplicates": "error",
@@ -730,6 +727,9 @@ async function imports(options = {}) {
730
727
  "import/no-named-default": "error",
731
728
  "import/no-self-import": "error",
732
729
  "import/no-webpack-loader-syntax": "error",
730
+ "whoj/import-dedupe": "error",
731
+ "whoj/no-import-dist": "error",
732
+ "whoj/no-import-node-modules-by-path": "error",
733
733
  ...stylistic2 ? {
734
734
  "import/newline-after-import": ["error", { count: 1 }]
735
735
  } : {}
@@ -770,17 +770,16 @@ async function javascript(options = {}) {
770
770
  linterOptions: {
771
771
  reportUnusedDisableDirectives: true
772
772
  },
773
- name: "antfu/javascript/setup"
773
+ name: "whoj/javascript/setup"
774
774
  },
775
775
  {
776
- name: "antfu/javascript/rules",
776
+ name: "whoj/javascript/rules",
777
777
  plugins: {
778
- "antfu": default3,
779
- "unused-imports": default7
778
+ "unused-imports": default7,
779
+ "whoj": default3
780
780
  },
781
781
  rules: {
782
782
  "accessor-pairs": ["error", { enforceForClassMembers: true, setWithoutGet: true }],
783
- "antfu/no-top-level-await": "error",
784
783
  "array-callback-return": "error",
785
784
  "block-scoped-var": "error",
786
785
  "constructor-super": "error",
@@ -938,6 +937,7 @@ async function javascript(options = {}) {
938
937
  "use-isnan": ["error", { enforceForIndexOf: true, enforceForSwitchCase: true }],
939
938
  "valid-typeof": ["error", { requireStringLiterals: true }],
940
939
  "vars-on-top": "error",
940
+ "whoj/no-top-level-await": "error",
941
941
  "yoda": ["error", "never"],
942
942
  ...overrides
943
943
  }
@@ -953,7 +953,7 @@ async function jsdoc(options = {}) {
953
953
  } = options;
954
954
  return [
955
955
  {
956
- name: "antfu/jsdoc/rules",
956
+ name: "whoj/jsdoc/rules",
957
957
  plugins: {
958
958
  jsdoc: await interopDefault(import("eslint-plugin-jsdoc"))
959
959
  },
@@ -1002,7 +1002,7 @@ async function jsonc(options = {}) {
1002
1002
  ]);
1003
1003
  return [
1004
1004
  {
1005
- name: "antfu/jsonc/setup",
1005
+ name: "whoj/jsonc/setup",
1006
1006
  plugins: {
1007
1007
  jsonc: pluginJsonc
1008
1008
  }
@@ -1012,7 +1012,7 @@ async function jsonc(options = {}) {
1012
1012
  languageOptions: {
1013
1013
  parser: parserJsonc
1014
1014
  },
1015
- name: "antfu/jsonc/rules",
1015
+ name: "whoj/jsonc/rules",
1016
1016
  rules: {
1017
1017
  "jsonc/no-bigint-literals": "error",
1018
1018
  "jsonc/no-binary-expression": "error",
@@ -1071,7 +1071,7 @@ async function jsx() {
1071
1071
  }
1072
1072
  }
1073
1073
  },
1074
- name: "antfu/jsx/setup"
1074
+ name: "whoj/jsx/setup"
1075
1075
  }
1076
1076
  ];
1077
1077
  }
@@ -1088,7 +1088,7 @@ async function markdown(options = {}) {
1088
1088
  const markdown2 = await interopDefault(import("@eslint/markdown"));
1089
1089
  return [
1090
1090
  {
1091
- name: "antfu/markdown/setup",
1091
+ name: "whoj/markdown/setup",
1092
1092
  plugins: {
1093
1093
  markdown: markdown2
1094
1094
  }
@@ -1096,7 +1096,7 @@ async function markdown(options = {}) {
1096
1096
  {
1097
1097
  files,
1098
1098
  ignores: [GLOB_MARKDOWN_IN_MARKDOWN],
1099
- name: "antfu/markdown/processor",
1099
+ name: "whoj/markdown/processor",
1100
1100
  // `eslint-plugin-markdown` only creates virtual files for code blocks,
1101
1101
  // but not the markdown file itself. We use `eslint-merge-processors` to
1102
1102
  // add a pass-through processor for the markdown file itself.
@@ -1110,7 +1110,7 @@ async function markdown(options = {}) {
1110
1110
  languageOptions: {
1111
1111
  parser: parserPlain
1112
1112
  },
1113
- name: "antfu/markdown/parser"
1113
+ name: "whoj/markdown/parser"
1114
1114
  },
1115
1115
  {
1116
1116
  files: [
@@ -1124,9 +1124,8 @@ async function markdown(options = {}) {
1124
1124
  }
1125
1125
  }
1126
1126
  },
1127
- name: "antfu/markdown/disables",
1127
+ name: "whoj/markdown/disables",
1128
1128
  rules: {
1129
- "antfu/no-top-level-await": "off",
1130
1129
  "import/newline-after-import": "off",
1131
1130
  "no-alert": "off",
1132
1131
  "no-console": "off",
@@ -1151,6 +1150,7 @@ async function markdown(options = {}) {
1151
1150
  "unicode-bom": "off",
1152
1151
  "unused-imports/no-unused-imports": "off",
1153
1152
  "unused-imports/no-unused-vars": "off",
1153
+ "whoj/no-top-level-await": "off",
1154
1154
  ...overrides
1155
1155
  }
1156
1156
  }
@@ -1162,7 +1162,7 @@ init_esm_shims();
1162
1162
  async function node() {
1163
1163
  return [
1164
1164
  {
1165
- name: "antfu/node/rules",
1165
+ name: "whoj/node/rules",
1166
1166
  plugins: {
1167
1167
  node: default4
1168
1168
  },
@@ -1185,7 +1185,7 @@ init_esm_shims();
1185
1185
  async function perfectionist() {
1186
1186
  return [
1187
1187
  {
1188
- name: "antfu/perfectionist/setup",
1188
+ name: "whoj/perfectionist/setup",
1189
1189
  plugins: {
1190
1190
  perfectionist: default5
1191
1191
  },
@@ -1260,7 +1260,7 @@ async function react(options = {}) {
1260
1260
  pluginReactHooks,
1261
1261
  pluginReactRefresh
1262
1262
  ] = await Promise.all([
1263
- interopDefault(import("./dist-BE4MFJS4.js")),
1263
+ interopDefault(import("./dist-ZJ2E2ITJ.js")),
1264
1264
  interopDefault(import("./eslint-plugin-react-hooks-BV2CYKDG.js")),
1265
1265
  interopDefault(import("./eslint-plugin-react-refresh-N5P3A37Z.js"))
1266
1266
  ]);
@@ -1271,7 +1271,7 @@ async function react(options = {}) {
1271
1271
  const plugins = pluginReact.configs.all.plugins;
1272
1272
  return [
1273
1273
  {
1274
- name: "antfu/react/setup",
1274
+ name: "whoj/react/setup",
1275
1275
  plugins: {
1276
1276
  "react": plugins["@eslint-react"],
1277
1277
  "react-dom": plugins["@eslint-react/dom"],
@@ -1292,7 +1292,7 @@ async function react(options = {}) {
1292
1292
  },
1293
1293
  sourceType: "module"
1294
1294
  },
1295
- name: "antfu/react/rules",
1295
+ name: "whoj/react/rules",
1296
1296
  rules: {
1297
1297
  // recommended rules from @eslint-react/dom
1298
1298
  "react-dom/no-children-in-void-dom-elements": "warn",
@@ -1393,7 +1393,7 @@ async function react(options = {}) {
1393
1393
  ...isTypeAware ? [{
1394
1394
  files: filesTypeAware,
1395
1395
  ignores: ignoresTypeAware,
1396
- name: "antfu/react/type-aware-rules",
1396
+ name: "whoj/react/type-aware-rules",
1397
1397
  rules: {
1398
1398
  ...typeAwareRules
1399
1399
  }
@@ -1418,7 +1418,7 @@ async function regexp(options = {}) {
1418
1418
  return [
1419
1419
  {
1420
1420
  ...config,
1421
- name: "antfu/regexp/rules",
1421
+ name: "whoj/regexp/rules",
1422
1422
  rules: {
1423
1423
  ...rules,
1424
1424
  ...options.overrides
@@ -1449,7 +1449,7 @@ async function solid(options = {}) {
1449
1449
  ]);
1450
1450
  return [
1451
1451
  {
1452
- name: "antfu/solid/setup",
1452
+ name: "whoj/solid/setup",
1453
1453
  plugins: {
1454
1454
  solid: pluginSolid
1455
1455
  }
@@ -1466,7 +1466,7 @@ async function solid(options = {}) {
1466
1466
  },
1467
1467
  sourceType: "module"
1468
1468
  },
1469
- name: "antfu/solid/rules",
1469
+ name: "whoj/solid/rules",
1470
1470
  rules: {
1471
1471
  // reactivity
1472
1472
  "solid/components-return-once": "warn",
@@ -1510,7 +1510,7 @@ async function sortPackageJson() {
1510
1510
  return [
1511
1511
  {
1512
1512
  files: ["**/package.json"],
1513
- name: "antfu/sort/package-json",
1513
+ name: "whoj/sort/package-json",
1514
1514
  rules: {
1515
1515
  "jsonc/sort-array-values": [
1516
1516
  "error",
@@ -1612,7 +1612,7 @@ function sortTsconfig() {
1612
1612
  return [
1613
1613
  {
1614
1614
  files: ["**/tsconfig.json", "**/tsconfig.*.json"],
1615
- name: "antfu/sort/tsconfig-json",
1615
+ name: "whoj/sort/tsconfig-json",
1616
1616
  rules: {
1617
1617
  "jsonc/sort-keys": [
1618
1618
  "error",
@@ -1754,12 +1754,12 @@ async function svelte(options = {}) {
1754
1754
  pluginSvelte,
1755
1755
  parserSvelte
1756
1756
  ] = await Promise.all([
1757
- interopDefault(import("./lib-7QWIUEWR.js")),
1758
- interopDefault(import("./lib-47EDT2ZH.js"))
1757
+ interopDefault(import("./lib-C6BFP32Q.js")),
1758
+ interopDefault(import("./lib-XQB7MXK6.js"))
1759
1759
  ]);
1760
1760
  return [
1761
1761
  {
1762
- name: "antfu/svelte/setup",
1762
+ name: "whoj/svelte/setup",
1763
1763
  plugins: {
1764
1764
  svelte: pluginSvelte
1765
1765
  }
@@ -1773,7 +1773,7 @@ async function svelte(options = {}) {
1773
1773
  parser: options.typescript ? await interopDefault(import("@typescript-eslint/parser")) : null
1774
1774
  }
1775
1775
  },
1776
- name: "antfu/svelte/rules",
1776
+ name: "whoj/svelte/rules",
1777
1777
  processor: pluginSvelte.processors[".svelte"],
1778
1778
  rules: {
1779
1779
  "import/no-mutable-exports": "off",
@@ -1862,14 +1862,14 @@ async function test(options = {}) {
1862
1862
  };
1863
1863
  return [
1864
1864
  {
1865
- name: "antfu/test/setup",
1865
+ name: "whoj/test/setup",
1866
1866
  plugins: {
1867
1867
  test: _pluginTest
1868
1868
  }
1869
1869
  },
1870
1870
  {
1871
1871
  files,
1872
- name: "antfu/test/rules",
1872
+ name: "whoj/test/rules",
1873
1873
  rules: {
1874
1874
  "test/consistent-test-it": ["error", { fn: "it", withinDescribe: "it" }],
1875
1875
  "test/no-identical-title": "error",
@@ -1879,10 +1879,10 @@ async function test(options = {}) {
1879
1879
  "test/prefer-lowercase-title": "error",
1880
1880
  // Disables
1881
1881
  ...{
1882
- "antfu/no-top-level-await": "off",
1883
1882
  "no-unused-expressions": "off",
1884
1883
  "node/prefer-global/process": "off",
1885
- "ts/explicit-function-return-type": "off"
1884
+ "ts/explicit-function-return-type": "off",
1885
+ "whoj/no-top-level-await": "off"
1886
1886
  },
1887
1887
  ...overrides
1888
1888
  }
@@ -1910,7 +1910,7 @@ async function toml(options = {}) {
1910
1910
  ]);
1911
1911
  return [
1912
1912
  {
1913
- name: "antfu/toml/setup",
1913
+ name: "whoj/toml/setup",
1914
1914
  plugins: {
1915
1915
  toml: pluginToml
1916
1916
  }
@@ -1920,7 +1920,7 @@ async function toml(options = {}) {
1920
1920
  languageOptions: {
1921
1921
  parser: parserToml
1922
1922
  },
1923
- name: "antfu/toml/rules",
1923
+ name: "whoj/toml/rules",
1924
1924
  rules: {
1925
1925
  "style/spaced-comment": "off",
1926
1926
  "toml/comma-style": "error",
@@ -2022,16 +2022,16 @@ async function typescript(options = {}) {
2022
2022
  ...parserOptions
2023
2023
  }
2024
2024
  },
2025
- name: `antfu/typescript/${typeAware ? "type-aware-parser" : "parser"}`
2025
+ name: `whoj/typescript/${typeAware ? "type-aware-parser" : "parser"}`
2026
2026
  };
2027
2027
  }
2028
2028
  return [
2029
2029
  {
2030
2030
  // Install the plugins without globs, so they can be configured separately.
2031
- name: "antfu/typescript/setup",
2031
+ name: "whoj/typescript/setup",
2032
2032
  plugins: {
2033
- antfu: default3,
2034
- ts: pluginTs
2033
+ ts: pluginTs,
2034
+ whoj: default3
2035
2035
  }
2036
2036
  },
2037
2037
  // assign type-aware parser for type-aware files and type-unaware parser for the rest
@@ -2043,7 +2043,7 @@ async function typescript(options = {}) {
2043
2043
  ],
2044
2044
  {
2045
2045
  files,
2046
- name: "antfu/typescript/rules",
2046
+ name: "whoj/typescript/rules",
2047
2047
  rules: {
2048
2048
  ...renameRules(
2049
2049
  pluginTs.configs["eslint-recommended"].overrides[0].rules,
@@ -2100,7 +2100,7 @@ async function typescript(options = {}) {
2100
2100
  ...isTypeAware ? [{
2101
2101
  files: filesTypeAware,
2102
2102
  ignores: ignoresTypeAware,
2103
- name: "antfu/typescript/rules-type-aware",
2103
+ name: "whoj/typescript/rules-type-aware",
2104
2104
  rules: {
2105
2105
  ...typeAwareRules,
2106
2106
  ...overridesTypeAware
@@ -2114,7 +2114,7 @@ init_esm_shims();
2114
2114
  async function unicorn(options = {}) {
2115
2115
  return [
2116
2116
  {
2117
- name: "antfu/unicorn/rules",
2117
+ name: "whoj/unicorn/rules",
2118
2118
  plugins: {
2119
2119
  unicorn: default6
2120
2120
  },
@@ -2158,7 +2158,7 @@ async function unocss(options = {}) {
2158
2158
  ]);
2159
2159
  return [
2160
2160
  {
2161
- name: "antfu/unocss",
2161
+ name: "whoj/unocss",
2162
2162
  plugins: {
2163
2163
  unocss: pluginUnoCSS
2164
2164
  },
@@ -2220,7 +2220,7 @@ async function vue(options = {}) {
2220
2220
  watchEffect: "readonly"
2221
2221
  }
2222
2222
  },
2223
- name: "antfu/vue/setup",
2223
+ name: "whoj/vue/setup",
2224
2224
  plugins: {
2225
2225
  vue: pluginVue
2226
2226
  }
@@ -2238,7 +2238,7 @@ async function vue(options = {}) {
2238
2238
  sourceType: "module"
2239
2239
  }
2240
2240
  },
2241
- name: "antfu/vue/rules",
2241
+ name: "whoj/vue/rules",
2242
2242
  processor: sfcBlocks === false ? pluginVue.processors[".vue"] : mergeProcessors2([
2243
2243
  pluginVue.processors[".vue"],
2244
2244
  processorVueBlocks({
@@ -2260,7 +2260,6 @@ async function vue(options = {}) {
2260
2260
  ...pluginVue.configs["vue3-strongly-recommended"].rules,
2261
2261
  ...pluginVue.configs["vue3-recommended"].rules
2262
2262
  },
2263
- "antfu/no-top-level-await": "off",
2264
2263
  "node/prefer-global/process": "off",
2265
2264
  "ts/explicit-function-return-type": "off",
2266
2265
  "vue/block-order": ["error", {
@@ -2312,6 +2311,7 @@ async function vue(options = {}) {
2312
2311
  "vue/require-prop-types": "off",
2313
2312
  "vue/space-infix-ops": "error",
2314
2313
  "vue/space-unary-ops": ["error", { nonwords: false, words: true }],
2314
+ "whoj/no-top-level-await": "off",
2315
2315
  ...stylistic2 ? {
2316
2316
  "vue/array-bracket-spacing": ["error", "never"],
2317
2317
  "vue/arrow-spacing": ["error", { after: true, before: true }],
@@ -2365,7 +2365,7 @@ async function yaml(options = {}) {
2365
2365
  ]);
2366
2366
  return [
2367
2367
  {
2368
- name: "antfu/yaml/setup",
2368
+ name: "whoj/yaml/setup",
2369
2369
  plugins: {
2370
2370
  yaml: pluginYaml
2371
2371
  }
@@ -2375,7 +2375,7 @@ async function yaml(options = {}) {
2375
2375
  languageOptions: {
2376
2376
  parser: parserYaml
2377
2377
  },
2378
- name: "antfu/yaml/rules",
2378
+ name: "whoj/yaml/rules",
2379
2379
  rules: {
2380
2380
  "style/spaced-comment": "off",
2381
2381
  "yaml/block-mapping": "error",
@@ -2432,7 +2432,7 @@ var defaultPluginRenaming = {
2432
2432
  "vitest": "test",
2433
2433
  "yml": "yaml"
2434
2434
  };
2435
- function antfu(options = {}, ...userConfigs) {
2435
+ function whoj(options = {}, ...userConfigs) {
2436
2436
  const {
2437
2437
  astro: enableAstro = false,
2438
2438
  autoRenamePlugins = true,
@@ -2461,12 +2461,12 @@ function antfu(options = {}, ...userConfigs) {
2461
2461
  if (enableGitignore) {
2462
2462
  if (typeof enableGitignore !== "boolean") {
2463
2463
  configs2.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
2464
- name: "antfu/gitignore",
2464
+ name: "whoj/gitignore",
2465
2465
  ...enableGitignore
2466
2466
  })]));
2467
2467
  } else {
2468
2468
  configs2.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
2469
- name: "antfu/gitignore",
2469
+ name: "whoj/gitignore",
2470
2470
  strict: false
2471
2471
  })]));
2472
2472
  }
@@ -2650,7 +2650,7 @@ function getOverrides(options, key) {
2650
2650
  init_esm_shims();
2651
2651
 
2652
2652
  // src/index.ts
2653
- var index_default = antfu;
2653
+ var index_default = whoj;
2654
2654
  export {
2655
2655
  GLOB_ALL_SRC,
2656
2656
  GLOB_ASTRO,
@@ -2683,7 +2683,6 @@ export {
2683
2683
  GLOB_XML,
2684
2684
  GLOB_YAML,
2685
2685
  StylisticConfigDefaults,
2686
- antfu,
2687
2686
  astro,
2688
2687
  combine,
2689
2688
  command,
@@ -2725,5 +2724,6 @@ export {
2725
2724
  unicorn,
2726
2725
  unocss,
2727
2726
  vue,
2727
+ whoj,
2728
2728
  yaml
2729
2729
  };