From 019053885698fed5b572dcd5fd48865b2a049492 Mon Sep 17 00:00:00 2001 From: jan-kubica Date: Wed, 28 Oct 2026 09:18:47 +0100 Subject: [PATCH] fix: inventory conditional workspace lint generators --- .../conditional-lint-generator-inventory.md | 5 + packages/oxlint-config/README.md | 2 +- .../src/toolchain-lint-command.test.ts | 52 +++++++++ .../src/toolchain-lint-command.ts | 56 ++++++++- .../src/toolchain-node-projects.test.ts | 108 ++++++++++-------- 5 files changed, 170 insertions(+), 53 deletions(-) create mode 100644 .changeset/conditional-lint-generator-inventory.md diff --git a/.changeset/conditional-lint-generator-inventory.md b/.changeset/conditional-lint-generator-inventory.md new file mode 100644 index 00000000..c3237da5 --- /dev/null +++ b/.changeset/conditional-lint-generator-inventory.md @@ -0,0 +1,5 @@ +--- +"@stll/oxlint-config": patch +--- + +Track the working directory through bounded conditional Bun generator preparation and inventory the generator's possible nested lint scopes without executing shell conditions. diff --git a/packages/oxlint-config/README.md b/packages/oxlint-config/README.md index cb36f31c..fb2d6803 100644 --- a/packages/oxlint-config/README.md +++ b/packages/oxlint-config/README.md @@ -1267,6 +1267,6 @@ Repositories with a tested staged-path selector can declare its contract explici The script must be tracked, regular and readable without symlinks. The pre-commit command must use exactly `files: bun scripts/precommit-paths.ts` with `run: bun fmt --staged --ignore-unknown {files}` (the `--ignore-unknown` flag is optional), without an additional `glob`, `exclude`, `skip` or `root`. The declaration records repository ownership of the selector's semantics; static inspection does not prove that its output includes every staged path. Keep behavioral tests with that owner. CI still requires a whole-repository `bun fmt --check` without path operands. -Lint inventory follows literal `cd && ...` changes only within declared workspace directories. Literal `bun --cwd= run