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

property-no-unknown to check for valid values #4827

Closed
jkevingutierrez opened this issue Jun 11, 2020 · 2 comments
Closed

property-no-unknown to check for valid values #4827

jkevingutierrez opened this issue Jun 11, 2020 · 2 comments

Comments

@jkevingutierrez
Copy link

jkevingutierrez commented Jun 11, 2020

What is the problem you're trying to solve?

It would be great to have the ability to check property values to check if they are valid values.

CSS lint have a similar rule known-properties:

In addition to checking the property name, this rule also checks the property value against the property name to ensure proper values are being supplied. Not all properties are supported yet, but a large number are.

image

What solution would you like to see?

The validation could be added to the property-no-unknown or it could also be a new rule that could check property values, like property-no-unknown-values

@jeddy3
Copy link
Member

jeddy3 commented Jun 14, 2020

@jkevingutierrez Thanks for the request and for using the template.

You can use the stylelint-csstree-validator plugin to do this. CSSTree is doing the heavy-lifting here, like the parser behind CSSLint does in their known-properties rule

@jeddy3 jeddy3 closed this as completed Jun 14, 2020
@Mouvedia
Copy link
Contributor

#6511

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

3 participants