@codfish/eslint-config 0.0.0-PR-155--2a9a213 → 0.0.0-PR-143--f3e67b3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../utils.js"],"names":[],"mappings":"AAyBA;;;GAGG;AACH,uDAKC;AAED,6EAKC;AA1BgC,4CAA+D;AAA/D,+CAA+D;AAA/D,gDAA+D;AAMzF,8CAA8E;AAE9E,yDAAmE"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../utils.js"],"names":[],"mappings":"AAyBA;;;GAGG;AACH,uDAMC;AAED,6EAKC;AA3BgC,4CAA+D;AAA/D,+CAA+D;AAA/D,gDAA+D;AAMzF,8CAA8E;AAE9E,yDAAmE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codfish/eslint-config",
3
- "version": "0.0.0-PR-155--2a9a213",
3
+ "version": "0.0.0-PR-143--f3e67b3",
4
4
  "description": "Modern ESLint configuration with TypeScript, React, and testing framework support.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -58,9 +58,9 @@
58
58
  "@commitlint/config-conventional": "^20.4.2",
59
59
  "@eslint/js": "^10.0.0",
60
60
  "@eslint/json": "^1.0.1",
61
- "@eslint/markdown": "^8.0.0",
62
- "@html-eslint/eslint-plugin": "^0.58.0",
63
- "@html-eslint/parser": "^0.58.0",
61
+ "@eslint/markdown": "^7.5.1",
62
+ "@html-eslint/eslint-plugin": "^0.57.1",
63
+ "@html-eslint/parser": "^0.57.1",
64
64
  "@next/eslint-plugin-next": "^16.1.6",
65
65
  "@tanstack/eslint-plugin-query": "^5.91.4",
66
66
  "@vitest/eslint-plugin": "^1.6.9",
@@ -87,8 +87,8 @@
87
87
  "doctoc": "^2.3.0",
88
88
  "eslint": "^10.0.2",
89
89
  "husky": "^9.1.7",
90
- "lint-staged": "^17.0.0",
91
- "typescript": "^6.0.0",
90
+ "lint-staged": "^16.3.0",
91
+ "typescript": "^5.9.2",
92
92
  "vitest": "^4.0.18"
93
93
  },
94
94
  "engines": {
@@ -128,6 +128,6 @@
128
128
  ]
129
129
  },
130
130
  "volta": {
131
- "node": "24.14.1"
131
+ "node": "24.14.0"
132
132
  }
133
133
  }
package/utils.js CHANGED
@@ -28,7 +28,8 @@ export const ifAnyDep = (deps, t, f) => (hasAnyDep([deps].flat()) ? t : f);
28
28
  * Returns the major version as a string (e.g. '18', '19'), or null if not found.
29
29
  */
30
30
  export function getDepVersion(dep) {
31
- const spec = pkg?.dependencies?.[dep] || pkg?.devDependencies?.[dep] || pkg?.peerDependencies?.[dep];
31
+ const spec =
32
+ pkg?.dependencies?.[dep] || pkg?.devDependencies?.[dep] || pkg?.peerDependencies?.[dep];
32
33
  if (!spec) return null;
33
34
  const match = spec.match(/\d+/);
34
35
  return match ? match[0] : null;