biomejs/biome-vscode

๐Ÿ› Biome Not Linting NestJs Repositories

Closed this issue ยท 3 comments

VS Code version

1.87

Extension version

2.2.1

Biome version

1.5.3

Operating system

  • Windows
  • macOS
  • Linux

Description

Attached is the screenshot of the NestJs controller and what Biome is complaining about

image

biome.json settings as below

 "javascript": {
    "formatter": {
      "quoteStyle": "single",
      "trailingComma": "none"
    },
    "parser": {
      "unsafeParameterDecoratorsEnabled": true
    }
  } 

Steps to reproduce

  1. Open any Nestjs default project
  2. Add biome.json and dependency
  3. Add @param under a @get or @post call

Editor starts complaining

Expected behavior

VSCode extension is not respecting the rules that CLI is respecting

Does this issue occur when using the CLI directly?

No

Logs

No response

Hey @vbasky,

Is there any chance that your biome.json file is not at the root of your workspace folder?

As you can see in the following video, the diagnostic appears when the biome.json file is not at the root of the workspace folder, causing it to fallback to the defaults, in which unsafeParameterDecoratorsEnabledis set to false.

Screen.Recording.2024-03-07.at.05.46.23.mov

@nhedger

Thank you for the quick turnaround that was the issue we had an app folder and the biome.json was within it. That solves it for now but is there a way to configure it within a folder ?

Thanks for confirming @vbasky.

Unfortunately, there isn't support for this in the extension right now.