@jimmy.codes/eslint-config 6.25.0 → 6.26.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.
@@ -67,4 +67,19 @@ async function astroConfig(options) {
67
67
  }
68
68
 
69
69
  //#endregion
70
- export { astroConfig as default };
70
+ //#region src/utils/upwarn.ts
71
+ /**
72
+ * Converts all ESLint rules set to `"warn"` into `"error"`.
73
+ *
74
+ * @param rules - A partial set of ESLint rules.
75
+ *
76
+ * @returns A new rules object with all `"warn"` values changed to `"error"`.
77
+ */
78
+ const upwarn = (rules = {}) => {
79
+ return Object.fromEntries(Object.entries(rules).map(([rule, option]) => {
80
+ return [rule, option === "warn" ? "error" : option];
81
+ }));
82
+ };
83
+
84
+ //#endregion
85
+ export { astroConfig as default, upwarn as t };
package/dist/index.d.mts CHANGED
@@ -14370,6 +14370,7 @@ type ReactXNoUnstableDefaultProps = [] | [{
14370
14370
  }];
14371
14371
  // ----- react-x/no-useless-fragment -----
14372
14372
  type ReactXNoUselessFragment = [] | [{
14373
+ allowEmptyFragment?: boolean;
14373
14374
  allowExpressions?: boolean;
14374
14375
  }];
14375
14376
  // ----- regexp/hexadecimal-escape -----
package/dist/index.mjs CHANGED
@@ -504,16 +504,16 @@ const defineConfig = async ({ astro = false, autoDetect = true, gitignore = fals
504
504
  stylisticConfig()
505
505
  ];
506
506
  const featureConfigs = await Promise.all([
507
- isTypescriptEnabled && unwrap(import("./typescript-iybUcKhp.mjs"), typescript),
508
- isReactEnabled && unwrap(import("./react-aPiplRN9.mjs"), react),
509
- isTanstackQueryEnabled && unwrap(import("./tanstack-query-Dp8U2t8w.mjs"), tanstackQuery),
510
- isAstroEnabled && unwrap(import("./astro-_OthZH0C.mjs"), astro),
507
+ isTypescriptEnabled && unwrap(import("./typescript-CNtyo5Lg.mjs"), typescript),
508
+ isReactEnabled && unwrap(import("./react-6Ule3BqW.mjs"), react),
509
+ isTanstackQueryEnabled && unwrap(import("./tanstack-query-BVXIAVcv.mjs"), tanstackQuery),
510
+ isAstroEnabled && unwrap(import("./astro-BnZ2LIR3.mjs"), astro),
511
511
  isJestEnabled && unwrap(import("./jest-BxCbmb4w.mjs"), jest),
512
- isVitestEnabled && unwrap(import("./vitest-DyQ5YML1.mjs"), vitest),
513
- isTestingLibraryEnabled && unwrap(import("./testing-library-CQkPs8CJ.mjs"), testingLibrary),
514
- isPlaywrightEnabled && unwrap(import("./playwright-CB73AGjW.mjs"), playwright),
515
- isStorybookEnabled && unwrap(import("./storybook-CgfIOzEK.mjs"), storybook),
516
- isNextjsEnabled && unwrap(import("./nextjs-Bp3ln3PT.mjs"), nextjs)
512
+ isVitestEnabled && unwrap(import("./vitest-BiF4sMhO.mjs"), vitest),
513
+ isTestingLibraryEnabled && unwrap(import("./testing-library-BFsBlKXl.mjs"), testingLibrary),
514
+ isPlaywrightEnabled && unwrap(import("./playwright-ChDf6HhZ.mjs"), playwright),
515
+ isStorybookEnabled && unwrap(import("./storybook-BfbeHUhi.mjs"), storybook),
516
+ isNextjsEnabled && unwrap(import("./nextjs-_AmGd366.mjs"), nextjs)
517
517
  ]);
518
518
  return [
519
519
  ...gitignore ? [gitignoreConfig({ strict: false })] : [],
@@ -1,6 +1,6 @@
1
1
  import { s as GLOB_NEXTJS } from "./globs-uKx5b8lV.mjs";
2
2
  import { n as extractOptions, t as interopDefault } from "./interop-default-CKeWA-H9.mjs";
3
- import { t as upwarn } from "./upwarn-BWFMaOyK.mjs";
3
+ import { t as upwarn } from "./astro-BnZ2LIR3.mjs";
4
4
 
5
5
  //#region src/rules/nextjs.ts
6
6
  const nextjsRules = async (options) => {
@@ -1,7 +1,7 @@
1
1
  import { d as GLOB_TSX, o as GLOB_JSX } from "./globs-uKx5b8lV.mjs";
2
2
  import { l as hasTypescript, r as hasNext, u as hasVite } from "./has-dependency-BreXO1rF.mjs";
3
3
  import { n as extractOptions, t as interopDefault } from "./interop-default-CKeWA-H9.mjs";
4
- import { t as upwarn } from "./upwarn-BWFMaOyK.mjs";
4
+ import { t as upwarn } from "./astro-BnZ2LIR3.mjs";
5
5
  import globals from "globals";
6
6
 
7
7
  //#region src/rules/react.ts
@@ -1,5 +1,5 @@
1
1
  import { n as extractOptions, t as interopDefault } from "./interop-default-CKeWA-H9.mjs";
2
- import { t as upwarn } from "./upwarn-BWFMaOyK.mjs";
2
+ import { t as upwarn } from "./astro-BnZ2LIR3.mjs";
3
3
 
4
4
  //#region src/configs/storybook.ts
5
5
  async function storybookConfig(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimmy.codes/eslint-config",
3
- "version": "6.25.0",
3
+ "version": "6.26.0",
4
4
  "description": "A simple, modern ESLint config that covers most use cases.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -41,13 +41,13 @@
41
41
  "dependencies": {
42
42
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
43
43
  "@eslint/js": "^9.39.1",
44
- "@next/eslint-plugin-next": "^16.0.6",
44
+ "@next/eslint-plugin-next": "^16.0.10",
45
45
  "@stylistic/eslint-plugin": "^5.6.1",
46
46
  "@tanstack/eslint-plugin-query": "^5.91.2",
47
47
  "@types/eslint": "9.6.1",
48
- "@typescript-eslint/parser": "^8.48.0",
49
- "@typescript-eslint/utils": "^8.48.0",
50
- "@vitest/eslint-plugin": "^1.5.1",
48
+ "@typescript-eslint/parser": "^8.49.0",
49
+ "@typescript-eslint/utils": "^8.49.0",
50
+ "@vitest/eslint-plugin": "^1.5.2",
51
51
  "astro-eslint-parser": "^1.2.2",
52
52
  "eslint-config-flat-gitignore": "^2.1.0",
53
53
  "eslint-config-prettier": "^10.1.8",
@@ -58,26 +58,26 @@
58
58
  "eslint-plugin-import-x": "^4.16.1",
59
59
  "eslint-plugin-jest": "^29.2.1",
60
60
  "eslint-plugin-jest-dom": "^5.5.0",
61
- "eslint-plugin-jsdoc": "^61.4.1",
61
+ "eslint-plugin-jsdoc": "^61.5.0",
62
62
  "eslint-plugin-jsx-a11y": "^6.10.2",
63
63
  "eslint-plugin-n": "^17.23.1",
64
64
  "eslint-plugin-perfectionist": "^4.15.1",
65
65
  "eslint-plugin-playwright": "^2.4.0",
66
66
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
67
- "eslint-plugin-react-dom": "^2.3.9",
67
+ "eslint-plugin-react-dom": "^2.3.13",
68
68
  "eslint-plugin-react-hooks": "^7.0.1",
69
- "eslint-plugin-react-hooks-extra": "^2.3.9",
70
- "eslint-plugin-react-naming-convention": "^2.3.9",
69
+ "eslint-plugin-react-hooks-extra": "^2.3.13",
70
+ "eslint-plugin-react-naming-convention": "^2.3.13",
71
71
  "eslint-plugin-react-refresh": "0.4.24",
72
- "eslint-plugin-react-web-api": "^2.3.9",
73
- "eslint-plugin-react-x": "^2.3.9",
72
+ "eslint-plugin-react-web-api": "^2.3.13",
73
+ "eslint-plugin-react-x": "^2.3.13",
74
74
  "eslint-plugin-regexp": "^2.10.0",
75
75
  "eslint-plugin-storybook": "0.12.0",
76
- "eslint-plugin-testing-library": "^7.13.5",
76
+ "eslint-plugin-testing-library": "^7.13.6",
77
77
  "eslint-plugin-unicorn": "^62.0.0",
78
78
  "globals": "^16.5.0",
79
79
  "local-pkg": "^1.1.2",
80
- "typescript-eslint": "^8.48.0"
80
+ "typescript-eslint": "^8.49.0"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "eslint": "^9.10.0"
@@ -1,16 +0,0 @@
1
- //#region src/utils/upwarn.ts
2
- /**
3
- * Converts all ESLint rules set to `"warn"` into `"error"`.
4
- *
5
- * @param rules - A partial set of ESLint rules.
6
- *
7
- * @returns A new rules object with all `"warn"` values changed to `"error"`.
8
- */
9
- const upwarn = (rules = {}) => {
10
- return Object.fromEntries(Object.entries(rules).map(([rule, option]) => {
11
- return [rule, option === "warn" ? "error" : option];
12
- }));
13
- };
14
-
15
- //#endregion
16
- export { upwarn as t };