microsoft / vscode-eslint

VSCode extension to integrate eslint into VSCode
MIT License
1.73k stars 333 forks source link

why it's not working for .css files? #1730

Open zzzgit opened 10 months ago

zzzgit commented 10 months ago
image
zzzgit commented 10 months ago

Eventhough, I added "eslint.probe"=[..., "css"].

dbaeumer commented 10 months ago

Are eslint errors detected in css files when you run eslint in the terminal. If that works can you please provide me with a GitHub repository with minimal setup I can clone that demos that it doesn't work in VS Code.

zzzgit commented 9 months ago

I didn't enable it as a formator in settings.json

zzzgit commented 8 months ago
{
  "eslint.format.enable": true,
  "eslint.probe": [
          "javascript",
          "javascriptreact",
          "typescript",
          "typescriptreact",
          "html",
          "vue",
          "markdown",
          "css"
  ],
  "editor.defaultFormatter": "dbaeumer.vscode-eslint",
  "[css]": {
          // "editor.defaultFormatter": "vscode.css-language-features",
          "editor.defaultFormatter": "aeschli.vscode-css-formatter",
  },
}

Even though I've set it like this, the tool won't lint .css files at all.

zzzgit commented 8 months ago

image

dbaeumer commented 8 months ago

@zzzgit can you please provide me with a minimal GitHub repository I can clone that demos that. Very hard to say what is causing this without being able to reproduce.

kuoruan commented 1 month ago

@zzzgit Finally fixed by set eslint.validate

  "eslint.validate": [
    "css",
    "scss"
  ],