stylelint / vscode-stylelint

The official Visual Studio Code extension for Stylelint

Home Page:https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature]: Surface "Error: No rules found within configuration. Have you provided a "rules" property?"

jeddy3 opened this issue · comments

What problem does this feature solve?

Users are unaware if no rules are turned on in their configuration because the extension doesn't surface this error.

How does this feature solve the problem?

Given a config of:

const config = {};
export default config;

The Stylelint CLI shows the following error:

jeddy3@mac stylelint-test % npx stylelint "**/*.css"
Error: No rules found within configuration. Have you provided a "rules" property?

The extension should surface this error. It'll also help users who accidentally set stylelint.config to {}, which has cropped up a few times.

stylelint/stylelint#7429

What are some alternatives to this feature?

No response

Code of Conduct

  • I agree to follow vscode-stylelint's Code of Conduct