@codfish/eslint-config 0.0.0-PR-143--f3e67b3 → 0.0.0-PR-139--a3abe0f

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,uDAMC;AAED,6EAKC;AA3BgC,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,uDAKC;AAED,6EAKC;AA1BgC,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-143--f3e67b3",
3
+ "version": "0.0.0-PR-139--a3abe0f",
4
4
  "description": "Modern ESLint configuration with TypeScript, React, and testing framework support.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -59,8 +59,8 @@
59
59
  "@eslint/js": "^10.0.0",
60
60
  "@eslint/json": "^1.0.1",
61
61
  "@eslint/markdown": "^7.5.1",
62
- "@html-eslint/eslint-plugin": "^0.57.1",
63
- "@html-eslint/parser": "^0.57.1",
62
+ "@html-eslint/eslint-plugin": "^0.58.0",
63
+ "@html-eslint/parser": "^0.58.0",
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",
package/utils.js CHANGED
@@ -28,8 +28,7 @@ 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 =
32
- pkg?.dependencies?.[dep] || pkg?.devDependencies?.[dep] || pkg?.peerDependencies?.[dep];
31
+ const spec = pkg?.dependencies?.[dep] || pkg?.devDependencies?.[dep] || pkg?.peerDependencies?.[dep];
33
32
  if (!spec) return null;
34
33
  const match = spec.match(/\d+/);
35
34
  return match ? match[0] : null;