Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 VSCode does not visually display CSS linting by default #355

Open
1 of 3 tasks
leotroche opened this issue Sep 16, 2024 · 0 comments
Open
1 of 3 tasks

🐛 VSCode does not visually display CSS linting by default #355

leotroche opened this issue Sep 16, 2024 · 0 comments
Labels

Comments

@leotroche
Copy link

VS Code version

1.93.1

Extension version

2.3.0

Biome version

1.9.1

Operating system

  • Windows
  • macOS
  • Linux

Description

Since biome version 1.9.0, the CSS linter and formatter are enabled by default in biome.
https://biomejs.dev/blog/biome-v1-9/#stable-css-formatter-and-linter

However, the VSCode extension does not detect that the css linter is enabled by default unless it is specified in the biome.json file:

"css": {
  "linter": {
    "enabled": true
  }
}

Before enabling css linter manually in biome.json:

{3185DEFE-4D90-44E5-B6F5-4E43E5968898}

After enabling css linter manually in biome.json:

{8CF6E1BB-EE34-4FC2-BFA2-06985AC86F5F}

Additional information: In the playground it is displayed correctly.

Playground

Steps to reproduce

  1. Create an biome.json file with biome init

  2. Create an index.css file with this code:

h2 {
  font-family: sans-serif, monospace, monospace;
}

div {
  transform: unknown(1);
}

The absence of the linter confirms the bug.

If the following configuration is added to biome.json, the linter displays correctly:

"css": {
  "linter": {
    "enabled": true
  }
}

Expected behavior

VSCode should display errors on screen by default, without the need to manually enable css linter in biome.json.

Does this issue occur when using the CLI directly?

No

Link to a minimal reproduction

https://github.com/leotroche/biome-repro-1726486531097

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant