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

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

Open
1 task done
jeddy3 opened this issue Jan 7, 2024 · 0 comments
Labels
type: enhancement a new feature that isn't related to rules

Comments

@jeddy3
Copy link
Member

jeddy3 commented Jan 7, 2024

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
@jeddy3 jeddy3 added the type: enhancement a new feature that isn't related to rules label Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement a new feature that isn't related to rules
Projects
None yet
Development

No branches or pull requests

1 participant