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

Use color rules with mixin arguments #924

Open
stephen-oketta opened this issue Dec 13, 2023 · 1 comment
Open

Use color rules with mixin arguments #924

stephen-oketta opened this issue Dec 13, 2023 · 1 comment

Comments

@stephen-oketta
Copy link

It would be nice to use the color-no-hex or color-named rules with arguments of mixins to prevent the said rules. E.g

@include no-named-color(red) would report red being used.

@nex3
Copy link
Contributor

nex3 commented Dec 13, 2023

Generally, I'd expect any standard stylelint rules that apply to declaration values to apply to all the additional places expression-level syntax can appear in Sass, including mixin arguments, Sass variable declarations, and interpolation in at-rules, property names, and selectors.

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

No branches or pull requests

2 participants