Skip to content

🐛 Multiple root configs don't work with config-path #7390

@nezouse

Description

@nezouse

Environment information

pnpm biome rage --formatter --linter

CLI:
  Version:                      2.2.2
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  BIOME_THREADS:                unset
  NO_COLOR:                     unset
  TERM:                         xterm-256color
  JS_RUNTIME_VERSION:           v22.18.0
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         pnpm/8.15.6

Biome Configuration:
  Status:                       Not set
  Path:                         unset

Workspace:
  Open Documents:               0

What happened?

Simple reproduction: https://github.com/nezouse/biome-nested-root-config

  1. Install deps with pnpm
  2. Run pnpm check - it should work without issues
  3. Run pnpm check:strict - it should throw an issue with noConsole

Discord ticket link: https://discord.com/channels/1132231889290285117/1412802027964203119

Expected result

One command should fail, the other should exit without errors. But it looks like that even when running biome.strict.json it gets overridden by biome.json, which should not happen

The context is that i want to have strict config for CI usage (and cli in general) and more relaxed one for IDE - so it does not yell at me while im still writing the code. The relaxed one should be called just biome.json so it gets picked up by various IDEs without additional configuration.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

Labels

A-CLIArea: CLIA-ProjectArea: projectS-Bug-confirmedStatus: report has been confirmed as a valid bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions