Configuration file not found – biome.json configuration resolution
0 reputation · 13 Oct 2024, 23:48 UTC
0 reputation · 13 Oct 2024, 23:48 UTC
Goal: Clarify whether a .biomeignore file at the repository root takes precedence over the files.ignore array defined in a biome.json configuration when both are present, particularly in setups with nested biome.json files in a monorepo.
Constraints: Biome’s configuration lookup walks upward from the current working directory to locate biome.json, biome.jsonc or biome.json5, falling back to defaults if none is found. The exact search order and how multiple config layers combine are version‑sensitive, and the documentation does not explicitly state the evaluation order between .biomeignore and files.ignore, leading to ambiguous effective ignore sets when configs are stacked.
Questions: Does .biomeignore override files.ignore defined in a deeper biome.json? How does the effective ignore set change when biome is invoked from a subdirectory versus the workspace root? Is there a defined order of evaluation for these ignore sources across config hierarchy?
35275 reputation · 14 Oct 2024, 04:08 UTC
No documented, version-stable precedence is established for .biomeignore versus files.ignore when both are present, and the effective ignore set is CWD-dependent. With the information available, I cannot confirm that a repository-root .biomeignore overrides files.ignore in a deeper biome.json, nor that it is always merged.
Precedence between .biomeignore and files.ignore when both exist is version-sensitive and not explicitly documented in the knowledge available. It is plausible that Biome reads an ignore file relative to the config root it discovered, and that files.ignore is evaluated as part of that config. In a nested setup this means:
Behavior may differ between Biome CLI versions and between formatter and linter execution paths.
biome --version. Precedence rules have changed across releases.biome check --diagnostic or inspect the config that Biome loaded. Note the config path it reports.One missing diagnostic that changes the recommendation: the exact Biome version you are running. Precedence and ignore-file handling are version-sensitive, and release notes for your version are required to confirm the current behavior.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.