-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
Remove function-calc-no-invalid #4731
Comments
We will become not a linter, but the second prettier with options and the ability to install plugins Other our rules also can be broken, invalid AST === broken rule |
Thus we lose our main goal. For me personally it is very sad that we sacrifice the main goal because of performance, what for us at the moment is not critical at all. We constantly recommend using csstree for validation. Does anyone really use this? It contains many bugs and is still under development. If necessary, I can provide examples. I agree After we transfer them, who will maintenance these repositories, I think no one. Let's look on real world:
These are my thoughts |
All good points.
We could move only |
Agree, let's move |
The generated parser that sits behind the
function-calc-no-invalid
rule weighs 130k.This is smaller than the very heavy
*-no-vendor-prefix
rules (see (#4730), but 130k is still a significant weight to a browser bundle and is problematic for #3935.Additionally, @evilebottnawi mentioned in #2454 (comment) that the rule is problematic for other reasons.
Move the rule into a plugin.
We should consider using this opportunity to move the other validator rules into a plugin, e.g.
at-rule-no-unknown
. Including the validator rules in core is:Users can choose whether and how they want to validate their CSS:
@stylelint/plugin-validate
plugin if they want to use stylelint to validate (as best it can)Shared configs like
stylelint-scss
could include the plugin and configure it appropriately.The text was updated successfully, but these errors were encountered: