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] ignore pattern for values #14

Merged
merged 1 commit into from
Oct 27, 2020
Merged

Conversation

zabute
Copy link
Contributor

@zabute zabute commented Feb 19, 2018

This introduces a new option: ignoreValue which takes a Regular Expression and prevents Invalid/Parse warnings for values that match the pattern. Property warnings will still be reported.

It should help with issues like #10 and #11. Another use case is one I came across when building stylelint-processor-glamorous: The processor replaces javascript expressions with a placeholder value before flushing the css to stylelint. This causes spurious Invalid value warnings. I thought about taking care of it within the processor but looking at #10 & #11, I thought it would be best for this validator to handle it.

PR includes:

  • Documentation
  • Tests

@twig
Copy link

twig commented Sep 7, 2018

any chance we can get some action on this PR?

It'd be really handy to have as a temporary solution until scss/less preprocessing is supported

@GerkinDev
Copy link

The repo might be dead, but I still want to up this one. I've just migrated to stylelint with a preconfigured set of strict rules, and I have to disable this rule. 😢

@lahmatiy
Copy link
Member

lahmatiy commented Oct 27, 2020

Thanks @zabute! I'm merging it, and will modify it a little.

@lahmatiy lahmatiy merged commit 3f21aad into csstree:master Oct 27, 2020
@lahmatiy
Copy link
Member

I also added properties and types options to extend syntax dictionary. Check description in readme

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

Successfully merging this pull request may close these issues.

4 participants