@naturalcycles/dev-lib 19.25.3 → 19.25.5

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.
@@ -73,7 +73,7 @@ const linters = {
73
73
  return [
74
74
  biomeCmd,
75
75
  eslintConfigPathRoot &&
76
- `${eslintCmd} --config ${eslintConfigPathRoot} --cache-location node_modules/.cache/eslint_src`,
76
+ `${eslintCmd} --config ${eslintConfigPathRoot} --parser-options=tsconfigRootDir:. --cache-location node_modules/.cache/eslint_src`,
77
77
  prettierCmd,
78
78
  ]
79
79
  .filter(Boolean)
@@ -155,7 +155,7 @@ if (fs.existsSync(`./scripts`)) {
155
155
  return [
156
156
  biomeCmd,
157
157
  eslintConfigPathScripts &&
158
- `${eslintCmd} --config ${eslintConfigPathScripts} --parser-options=project:scripts/tsconfig.json --cache-location node_modules/.cache/eslint_scripts`,
158
+ `${eslintCmd} --config ${eslintConfigPathScripts} --parser-options=project:scripts/tsconfig.json --parser-options=tsconfigRootDir:. --cache-location node_modules/.cache/eslint_scripts`,
159
159
  prettierCmd,
160
160
  ]
161
161
  .filter(Boolean)
@@ -176,7 +176,7 @@ if (fs.existsSync(`./e2e`)) {
176
176
  return [
177
177
  biomeCmd,
178
178
  eslintConfigPathE2e &&
179
- `${eslintCmd} --config ${eslintConfigPathE2e} --parser-options=project:e2e/tsconfig.json --cache-location ./node_modules/.cache/eslint_e2e`,
179
+ `${eslintCmd} --config ${eslintConfigPathE2e} --parser-options=project:e2e/tsconfig.json --parser-options=tsconfigRootDir:. --cache-location ./node_modules/.cache/eslint_e2e`,
180
180
  prettierCmd,
181
181
  ]
182
182
  .filter(Boolean)
@@ -65,6 +65,7 @@ const commands = [
65
65
  desc: 'Run "lint-staged", which runs linter on git staged files.',
66
66
  },
67
67
  { name: 'eslint', fn: eslintAll, desc: 'Run eslint on all files.' },
68
+ { name: 'eslint-no-fix', deprecated: true, fn: async () => await eslintAll({ fix: false }) },
68
69
  {
69
70
  name: 'eslint --no-fix',
70
71
  fn: async () => await eslintAll({ fix: false }),
package/dist/lint.util.js CHANGED
@@ -130,6 +130,8 @@ async function runESLint(dir, extensions = eslintExtensions.split(','), fix = tr
130
130
  eslintConfigPath,
131
131
  `${dir}/**/*.{${extensions.join(',')}}`,
132
132
  `--parser-options=project:${tsconfigPath}`,
133
+ // The next line fixes the `typescript-eslint` 8.37 bug of resolving tsconfig.json
134
+ `--parser-options=tsconfigRootDir:.`,
133
135
  '--cache',
134
136
  '--cache-location',
135
137
  cacheLocation,
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "19.25.3",
4
+ "version": "19.25.5",
5
5
  "dependencies": {
6
- "@biomejs/biome": "^2",
6
+ "@biomejs/biome": "2.1.3",
7
7
  "@commitlint/cli": "^19",
8
8
  "@commitlint/config-conventional": "^19",
9
9
  "@eslint/js": "^9",
@@ -24,12 +24,10 @@
24
24
  "micromatch": "^4",
25
25
  "mitm": "^1",
26
26
  "prettier": "^3",
27
- "typescript-eslint": "8.36.0",
27
+ "typescript-eslint": "^8",
28
28
  "vue-eslint-parser": "^10"
29
29
  },
30
30
  "peerDependencies": {
31
- "@biomejs/biome": "^2",
32
- "eslint": "^9",
33
31
  "husky": "^9",
34
32
  "stylelint": "^16",
35
33
  "stylelint-config-standard-scss": "^15",
@@ -103,6 +101,8 @@
103
101
  "test-integration": "tsx ./src/bin/dev-lib.ts test-integration",
104
102
  "test-manual": "tsx ./src/bin/dev-lib.ts test-manual",
105
103
  "lint": "tsx ./src/bin/dev-lib.ts lint",
104
+ "eslint": "tsx ./src/bin/dev-lib.ts eslint",
105
+ "eslint-no-fix": "tsx ./src/bin/dev-lib.ts eslint-no-fix",
106
106
  "lint-staged-debug": "tsx ./src/bin/dev-lib.ts lint-staged"
107
107
  }
108
108
  }