-
-
Notifications
You must be signed in to change notification settings - Fork 732
Labels
A-LinterArea: linterArea: linterA-ProjectArea: projectArea: projectS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bug
Description
Environment information
CLI:
Version: 2.1.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.13.1
JS_RUNTIME_NAME: node
NODE_PACKAGE_MANAGER: yarn/4.9.2
Biome Configuration:
Status: Loaded successfully
Path: biome.jsonc
Formatter enabled: true
Linter enabled: true
Assist enabled: true
VCS enabled: true
Linter:
JavaScript enabled: unset
JSON enabled: unset
CSS enabled: unset
GraphQL enabled: unset
Recommended: false
Enabled rules:
nursery/noBitwiseOperators
nursery/noFloatingPromises
Workspace:
Open Documents: 0
What happened?
- create a biome.jsonc config file with
"root": falsein a directory somewhere - configure the
lint/nursery/noFloatingPromisesrule in that non-root biome.jsonc file
a. Severity doesn't matter - but for reproduction purposes set to"error" - create a root biome.jsonc file that simply extends the non-root config you created earlier
- add some sample code that breaks the
noFloatingPromisesrule, and run linting - the bug: no rule violation errors are raised π
If we instead move the noFloatingPromises config to the root biome config rule, then the rule works as normal.
This issue doesn't appear to affect the other nursery rules I've tested so far, but admittedly I haven't done an exhaustive check of every rule.
I've created a repo below to reproduce this:
https://github.com/Vhaos/250729-biome-ignored-nofloatingpromises-nursery/
Expected result
We should see the noFloatingPromises flag some errors when configured within a non-root biome.jsonc file as with other rules
Code of Conduct
- I agree to follow Biome's Code of Conduct
Metadata
Metadata
Assignees
Labels
A-LinterArea: linterArea: linterA-ProjectArea: projectArea: projectS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bug