@jsse/eslint-config 0.8.7 → 0.9.1

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
@@ -1,4 +1,5 @@
1
1
  import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./rolldown-runtime-DJK8HYOj.js";
2
+ import { t as FIXABLE_RULES_MAP } from "./fixable-rules-map-dNndx2ig.js";
2
3
  import { builtinModules, createRequire } from "node:module";
3
4
  import fs, { realpathSync, statSync } from "node:fs";
4
5
  import process$1 from "node:process";
@@ -27,7 +28,7 @@ import assert from "node:assert";
27
28
  import v8 from "node:v8";
28
29
  import { format, inspect } from "node:util";
29
30
  //#region src/_generated/version.ts
30
- const VERSION = "0.8.7";
31
+ const VERSION = "0.9.1";
31
32
  //#endregion
32
33
  //#region src/globs.ts
33
34
  var globs_exports = /* @__PURE__ */ __exportAll({
@@ -353,7 +354,7 @@ async function importPluginStylistic() {
353
354
  }
354
355
  //#endregion
355
356
  //#region src/configs/antfu.ts
356
- const antfu = async (options) => {
357
+ const antfu = (options) => {
357
358
  return [{
358
359
  files: GLOB_CODE,
359
360
  name: "jsse/antfu",
@@ -373,7 +374,7 @@ const antfu = async (options) => {
373
374
  * Docs: https://eslint-plugin-command.antfu.me/guide/
374
375
  * @returns Typed config arr
375
376
  */
376
- const command = async (options) => {
377
+ const command = (options) => {
377
378
  const config = createCommand();
378
379
  return [{
379
380
  ...config,
@@ -387,7 +388,7 @@ const command = async (options) => {
387
388
  };
388
389
  //#endregion
389
390
  //#region src/configs/de-morgan.ts
390
- const deMorgan = async (options) => {
391
+ const deMorgan = (options) => {
391
392
  return [{
392
393
  ...pluginDeMorgan.configs.recommended,
393
394
  files: GLOB_CODE,
@@ -400,7 +401,7 @@ const deMorgan = async (options) => {
400
401
  };
401
402
  //#endregion
402
403
  //#region src/configs/e18e.ts
403
- async function e18e(options = {}) {
404
+ function e18e(options = {}) {
404
405
  const { isInEditor = false, modernization = true, type = "app", moduleReplacements = type === "lib" && isInEditor, overrides = {}, performanceImprovements = true } = options;
405
406
  const configs = pluginE18e.configs;
406
407
  return [{
@@ -423,7 +424,7 @@ async function e18e(options = {}) {
423
424
  }
424
425
  //#endregion
425
426
  //#region src/configs/eslint-comments.ts
426
- const eslintComments = async () => [{
427
+ const eslintComments = () => [{
427
428
  files: GLOB_CODE,
428
429
  name: "jsse/eslint-comments",
429
430
  plugins: { "eslint-comments": pluginEslintComments },
@@ -451,28 +452,6 @@ const reactHooks = async () => {
451
452
  }];
452
453
  };
453
454
  //#endregion
454
- //#region src/configs/ts/typescript-language-options.ts
455
- function typescriptLanguageOptions(options) {
456
- const { componentExts = [], react, tsconfig } = options;
457
- const tsOptions = tsconfig ? {
458
- project: Array.isArray(tsconfig) ? tsconfig : [tsconfig],
459
- tsconfigRootDir: process$1.cwd()
460
- } : {};
461
- return {
462
- parser: parserTs,
463
- parserOptions: {
464
- ecmaFeatures: react ? {
465
- jsx: true,
466
- modules: true
467
- } : void 0,
468
- extraFileExtensions: componentExts.map((ext) => `.${ext}`),
469
- sourceType: "module",
470
- ...tsOptions,
471
- jsxPragma: react ? "React" : void 0
472
- }
473
- };
474
- }
475
- //#endregion
476
455
  //#region src/configs/eslint-react.ts
477
456
  async function importReactPlugins() {
478
457
  const [pluginReact, pluginReactRefresh] = await Promise.all([interopDefault(import("@eslint-react/eslint-plugin")), interopDefault(import("eslint-plugin-react-refresh"))]);
@@ -482,7 +461,7 @@ async function importReactPlugins() {
482
461
  };
483
462
  }
484
463
  const eslintReact = async (options) => {
485
- const { componentExts, overrides = {}, parserOptions = {}, react, reactRefresh, tsconfig } = options ?? {};
464
+ const { overrides = {}, reactRefresh } = options ?? {};
486
465
  const { pluginReact, pluginReactRefresh } = await importReactPlugins();
487
466
  const coreReactPlugins = pluginReact.configs.all.plugins?.["@eslint-react"];
488
467
  if (!coreReactPlugins) throw new Error("coreReactPlugins is undefined");
@@ -490,12 +469,6 @@ const eslintReact = async (options) => {
490
469
  const config = [
491
470
  {
492
471
  files: [GLOB_SRC],
493
- languageOptions: typescriptLanguageOptions({
494
- componentExts,
495
- parserOptions,
496
- react,
497
- tsconfig
498
- }),
499
472
  name: "jsse/react/setup",
500
473
  plugins: {
501
474
  "@eslint-react": coreReactPlugins,
@@ -533,7 +506,7 @@ const eslintReact = async (options) => {
533
506
  };
534
507
  //#endregion
535
508
  //#region src/configs/ignores.ts
536
- const ignores = async () => {
509
+ const ignores = () => {
537
510
  return [{
538
511
  ignores: GLOB_EXCLUDE,
539
512
  name: "jsse/ignores"
@@ -541,7 +514,7 @@ const ignores = async () => {
541
514
  };
542
515
  //#endregion
543
516
  //#region src/configs/imports.ts
544
- const imports = async (options) => {
517
+ const imports = (options) => {
545
518
  const { stylistic = true } = options ?? {};
546
519
  return [{
547
520
  files: GLOB_CODE,
@@ -4847,7 +4820,7 @@ function javascriptRules() {
4847
4820
  yoda: ["error", "never"]
4848
4821
  };
4849
4822
  }
4850
- const javascript = async (options) => {
4823
+ const javascript = (options) => {
4851
4824
  const { isInEditor = false, overrides = {}, reportUnusedDisableDirectives = true } = options ?? {};
4852
4825
  return [{
4853
4826
  files: GLOB_CODE,
@@ -5240,7 +5213,7 @@ const markdown = async (options) => {
5240
5213
  };
5241
5214
  //#endregion
5242
5215
  //#region src/configs/n.ts
5243
- const n = async (options) => {
5216
+ const n = (options) => {
5244
5217
  return [{
5245
5218
  files: GLOB_CODE,
5246
5219
  name: "jsse/n",
@@ -5272,13 +5245,32 @@ const noOnlyTests = async (options = {}) => {
5272
5245
  }];
5273
5246
  };
5274
5247
  //#endregion
5248
+ //#region src/configs/node-test.ts
5249
+ const nodeTest = async (options = {}) => {
5250
+ const { overrides = {}, preset = "recommended" } = options;
5251
+ const pluginNodeTest = await interopDefault(import("eslint-node-test"));
5252
+ return [{
5253
+ name: "jsse/node-test/setup",
5254
+ plugins: { "node-test": pluginNodeTest }
5255
+ }, {
5256
+ files: options.files ?? GLOB_TESTS,
5257
+ name: "jsse/node-test",
5258
+ rules: {
5259
+ ...pluginNodeTest.configs[preset].rules,
5260
+ "node-test/consistent-test-filename": "error",
5261
+ "node-test/prefer-lowercase-title": "error",
5262
+ ...overrides
5263
+ }
5264
+ }];
5265
+ };
5266
+ //#endregion
5275
5267
  //#region src/configs/perfectionist.ts
5276
5268
  /**
5277
5269
  * Optional perfectionist plugin for props and items sorting.
5278
5270
  * @returns ESLint config with perfectionist rules
5279
5271
  * @see https://github.com/azat-io/eslint-plugin-perfectionist
5280
5272
  */
5281
- const perfectionist = async () => {
5273
+ const perfectionist = () => {
5282
5274
  return [{
5283
5275
  files: GLOB_CODE,
5284
5276
  name: "jsse/perfectionist",
@@ -5478,7 +5470,7 @@ function eslintConfigPrettierRules() {
5478
5470
  "yield-star-spacing": "off"
5479
5471
  };
5480
5472
  }
5481
- const prettier = async () => {
5473
+ const prettier = () => {
5482
5474
  return [{
5483
5475
  files: GLOB_CODE,
5484
5476
  name: "jsse/prettier/config",
@@ -5487,7 +5479,7 @@ const prettier = async () => {
5487
5479
  };
5488
5480
  //#endregion
5489
5481
  //#region src/configs/regexp.ts
5490
- const regexp = async () => {
5482
+ const regexp = () => {
5491
5483
  const config = configs["flat/recommended"];
5492
5484
  const rules = { ...config.rules };
5493
5485
  return [{
@@ -5505,7 +5497,7 @@ const regexp = async () => {
5505
5497
  * Requires `jsonc` config
5506
5498
  * @returns ESLint config to sort package.json files
5507
5499
  */
5508
- const sortPackageJson = async () => {
5500
+ const sortPackageJson = () => {
5509
5501
  return [{
5510
5502
  files: ["**/package.json"],
5511
5503
  name: "jsse/sort/package-json",
@@ -5612,7 +5604,7 @@ const sortPackageJson = async () => {
5612
5604
  const tsconfigGlobs = (extendGlobs) => {
5613
5605
  return extendGlobs === void 0 || extendGlobs.length === 0 ? GLOB_TSCONFIG : uniqueStrings(GLOB_TSCONFIG, extendGlobs);
5614
5606
  };
5615
- const sortTsconfig = async (options) => {
5607
+ const sortTsconfig = (options) => {
5616
5608
  return [{
5617
5609
  files: tsconfigGlobs(options?.extendTsconfigGlobs),
5618
5610
  name: "jsse/sort/tsconfig",
@@ -5768,7 +5760,7 @@ function autoUseParserService(options) {
5768
5760
  return !!(options.tsconfig && (typeof options.tsconfig === "string" && options.tsconfig === "tsconfig.json" || Array.isArray(options.tsconfig) && options.tsconfig.length === 1 && options.tsconfig[0] === "tsconfig.json"));
5769
5761
  }
5770
5762
  function typescriptParser(options) {
5771
- const { componentExts = [], filesTypeAware: files = [GLOB_TS, GLOB_TSX], ignoresTypeAware: ignores = [GLOB_MARKDOWN], name, parserOptions: parserOptionsOverride = {}, react, tsconfig, typeAware: typeAwareOpt, useProjectService = autoUseParserService(options) } = options;
5763
+ const { componentExts = [], filesTypeAware: files = [GLOB_TS, GLOB_TSX], ignoresTypeAware: ignores = [GLOB_MARKDOWN], name, parserOptions: parserOptionsOverride = {}, tsconfig, typeAware: typeAwareOpt, useProjectService = autoUseParserService(options) } = options;
5772
5764
  const typeAware = typeAwareOpt === void 0 ? !!tsconfig : typeAwareOpt;
5773
5765
  if (useProjectService) {
5774
5766
  dbg("ts parser-options using `projectService`project service");
@@ -5779,14 +5771,13 @@ function typescriptParser(options) {
5779
5771
  parser: parserTs,
5780
5772
  parserOptions: {
5781
5773
  extraFileExtensions: componentExts.map((ext) => `.${ext}`),
5782
- jsxPragma: react ? "React" : void 0,
5783
5774
  sourceType: "module",
5784
5775
  ...typeAware && {
5785
5776
  projectService: {
5786
5777
  allowDefaultProject: ["./*.js"],
5787
5778
  defaultProject: (typeof tsconfig === "string" ? tsconfig : tsconfig?.[0]) ?? "tsconfig.json"
5788
5779
  },
5789
- tsconfigRootDir: process$1.cwd()
5780
+ tsconfigRootDir: process$1.cwd().replaceAll("\\", "/")
5790
5781
  },
5791
5782
  ...parserOptionsOverride
5792
5783
  }
@@ -5802,7 +5793,6 @@ function typescriptParser(options) {
5802
5793
  parser: parserTs,
5803
5794
  parserOptions: {
5804
5795
  extraFileExtensions: componentExts.map((ext) => `.${ext}`),
5805
- jsxPragma: react ? "React" : void 0,
5806
5796
  sourceType: "module",
5807
5797
  ...typeAware && {
5808
5798
  project: Array.isArray(tsconfig) ? tsconfig : [tsconfig],
@@ -5816,28 +5806,26 @@ function typescriptParser(options) {
5816
5806
  }
5817
5807
  //#endregion
5818
5808
  //#region src/configs/ts/typescript.ts
5819
- const typescript = async (options) => {
5809
+ const typescript = (options) => {
5820
5810
  dbg("typescript-options: %O", options);
5821
- const { componentExts = [], filesTypeAware = [GLOB_TS, GLOB_TSX], ignoresTypeAware = [GLOB_MARKDOWN], overrides = {}, overridesTypeAware = {}, parserOptions = {}, prefix, react = false, strict = false, tsconfig: tsconfigPath, typeAware = true } = options ?? {};
5811
+ const { componentExts = [], filesTypeAware = [GLOB_TS, GLOB_TSX], ignoresTypeAware = [GLOB_MARKDOWN], overrides = {}, overridesTypeAware = {}, parserOptions = {}, prefix, strict = false, tsconfig: tsconfigPath, typeAware = true } = options ?? {};
5812
+ const hasCustomTypeAwareScope = options?.filesTypeAware !== void 0 || options?.ignoresTypeAware !== void 0;
5822
5813
  const parserConfigs = typeAware ? [typescriptParser({
5823
5814
  filesTypeAware,
5824
5815
  ignoresTypeAware,
5825
5816
  parserOptions,
5826
- react,
5827
5817
  tsconfig: tsconfigPath,
5828
5818
  typeAware: true
5829
- }), typescriptParser({
5819
+ }), ...hasCustomTypeAwareScope ? [typescriptParser({
5830
5820
  filesTypeAware,
5831
5821
  ignoresTypeAware,
5832
5822
  parserOptions,
5833
- react,
5834
5823
  tsconfig: tsconfigPath,
5835
5824
  typeAware: false
5836
- })] : [typescriptParser({
5825
+ })] : []] : [typescriptParser({
5837
5826
  filesTypeAware,
5838
5827
  ignoresTypeAware,
5839
5828
  parserOptions,
5840
- react,
5841
5829
  tsconfig: tsconfigPath,
5842
5830
  typeAware: false
5843
5831
  })];
@@ -5940,7 +5928,7 @@ function unicornPresetRules(pluginUnicorn, preset) {
5940
5928
  default: throw new Error(`Unknown preset: ${preset}`);
5941
5929
  }
5942
5930
  }
5943
- const unicorn = async ({ overrides = {}, preset = "recommended" } = {}) => {
5931
+ const unicorn = ({ overrides = {}, preset = "recommended" } = {}) => {
5944
5932
  return [{
5945
5933
  files: GLOB_CODE,
5946
5934
  name: "jsse/unicorn",
@@ -6079,7 +6067,7 @@ const yml = async (options) => {
6079
6067
  };
6080
6068
  //#endregion
6081
6069
  //#region src/configs/sort-geojson.ts
6082
- const sortGeojson = async () => {
6070
+ const sortGeojson = () => {
6083
6071
  return [{
6084
6072
  files: [GLOB_GEOJSON, "!**/*.min.geojson"],
6085
6073
  name: "jsse/sort/geojson",
@@ -12681,6 +12669,7 @@ function defaultOptions() {
12681
12669
  jsonc: true,
12682
12670
  markdown: false,
12683
12671
  n: true,
12672
+ nodeTest: false,
12684
12673
  off: [],
12685
12674
  pnpm: false,
12686
12675
  prettier: true,
@@ -12694,16 +12683,16 @@ function defaultOptions() {
12694
12683
  sortTsconfig: true,
12695
12684
  stylistic: true,
12696
12685
  tailwind: false,
12697
- test: vitestExists,
12698
12686
  tsPrefix: "@typescript-eslint",
12699
12687
  typeAware: false,
12700
12688
  typescript: typescriptExists,
12701
12689
  unicorn: true,
12690
+ vitest: vitestExists,
12702
12691
  yaml: false
12703
12692
  };
12704
12693
  }
12705
12694
  function normalizeOff(off) {
12706
- const offArr = [...off instanceof Set ? off : new Set(off)].sort((a, b) => a.localeCompare(b, void 0, {
12695
+ const offArr = [...off instanceof Set ? off : new Set(off)].toSorted((a, b) => a.localeCompare(b, void 0, {
12707
12696
  numeric: true,
12708
12697
  sensitivity: "base"
12709
12698
  }));
@@ -12788,7 +12777,7 @@ const FLAT_CFG_PROPS = [
12788
12777
  async function jsse(options = {}, ...userConfigs) {
12789
12778
  const startTime = process$1.hrtime.bigint();
12790
12779
  const normalizedOptions = normalizeOptions(options);
12791
- const { antfu: antfuOptions, command: commandOptions, componentExts, debug = false, demorgan: deMorganOptions, e18e: e18eOptions, gitignore: enableGitignore, isInEditor, javascript: javascriptOptions, jsdoc: jsdocOptions, jsonc: enableJsonc, markdown: enableMarkdown, n: nOptions, off, pnpm: pnpmOptions, prettier: enablePrettier, react: enableReact, regexp: enableRegexp, reportUnusedDisableDirectives, rootId, sortGeojson: enableSortGeojson, sortImports: enableSortImports, sortPackageJson: enableSortPackageJson, sortTsconfig: enableSortTsconfig, stylistic: stylisticOptions, tailwind: tailwindOptions, test: enableTest, tsPrefix, typescript: typescriptOptions, unicorn: unicornOptions, yaml: enableYaml } = normalizedOptions;
12780
+ const { antfu: antfuOptions, command: commandOptions, componentExts, debug = false, demorgan: deMorganOptions, e18e: e18eOptions, gitignore: enableGitignore, isInEditor, javascript: javascriptOptions, jsdoc: jsdocOptions, jsonc: enableJsonc, markdown: enableMarkdown, n: nOptions, nodeTest: nodeTestOptions, off, pnpm: pnpmOptions, prettier: enablePrettier, react: enableReact, regexp: enableRegexp, reportUnusedDisableDirectives, rootId, sortGeojson: enableSortGeojson, sortImports: enableSortImports, sortPackageJson: enableSortPackageJson, sortTsconfig: enableSortTsconfig, stylistic: stylisticOptions, tailwind: tailwindOptions, tsPrefix, typescript: typescriptOptions, unicorn: unicornOptions, vitest: enableVitest, yaml: enableYaml } = normalizedOptions;
12792
12781
  if (debug || process$1.argv.includes("--debug")) enableDbg();
12793
12782
  dbg("@jsse/eslint-config debug=true");
12794
12783
  dbg("@jsse/eslint-config isInEditor: %O", isInEditor);
@@ -12840,7 +12829,6 @@ async function jsse(options = {}, ...userConfigs) {
12840
12829
  from: "@typescript-eslint",
12841
12830
  to: tsPrefix ?? "@typescript-eslint"
12842
12831
  },
12843
- react: !!enableReact,
12844
12832
  typeAware: effectiveTypeAware
12845
12833
  });
12846
12834
  configs.push(tscfg);
@@ -12857,20 +12845,17 @@ async function jsse(options = {}, ...userConfigs) {
12857
12845
  configs.push(ymlConfig);
12858
12846
  }
12859
12847
  if (enableReact) configs.push(eslintReact({
12860
- componentExts,
12861
- parserOptions: normalizedOptions.parserOptions,
12862
- ...typeof typescriptOptions === "object" && { tsconfig: typescriptOptions.tsconfig },
12863
12848
  ...typeof enableReact === "object" && enableReact,
12864
- react: true,
12865
12849
  reactRefresh: typeof enableReact === "object" && enableReact.reactRefresh !== void 0 ? enableReact.reactRefresh : normalizedOptions.reactRefresh !== false
12866
12850
  }));
12867
12851
  if (enablePrettier) configs.push(prettier());
12868
12852
  if (stylisticOptions) configs.push(stylistic(stylisticOptions === true ? {} : stylisticOptions));
12869
12853
  if (enableRegexp) configs.push(regexp());
12870
- if (enableTest) configs.push(vitest({
12854
+ if (enableVitest) configs.push(vitest({
12871
12855
  isInEditor,
12872
- ...typeof enableTest === "object" && enableTest
12856
+ ...typeof enableVitest === "object" && enableVitest
12873
12857
  }), noOnlyTests({ isInEditor }));
12858
+ if (nodeTestOptions) configs.push(nodeTest(typeof nodeTestOptions === "object" ? nodeTestOptions : void 0));
12874
12859
  if (enableJsonc) {
12875
12860
  configs.push(jsonc({
12876
12861
  stylistic: stylisticOptions,
@@ -12914,4 +12899,4 @@ async function defineConfig(options = {}, ...userConfigs) {
12914
12899
  return jsse(options, ...userConfigs);
12915
12900
  }
12916
12901
  //#endregion
12917
- export { VERSION, jsse as default, jsse, defaultOptions, defineConfig, globs_exports as globs };
12902
+ export { FIXABLE_RULES_MAP, VERSION, jsse as default, jsse, defaultOptions, defineConfig, globs_exports as globs };
@@ -1 +1 @@
1
- {"root":["../src/cli.ts","../src/config-registry.test.ts","../src/config-registry.ts","../src/const.ts","../src/define-config.ts","../src/fixable.test.ts","../src/fixable.ts","../src/globs.ts","../src/index.ts","../src/lager.ts","../src/options.test.ts","../src/options.ts","../src/plugin-registry.test.ts","../src/plugin-registry.ts","../src/plugins.ts","../src/postprocess.test.ts","../src/postprocess.ts","../src/types.ts","../src/utils.ts","../src/_generated/fixable-rules-map.ts","../src/_generated/rule-options.d.ts","../src/_generated/version.ts","../src/_generated/dts/antfu.d.ts","../src/_generated/dts/builtins.d.ts","../src/_generated/dts/command.d.ts","../src/_generated/dts/de-morgan.d.ts","../src/_generated/dts/e18e.d.ts","../src/_generated/dts/eslint-comments.d.ts","../src/_generated/dts/eslint-react.d.ts","../src/_generated/dts/ignores.d.ts","../src/_generated/dts/imports.d.ts","../src/_generated/dts/javascript.d.ts","../src/_generated/dts/jsdoc.d.ts","../src/_generated/dts/jsonc.d.ts","../src/_generated/dts/markdown.d.ts","../src/_generated/dts/n.d.ts","../src/_generated/dts/no-only-tests.d.ts","../src/_generated/dts/perfectionist.d.ts","../src/_generated/dts/pnpm.d.ts","../src/_generated/dts/prettier.d.ts","../src/_generated/dts/react-hooks.d.ts","../src/_generated/dts/regexp.d.ts","../src/_generated/dts/sort-package-json.d.ts","../src/_generated/dts/sort-tsconfig.d.ts","../src/_generated/dts/stylistic.d.ts","../src/_generated/dts/toml.d.ts","../src/_generated/dts/typescript.d.ts","../src/_generated/dts/unicorn.d.ts","../src/_generated/dts/vitest.d.ts","../src/_generated/dts/yml.d.ts","../src/configs/_template.ts","../src/configs/antfu.ts","../src/configs/command.ts","../src/configs/de-morgan.ts","../src/configs/disables.ts","../src/configs/e18e.ts","../src/configs/eslint-comments.ts","../src/configs/eslint-react.ts","../src/configs/ignores.ts","../src/configs/imports.ts","../src/configs/javascript.ts","../src/configs/jsdoc.ts","../src/configs/jsonc.ts","../src/configs/markdown.ts","../src/configs/n.ts","../src/configs/no-only-tests.ts","../src/configs/perfectionist.ts","../src/configs/pnpm.ts","../src/configs/prettier.ts","../src/configs/react-hooks.ts","../src/configs/react.ts","../src/configs/regexp.ts","../src/configs/rules.test.ts","../src/configs/sort-geojson.ts","../src/configs/sort-package-json.ts","../src/configs/sort-tsconfig.ts","../src/configs/stylistic.ts","../src/configs/toml.ts","../src/configs/tsdoc.ts","../src/configs/unicorn.ts","../src/configs/vitest.ts","../src/configs/yml.ts","../src/configs/_legacy/tailwind.ts","../src/configs/_legacy/typescript-legacy-rules.ts","../src/configs/ts/parser.ts","../src/configs/ts/requires-type-checking.ts","../src/configs/ts/typescript-language-options.ts","../src/configs/ts/typescript-rules.ts","../src/configs/ts/typescript.ts"],"version":"6.0.3"}
1
+ {"root":["../src/cli.ts","../src/config-registry.test.ts","../src/config-registry.ts","../src/const.ts","../src/define-config.ts","../src/fixable.test.ts","../src/fixable.ts","../src/globs.ts","../src/index.ts","../src/lager.ts","../src/options.test.ts","../src/options.ts","../src/plugin-registry.test.ts","../src/plugin-registry.ts","../src/plugins.ts","../src/postprocess.test.ts","../src/postprocess.ts","../src/types.ts","../src/utils.ts","../src/_generated/fixable-rules-map.ts","../src/_generated/rule-options.d.ts","../src/_generated/version.ts","../src/_generated/dts/antfu.d.ts","../src/_generated/dts/builtins.d.ts","../src/_generated/dts/command.d.ts","../src/_generated/dts/de-morgan.d.ts","../src/_generated/dts/e18e.d.ts","../src/_generated/dts/eslint-comments.d.ts","../src/_generated/dts/eslint-react.d.ts","../src/_generated/dts/ignores.d.ts","../src/_generated/dts/imports.d.ts","../src/_generated/dts/javascript.d.ts","../src/_generated/dts/jsdoc.d.ts","../src/_generated/dts/jsonc.d.ts","../src/_generated/dts/markdown.d.ts","../src/_generated/dts/n.d.ts","../src/_generated/dts/no-only-tests.d.ts","../src/_generated/dts/node-test.d.ts","../src/_generated/dts/perfectionist.d.ts","../src/_generated/dts/pnpm.d.ts","../src/_generated/dts/prettier.d.ts","../src/_generated/dts/react-hooks.d.ts","../src/_generated/dts/regexp.d.ts","../src/_generated/dts/sort-package-json.d.ts","../src/_generated/dts/sort-tsconfig.d.ts","../src/_generated/dts/stylistic.d.ts","../src/_generated/dts/toml.d.ts","../src/_generated/dts/typescript.d.ts","../src/_generated/dts/unicorn.d.ts","../src/_generated/dts/vitest.d.ts","../src/_generated/dts/yml.d.ts","../src/configs/_template.ts","../src/configs/antfu.ts","../src/configs/command.ts","../src/configs/de-morgan.ts","../src/configs/disables.ts","../src/configs/e18e.ts","../src/configs/eslint-comments.ts","../src/configs/eslint-react.ts","../src/configs/ignores.ts","../src/configs/imports.ts","../src/configs/javascript.ts","../src/configs/jsdoc.ts","../src/configs/jsonc.ts","../src/configs/markdown.ts","../src/configs/n.ts","../src/configs/no-only-tests.ts","../src/configs/node-test.ts","../src/configs/perfectionist.ts","../src/configs/pnpm.ts","../src/configs/prettier.ts","../src/configs/react-hooks.ts","../src/configs/regexp.ts","../src/configs/rules.test.ts","../src/configs/sort-geojson.ts","../src/configs/sort-package-json.ts","../src/configs/sort-tsconfig.ts","../src/configs/stylistic.ts","../src/configs/toml.ts","../src/configs/tsdoc.ts","../src/configs/unicorn.ts","../src/configs/vitest.ts","../src/configs/yml.ts","../src/configs/ts/parser.ts","../src/configs/ts/requires-type-checking.ts","../src/configs/ts/typescript-rules.ts","../src/configs/ts/typescript.ts"],"version":"6.0.3"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jsse/eslint-config",
3
3
  "type": "module",
4
- "version": "0.8.7",
4
+ "version": "0.9.1",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -19,6 +19,10 @@
19
19
  "types": "./dist/index.d.ts",
20
20
  "import": "./dist/index.js"
21
21
  },
22
+ "./fixable": {
23
+ "types": "./dist/fixable.d.ts",
24
+ "import": "./dist/fixable.js"
25
+ },
22
26
  "./package.json": "./package.json"
23
27
  },
24
28
  "main": "./dist/index.js",
@@ -36,7 +40,6 @@
36
40
  "peerDependencies": {
37
41
  "@eslint-react/eslint-plugin": "^5.6.0",
38
42
  "eslint": "^10.5.0",
39
- "eslint-plugin-react": "^7.37.5",
40
43
  "eslint-plugin-react-hooks": "^7.1.1",
41
44
  "eslint-plugin-react-refresh": "^0.5.0"
42
45
  },
@@ -47,9 +50,6 @@
47
50
  "eslint": {
48
51
  "optional": false
49
52
  },
50
- "eslint-plugin-react": {
51
- "optional": true
52
- },
53
53
  "eslint-plugin-react-hooks": {
54
54
  "optional": true
55
55
  },
@@ -70,6 +70,7 @@
70
70
  "debug": "^4.4.3",
71
71
  "eslint-config-flat-gitignore": "^2.3.0",
72
72
  "eslint-merge-processors": "^2.0.0",
73
+ "eslint-node-test": "^0.2.0",
73
74
  "eslint-plugin-antfu": "^3.2.3",
74
75
  "eslint-plugin-command": "^3.5.2",
75
76
  "eslint-plugin-de-morgan": "^2.1.2",
@@ -96,7 +97,7 @@
96
97
  "@changesets/cli": "^2.31.0",
97
98
  "@eslint-react/eslint-plugin": "^5.10.1",
98
99
  "@jsse/prettier-config": "^1.0.2",
99
- "@jsse/tsconfig": "^0.5.1",
100
+ "@jsse/tsconfig": "^0.5.2",
100
101
  "@optique/core": "^1.1.1",
101
102
  "@optique/run": "^1.1.1",
102
103
  "@types/debug": "^4.1.13",
@@ -105,7 +106,6 @@
105
106
  "@vitest/eslint-plugin": "^1.6.20",
106
107
  "eslint": "^10.6.0",
107
108
  "eslint-flat-config-utils": "^3.2.0",
108
- "eslint-plugin-react": "^7.37.5",
109
109
  "eslint-typegen": "^2.3.1",
110
110
  "execa": "~9.6.1",
111
111
  "fast-equals": "^6.0.0",
@@ -124,14 +124,29 @@
124
124
  "tsdown": "^0.22.3",
125
125
  "tsx": "^4.22.5",
126
126
  "typescript": "~6.0.3",
127
- "vitest": "^4.1.9"
127
+ "vitest": "^4.1.9",
128
+ "wireit": "^0.14.13"
128
129
  },
129
130
  "prettier": "@jsse/prettier-config",
131
+ "wireit": {
132
+ "gen": {
133
+ "command": "tsx scripts/gen.ts && prettier -w --cache --object-wrap=collapse src/_generated",
134
+ "files": [
135
+ "scripts/gen.ts",
136
+ "src/**/*.ts",
137
+ "!src/_generated/**",
138
+ "package.json"
139
+ ],
140
+ "output": [
141
+ "src/_generated/**"
142
+ ]
143
+ }
144
+ },
130
145
  "scripts": {
131
146
  "build": "pnpm gen && pnpm build-fast --dts && pnpm build:tsc && eslint .",
132
147
  "build:tsc": "tsc -b tsconfig.build.json",
133
148
  "build-fast": "tsdown --clean",
134
- "gen": "tsx scripts/gen.ts && prettier -w --cache --object-wrap=collapse src/_generated",
149
+ "gen": "wireit",
135
150
  "dev": "tsdown src/index.ts --format esm --watch",
136
151
  "fmt": "prettier -w --object-wrap=collapse .",
137
152
  "fmtc": "prettier --check --object-wrap=collapse .",