@jimmy.codes/eslint-config 8.0.0 → 8.0.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/globs.d.mts CHANGED
@@ -11,6 +11,6 @@ declare const GLOB_PLAYWRIGHT: readonly ["**/e2e/**/*.spec.?([cm])[jt]s?(x)", "*
11
11
  declare const GLOB_E2E: readonly ["**/e2e/**/*.spec.?([cm])[jt]s?(x)", "**/e2e/**/*.test.?([cm])[jt]s?(x)", "**/cypress/**/*.spec.?([cm])[jt]s?(x)", "**/cypress/**/*.test.?([cm])[jt]s?(x)"];
12
12
  declare const GLOB_NEXTJS: readonly ["**/*.?([cm])js", "**/*.?([cm])jsx", "**/*.?([cm])ts", "**/*.?([cm])tsx"];
13
13
  declare const GLOB_NEXTJS_ENV: readonly ["**/next-env.d.ts"];
14
- declare const GLOB_IGNORES: readonly ["**/node_modules", "**/dist", "**/package-lock.json", "**/yarn.lock", "**/pnpm-lock.yaml", "**/bun.lockb", "**/output", "**/coverage", "**/temp", "**/.temp", "**/tmp", "**/.tmp", "**/.history", "**/.vitepress/cache", "**/.nuxt", "**/.next", "**/.vercel", "**/.changeset", "**/.idea", "**/.cache", "**/.output", "**/.vite-inspect", "**/.yarn", "**/storybook-static", "**/.eslint-config-inspector", "**/playwright-report", "**/.astro", "**/.vinxi", "**/app.config.timestamp_*.js", "**/.tanstack", "**/.nitro", "**/CHANGELOG*.md", "**/*.min.*", "**/LICENSE*", "**/__snapshots__", "**/auto-import?(s).d.ts", "**/components.d.ts", "**/vite.config.ts.*.mjs", "**/*.gen.*", "!.storybook"];
14
+ declare const GLOB_IGNORES: readonly ["**/node_modules", "**/dist", "**/package-lock.json", "**/yarn.lock", "**/pnpm-lock.yaml", "**/bun.lockb", "**/output", "**/coverage", "**/temp", "**/.temp", "**/tmp", "**/.tmp", "**/.history", "**/.vitepress/cache", "**/.nuxt", "**/.next", "**/.vercel", "**/.changeset", "**/.idea", "**/.cache", "**/.output", "**/.vite-inspect", "**/.yarn", "**/storybook-static", "**/.eslint-config-inspector", "**/playwright-report", "**/.astro", "**/.vinxi", "**/app.config.timestamp_*.js", "**/.tanstack", "**/.nitro", "**/.agents", "**/.claude", "**/.worktrees", "**/CHANGELOG*.md", "**/*.min.*", "**/LICENSE*", "**/__snapshots__", "**/auto-import?(s).d.ts", "**/components.d.ts", "**/vite.config.ts.*.mjs", "**/*.gen.*", "!.storybook"];
15
15
  //#endregion
16
16
  export { GLOB_ASTRO, GLOB_CJS, GLOB_E2E, GLOB_IGNORES, GLOB_JS, GLOB_JSX, GLOB_NEXTJS, GLOB_NEXTJS_ENV, GLOB_PLAYWRIGHT, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_TYPE_TESTS };
package/dist/globs.mjs CHANGED
@@ -66,6 +66,9 @@ const GLOB_IGNORES = [
66
66
  "**/app.config.timestamp_*.js",
67
67
  "**/.tanstack",
68
68
  "**/.nitro",
69
+ "**/.agents",
70
+ "**/.claude",
71
+ "**/.worktrees",
69
72
  "**/CHANGELOG*.md",
70
73
  "**/*.min.*",
71
74
  "**/LICENSE*",
package/dist/index.mjs CHANGED
@@ -548,7 +548,7 @@ const defineConfig = async ({ astro = false, autoDetect = true, gitignore = fals
548
548
  isTanstackQueryEnabled && unwrap(import("./tanstack-query-DDneXpNy.mjs"), tanstackQuery),
549
549
  isAstroEnabled && unwrap(import("./astro-aQAlBamd.mjs"), astro),
550
550
  isJestEnabled && unwrap(import("./jest-nmog_kTA.mjs"), jest),
551
- isVitestEnabled && unwrap(import("./vitest-CF0wqPWv.mjs"), vitest),
551
+ isVitestEnabled && unwrap(import("./vitest-UlwsC81j.mjs"), vitest),
552
552
  isTestingLibraryEnabled && unwrap(import("./testing-library-CYBT9TQs.mjs"), testingLibrary),
553
553
  isPlaywrightEnabled && unwrap(import("./playwright-6IRdMIaA.mjs"), playwright),
554
554
  isStorybookEnabled && unwrap(import("./storybook-Db6TyBmb.mjs"), storybook),
@@ -1,9 +1,12 @@
1
1
  import { GLOB_E2E, GLOB_TESTS, GLOB_TYPE_TESTS } from "./globs.mjs";
2
+ import { l as hasTypescript } from "./has-dependency-Bzazc-3p.mjs";
2
3
  import { n as extractOptions, t as unwrapDefault } from "./interop-default-CAdBatTA.mjs";
3
4
  //#region src/rules/vitest.ts
4
5
  const vitestRules = async (options) => {
6
+ const vitestPlugin = await unwrapDefault(import("@vitest/eslint-plugin"));
7
+ const isUsingTypescript = hasTypescript();
5
8
  return {
6
- ...(await unwrapDefault(import("@vitest/eslint-plugin"))).configs.recommended.rules,
9
+ ...vitestPlugin.configs.recommended.rules,
7
10
  "vitest/consistent-each-for": ["error", {
8
11
  describe: "each",
9
12
  it: "each",
@@ -58,8 +61,10 @@ const vitestRules = async (options) => {
58
61
  "vitest/require-hook": "error",
59
62
  "vitest/require-to-throw-message": "error",
60
63
  "vitest/require-top-level-describe": "off",
64
+ "vitest/unbound-method": isUsingTypescript ? "error" : "off",
61
65
  "vitest/valid-title": ["error", { mustMatch: { it: "^should" } }],
62
66
  "vitest/warn-todo": "warn",
67
+ ...isUsingTypescript ? { "@typescript-eslint/unbound-method": "off" } : {},
63
68
  ...options?.overrides
64
69
  };
65
70
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimmy.codes/eslint-config",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "description": "A simple, modern ESLint config that covers most use cases.",
5
5
  "keywords": [
6
6
  "eslint",