@jsse/eslint-config 0.8.2 → 0.8.3

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,5 +1,5 @@
1
1
  import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./rolldown-runtime-DJK8HYOj.js";
2
- import { n as SLOW_RULES, r as VERSION, t as DEBUG } from "./const-Bzz9-PXu.js";
2
+ import { n as SLOW_RULES, r as VERSION, t as DEBUG } from "./const-BGD6_tOf.js";
3
3
  import { builtinModules, createRequire } from "node:module";
4
4
  import process$1 from "node:process";
5
5
  import fs, { realpathSync, statSync } from "node:fs";
@@ -133,13 +133,92 @@ const GLOB_EXCLUDE = [
133
133
  ];
134
134
  //#endregion
135
135
  //#region src/lager.ts
136
+ var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
137
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
138
+ let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
139
+ let formatter = (open, close, replace = open) => (input) => {
140
+ let string = "" + input, index = string.indexOf(close, open.length);
141
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
142
+ };
143
+ let replaceClose = (string, close, replace, index) => {
144
+ let result = "", cursor = 0;
145
+ do {
146
+ result += string.substring(cursor, index) + replace;
147
+ cursor = index + close.length;
148
+ index = string.indexOf(close, cursor);
149
+ } while (~index);
150
+ return result + string.substring(cursor);
151
+ };
152
+ let createColors = (enabled = isColorSupported) => {
153
+ let f = enabled ? formatter : () => String;
154
+ return {
155
+ isColorSupported: enabled,
156
+ reset: f("\x1B[0m", "\x1B[0m"),
157
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
158
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
159
+ italic: f("\x1B[3m", "\x1B[23m"),
160
+ underline: f("\x1B[4m", "\x1B[24m"),
161
+ inverse: f("\x1B[7m", "\x1B[27m"),
162
+ hidden: f("\x1B[8m", "\x1B[28m"),
163
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
164
+ black: f("\x1B[30m", "\x1B[39m"),
165
+ red: f("\x1B[31m", "\x1B[39m"),
166
+ green: f("\x1B[32m", "\x1B[39m"),
167
+ yellow: f("\x1B[33m", "\x1B[39m"),
168
+ blue: f("\x1B[34m", "\x1B[39m"),
169
+ magenta: f("\x1B[35m", "\x1B[39m"),
170
+ cyan: f("\x1B[36m", "\x1B[39m"),
171
+ white: f("\x1B[37m", "\x1B[39m"),
172
+ gray: f("\x1B[90m", "\x1B[39m"),
173
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
174
+ bgRed: f("\x1B[41m", "\x1B[49m"),
175
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
176
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
177
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
178
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
179
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
180
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
181
+ blackBright: f("\x1B[90m", "\x1B[39m"),
182
+ redBright: f("\x1B[91m", "\x1B[39m"),
183
+ greenBright: f("\x1B[92m", "\x1B[39m"),
184
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
185
+ blueBright: f("\x1B[94m", "\x1B[39m"),
186
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
187
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
188
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
189
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
190
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
191
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
192
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
193
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
194
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
195
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
196
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
197
+ };
198
+ };
199
+ module.exports = createColors();
200
+ module.exports.createColors = createColors;
201
+ })))(), 1);
136
202
  const dbg = Debug("jsse:eslint-config");
203
+ const WARN_LABEL = import_picocolors.default.yellow("[[@jsse/eslint-config::WARN]]");
137
204
  function enableDbg() {
138
205
  const currentNamespaces = Debug.namespaces;
139
206
  const current = typeof currentNamespaces === "string" ? currentNamespaces : void 0;
140
207
  Debug.enable([current, "jsse:eslint-config"].filter((ns) => ns !== void 0).join(","));
141
208
  dbg("Debugging enabled for @jsse/eslint-config");
142
209
  }
210
+ const warn = (...args) => {
211
+ const msg = args.map((arg) => {
212
+ if (typeof arg === "string") return arg;
213
+ if (arg instanceof Error) return arg.message;
214
+ try {
215
+ return JSON.stringify(arg, void 0, 2);
216
+ } catch (_e) {
217
+ return String(arg);
218
+ }
219
+ }).join(" ");
220
+ console.warn(`${WARN_LABEL} ${msg}`);
221
+ };
143
222
  //#endregion
144
223
  //#region src/utils.ts
145
224
  /**
@@ -235,7 +314,7 @@ const parserPlain = {
235
314
  visitorKeys: { Program: [] }
236
315
  })
237
316
  };
238
- function turnOffRules(configs, off) {
317
+ function turnOffRules(configs, off, debug) {
239
318
  if (off.length > 0) {
240
319
  for (const rule of off) dbg(`turning-off: ${rule}`);
241
320
  const currentlyActiveRules = /* @__PURE__ */ new Set();
@@ -243,7 +322,12 @@ function turnOffRules(configs, off) {
243
322
  const cfgRules = Object.keys(config.rules ?? {});
244
323
  for (const rule of cfgRules) currentlyActiveRules.add(rule);
245
324
  }
246
- for (const rule of off) if (!currentlyActiveRules.has(rule)) dbg(`Rule \`${rule}\` is not active in the current config, you can remove it from the off list`);
325
+ for (const rule of off) {
326
+ if (currentlyActiveRules.has(rule)) continue;
327
+ const msg = `Rule \`${rule}\` is not active in the current config, you can remove it from the off list`;
328
+ dbg(msg);
329
+ if (debug) warn(msg);
330
+ }
247
331
  for (const config of configs) {
248
332
  const cfgRules = config.rules;
249
333
  if (cfgRules) {
@@ -277,7 +361,7 @@ function warn2error(configs) {
277
361
  return configs;
278
362
  }
279
363
  const TYPESCRIPT_ESLINT_PREFIX = "@typescript-eslint/";
280
- function replaceTypescriptEslintPrefix(items, tsPrefix) {
364
+ function replaceTypescriptEslintPrefixInplace(items, tsPrefix) {
281
365
  for (const [key, value] of Object.entries(items)) {
282
366
  if (!key.startsWith(TYPESCRIPT_ESLINT_PREFIX)) continue;
283
367
  delete items[key];
@@ -365,7 +449,7 @@ const reactHooks = async () => {
365
449
  //#endregion
366
450
  //#region src/configs/ts/typescript-language-options.ts
367
451
  function typescriptLanguageOptions(options) {
368
- const { componentExts = [], react, tsconfig } = options || {};
452
+ const { componentExts = [], react, tsconfig } = options;
369
453
  const tsOptions = tsconfig ? {
370
454
  project: Array.isArray(tsconfig) ? tsconfig : [tsconfig],
371
455
  tsconfigRootDir: process$1.cwd()
@@ -396,7 +480,8 @@ async function importReactPlugins() {
396
480
  const eslintReact = async (options) => {
397
481
  const { componentExts, parserOptions = {}, react, reactRefresh, tsconfig } = options ?? {};
398
482
  const { pluginReact, pluginReactRefresh } = await importReactPlugins();
399
- const coreReactPlugins = pluginReact.configs.all.plugins;
483
+ const coreReactPlugins = pluginReact.configs.all.plugins?.["@eslint-react"];
484
+ if (!coreReactPlugins) throw new Error("coreReactPlugins is undefined");
400
485
  const reactHooksConfig = await reactHooks();
401
486
  const config = [
402
487
  {
@@ -409,7 +494,7 @@ const eslintReact = async (options) => {
409
494
  }),
410
495
  name: "jsse/react/setup",
411
496
  plugins: {
412
- "@eslint-react": coreReactPlugins["@eslint-react"],
497
+ "@eslint-react": coreReactPlugins,
413
498
  "react-refresh": pluginReactRefresh
414
499
  }
415
500
  },
@@ -5047,7 +5132,7 @@ function typescriptRulesTypeOblivious() {
5047
5132
  };
5048
5133
  }
5049
5134
  function tsPresetRules(props) {
5050
- return extractRules(props?.typeAware ? props?.strict ? tseslint.configs.strictTypeChecked : tseslint.configs.recommendedTypeChecked : props?.strict ? tseslint.configs.strict : tseslint.configs.recommended);
5135
+ return extractRules(props?.typeAware ? props.strict ? tseslint.configs.strictTypeChecked : tseslint.configs.recommendedTypeChecked : props?.strict ? tseslint.configs.strict : tseslint.configs.recommended);
5051
5136
  }
5052
5137
  function typescriptRules(props) {
5053
5138
  const normalized = {
@@ -5167,18 +5252,14 @@ const n = async () => {
5167
5252
  //#endregion
5168
5253
  //#region src/configs/no-only-tests.ts
5169
5254
  const noOnlyTests = async (options = {}) => {
5170
- const { isInEditor = false, overrides = {} } = options;
5255
+ const { isInEditor = false } = options;
5171
5256
  return [{
5172
5257
  name: "jsse/no-only-tests/setup",
5173
5258
  plugins: { "no-only-tests": await interopDefault(import("eslint-plugin-no-only-tests")) }
5174
5259
  }, {
5175
5260
  files: GLOB_TESTS,
5176
5261
  name: "jsse/no-only-tests/rules",
5177
- rules: {
5178
- "no-only-tests/no-only-tests": isInEditor ? "off" : isCI() ? "error" : "warn",
5179
- "unicorn/no-null": "off",
5180
- ...overrides
5181
- }
5262
+ rules: { "no-only-tests/no-only-tests": isInEditor ? "off" : isCI() ? "error" : "warn" }
5182
5263
  }];
5183
5264
  };
5184
5265
  //#endregion
@@ -12486,6 +12567,7 @@ quansync(function* (name, cwd) {
12486
12567
  //#region src/options.ts
12487
12568
  function defaultOptions() {
12488
12569
  const typescriptExists = isPackageExists("typescript");
12570
+ const vitestExists = isPackageExists("vitest");
12489
12571
  return {
12490
12572
  command: true,
12491
12573
  componentExts: [],
@@ -12508,10 +12590,11 @@ function defaultOptions() {
12508
12590
  sortTsconfig: true,
12509
12591
  stylistic: true,
12510
12592
  tailwind: false,
12511
- test: true,
12593
+ test: vitestExists,
12512
12594
  tsPrefix: "@typescript-eslint",
12513
12595
  typeAware: false,
12514
12596
  typescript: typescriptExists,
12597
+ warnings: true,
12515
12598
  yaml: false
12516
12599
  };
12517
12600
  }
@@ -12549,7 +12632,7 @@ const CODE_SCOPED_CFG_NAMES = /* @__PURE__ */ new Set([
12549
12632
  "jsse/unicorn"
12550
12633
  ]);
12551
12634
  function postProcessConfigs(configs, options) {
12552
- const { componentExts, off, rootId = "jsse", tsPrefix, typescript } = options;
12635
+ const { componentExts, debug = false, off, rootId = "jsse", tsPrefix, typescript } = options;
12553
12636
  if (!typescript) {
12554
12637
  for (const config of configs) if (config.name && CODE_SCOPED_CFG_NAMES.has(config.name)) config.files = [GLOB_JS, GLOB_JSX];
12555
12638
  }
@@ -12561,13 +12644,13 @@ function postProcessConfigs(configs, options) {
12561
12644
  ],
12562
12645
  rulePrefixes: uniqueStrings("@typescript-eslint", tsPrefix ?? [])
12563
12646
  }) : configs;
12564
- if (off && off.length > 0) turnOffRules(scopedConfigs, off);
12647
+ if (off && off.length > 0) turnOffRules(scopedConfigs, off, debug);
12565
12648
  if (rootId !== "jsse") {
12566
12649
  for (const config of scopedConfigs) if (config.name && config.name.startsWith("jsse/")) config.name = config.name.replace("jsse/", `${rootId}/`);
12567
12650
  }
12568
12651
  if (tsPrefix && tsPrefix !== "@typescript-eslint") for (const config of scopedConfigs) {
12569
- if (config.plugins) replaceTypescriptEslintPrefix(config.plugins, tsPrefix);
12570
- if (config.rules) replaceTypescriptEslintPrefix(config.rules, tsPrefix);
12652
+ if (config.plugins) replaceTypescriptEslintPrefixInplace(config.plugins, tsPrefix);
12653
+ if (config.rules) replaceTypescriptEslintPrefixInplace(config.rules, tsPrefix);
12571
12654
  }
12572
12655
  return scopedConfigs;
12573
12656
  }
@@ -12591,7 +12674,7 @@ const FLAT_CFG_PROPS = [
12591
12674
  */
12592
12675
  async function jsse(options = {}, ...userConfigs) {
12593
12676
  const normalizedOptions = normalizeOptions(options);
12594
- const { command: enableCommand, componentExts, debug, gitignore: enableGitignore, isInEditor, jsonc: enableJsonc, markdown: enableMarkdown, off, overrides = {}, pnpm: enablePnpm, prettier: enablePrettier, react: enableReact, regexp: enableRegexp, reportUnusedDisableDirectives, rootId, sortImports: enableSortImports, sortPackageJson: enableSortPackageJson, sortTsconfig: enableSortTsconfig, stylistic: stylisticOptions, tailwind: tailwindOptions, test: enableTest, tsPrefix, typescript: typescriptOptions, yaml: enableYaml } = normalizedOptions;
12677
+ const { command: enableCommand, componentExts, debug = false, gitignore: enableGitignore, isInEditor, jsonc: enableJsonc, markdown: enableMarkdown, off, overrides = {}, pnpm: enablePnpm, prettier: enablePrettier, react: enableReact, regexp: enableRegexp, reportUnusedDisableDirectives, rootId, sortImports: enableSortImports, sortPackageJson: enableSortPackageJson, sortTsconfig: enableSortTsconfig, stylistic: stylisticOptions, tailwind: tailwindOptions, test: enableTest, tsPrefix, typescript: typescriptOptions, yaml: enableYaml } = normalizedOptions;
12595
12678
  if (debug || process$1.argv.includes("--debug")) enableDbg();
12596
12679
  dbg("@jsse/eslint-config debug=true");
12597
12680
  dbg("@jsse/eslint-config isInEditor: %O", isInEditor);
@@ -12665,10 +12748,7 @@ async function jsse(options = {}, ...userConfigs) {
12665
12748
  if (enableTest) configs.push(vitest({
12666
12749
  isInEditor,
12667
12750
  overrides: overrides.test
12668
- }), noOnlyTests({
12669
- isInEditor,
12670
- overrides: overrides.test
12671
- }));
12751
+ }), noOnlyTests({ isInEditor }));
12672
12752
  if (enableJsonc) {
12673
12753
  configs.push(jsonc({
12674
12754
  overrides: overrides.jsonc,
@@ -12685,6 +12765,7 @@ async function jsse(options = {}, ...userConfigs) {
12685
12765
  if (Object.keys(fusedConfig).length > 0) configs.push([fusedConfig]);
12686
12766
  const finalizedConfigs = postProcessConfigs(await combineAsync(...configs, ...userConfigs), {
12687
12767
  componentExts,
12768
+ debug,
12688
12769
  off,
12689
12770
  rootId,
12690
12771
  tsPrefix,
@@ -12713,4 +12794,4 @@ const jsseReact = (options, ...configs) => {
12713
12794
  }, ...configs);
12714
12795
  };
12715
12796
  //#endregion
12716
- export { SLOW_RULES, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defaultOptions, defineConfig, error2warn, globs_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, normalizeOptions, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginRegexp, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, replaceTypescriptEslintPrefix, scopeTypeScriptRules, turnOffRules, uniqueStrings, warn2error };
12797
+ export { SLOW_RULES, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defaultOptions, defineConfig, error2warn, globs_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, normalizeOptions, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginRegexp, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, replaceTypescriptEslintPrefixInplace, scopeTypeScriptRules, turnOffRules, uniqueStrings, warn2error };
@@ -1 +1 @@
1
- {"root":["../src/cli.ts","../src/config-fns.ts","../src/configs.test.ts","../src/const.ts","../src/define-config.ts","../src/dev.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/plugins-all.test.ts","../src/plugins-all.ts","../src/plugins.ts","../src/postprocess.test.ts","../src/postprocess.ts","../src/presets.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/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/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-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/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-fns.ts","../src/configs.test.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/plugins-all.test.ts","../src/plugins-all.ts","../src/plugins.ts","../src/postprocess.test.ts","../src/postprocess.ts","../src/presets.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/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/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-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/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"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jsse/eslint-config",
3
3
  "type": "module",
4
- "version": "0.8.2",
4
+ "version": "0.8.3",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -36,6 +36,7 @@
36
36
  ],
37
37
  "peerDependencies": {
38
38
  "@eslint-react/eslint-plugin": "^5.6.0",
39
+ "@vitest/eslint-plugin": "^1.6.20",
39
40
  "eslint": "^10.5.0",
40
41
  "eslint-plugin-react": "^7.37.5",
41
42
  "eslint-plugin-react-hooks": "^7.1.1",
@@ -45,6 +46,9 @@
45
46
  "@eslint-react/eslint-plugin": {
46
47
  "optional": true
47
48
  },
49
+ "@vitest/eslint-plugin": {
50
+ "optional": true
51
+ },
48
52
  "eslint": {
49
53
  "optional": false
50
54
  },
@@ -66,7 +70,6 @@
66
70
  "@typescript-eslint/eslint-plugin": "^8.62.0",
67
71
  "@typescript-eslint/parser": "^8.62.0",
68
72
  "@typescript-eslint/rule-tester": "^8.62.0",
69
- "@vitest/eslint-plugin": "^1.6.20",
70
73
  "debug": "^4.4.3",
71
74
  "eslint-config-flat-gitignore": "^2.3.0",
72
75
  "eslint-merge-processors": "^2.0.0",
@@ -76,7 +79,7 @@
76
79
  "eslint-plugin-import-lite": "^0.6.0",
77
80
  "eslint-plugin-jsdoc": "^63.0.7",
78
81
  "eslint-plugin-jsonc": "^3.2.0",
79
- "eslint-plugin-n": "^18.1.0",
82
+ "eslint-plugin-n": "^18.2.1",
80
83
  "eslint-plugin-no-only-tests": "^3.4.0",
81
84
  "eslint-plugin-perfectionist": "^5.9.1",
82
85
  "eslint-plugin-pnpm": "^1.6.1",
@@ -84,7 +87,7 @@
84
87
  "eslint-plugin-react-refresh": "^0.5.3",
85
88
  "eslint-plugin-regexp": "^3.1.0",
86
89
  "eslint-plugin-toml": "^1.4.0",
87
- "eslint-plugin-unicorn": "^68.0.0",
90
+ "eslint-plugin-unicorn": "^69.0.0",
88
91
  "eslint-plugin-unused-imports": "^4.4.1",
89
92
  "eslint-plugin-yml": "^3.5.0",
90
93
  "jsonc-eslint-parser": "^3.1.0",
@@ -94,8 +97,6 @@
94
97
  },
95
98
  "devDependencies": {
96
99
  "@changesets/cli": "^2.31.0",
97
- "@emnapi/core": "^1.11.1",
98
- "@emnapi/runtime": "^1.11.1",
99
100
  "@eslint-react/eslint-plugin": "^5.9.2",
100
101
  "@jsse/prettier-config": "^1.0.2",
101
102
  "@jsse/tsconfig": "^0.5.1",
@@ -103,7 +104,8 @@
103
104
  "@optique/run": "^1.1.0",
104
105
  "@types/debug": "^4.1.13",
105
106
  "@types/fs-extra": "^11.0.4",
106
- "@types/node": "^25.9.4",
107
+ "@types/node": "^24.13.2",
108
+ "@vitest/eslint-plugin": "^1.6.20",
107
109
  "eslint": "^10.5.0",
108
110
  "eslint-flat-config-utils": "^3.2.0",
109
111
  "eslint-plugin-react": "^7.37.5",