Skip to content

Commit a1495c8

Browse files
authored
chore: allow oxlint to run in child worktrees (renovatebot#42153)
As noted in [0], adding the `typeAware` config into `oxlint` leads to usage of Git worktrees (nested under the root repo) failing to run `oxlint`: > renovate@0.0.0-semantic-release oxlint > oxlint Failed to parse oxlint configuration file. × The `options.typeAware` option is only supported in the root config, but it was found in /Users/jamietanna/workspaces/renovatebot/renovate/.worktrees/reviews/.oxlintrc.json. help: Move `options.typeAware` to the root configuration file. This not only breaks pre-commit checks, but regular linting checks. As noted in [0] we can explicitly specify the config file, which avoids this. [0]: oxc-project/oxc#19937
1 parent 41eba99 commit a1495c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.lintstagedrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"*.{js,cjs,mjs,mts,ts}": [
3-
"oxlint --import-plugin --fix",
3+
"oxlint --import-plugin --fix -c .oxlintrc.json",
44
"biome check --write",
55
"prettier --write"
66
],

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"doc-fence-check": "node tools/check-fenced-code.ts",
2323
"lint-documentation": "vitest run --coverage false test/docs/**.spec.ts",
2424
"lint-other": "vitest run --coverage false test/other/**.spec.ts",
25-
"oxlint": "oxlint",
26-
"oxlint-fix": "oxlint --fix",
25+
"oxlint": "oxlint -c .oxlintrc.json",
26+
"oxlint-fix": "oxlint --fix -c .oxlintrc.json",
2727
"biome": "biome check .",
2828
"biome-ci": "biome check --reporter=github .",
2929
"biome-fix": "biome check --write .",

0 commit comments

Comments
 (0)