Replies: 2 comments 2 replies
-
Update: I've made some progress on this issue. I managed to address the problem of executing commands in different directories using package scripts in combination with the Here are the steps I followed in each of the project folders:
Then, I added the following script to each "lint": "pnpm biome lint ./" By running Additionally, I utilized a packages:
- 'example' With this setup, executing |
Beta Was this translation helpful? Give feedback.
-
However, I haven't been able to resolve the issue with the Visual Studio Code extension. My VSCode still follows the lint rules specified in the root directory's biome.jsonc, completely ignoring the configurations in subdirectories. How can I make the VSCode extension adhere to the nearest configuration file? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've encountered a problem that I can't seem to solve on my own. Below is the structure of my project directory for reference:
. ├── biome.jsonc ├── code │ ├── biome.jsonc │ └── index.js └── root.js
The issue I'm encountering is that the linting for
./code/index.js
does not adhere to the configurations set in its siblingbiome.jsonc
file, instead, it only responds to the configurations set in the root./biome.jsonc
file. This behavior persists regardless of whether thelint.enable
setting in the configuration is set totrue
orfalse
. However, the configuration specified in the root./biome.jsonc
file is effective.I have tested two scenarios:
lint.enable
set tofalse
in./biome.jsonc
, and set totrue
in./code/index.js
, the linting for./code/index.js
does not work.lint.enable
set totrue
in./biome.jsonc
, and set tofalse
in./code/index.js
, linting still applies to./code/index.js
as if the setting was notfalse
.Additionally, attempting to use
overrides
in./code/index.js
has no effect.It's worth noting that this behavior is consistent across both CLI and LSP, indicating that only the root directory configuration is recognized.
Could anyone please advise on how to resolve this issue so that the subdirectory's configuration is respected?
I have provided a repository to replicate the issue, which can be found at:
https://github.com/GOWxx/vscode-biome-nested-folder-bug-demo
Thank you in advance for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions