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

Stylelint 15 support #54

Closed
limonte opened this issue Feb 27, 2023 · 3 comments
Closed

Stylelint 15 support #54

limonte opened this issue Feb 27, 2023 · 3 comments

Comments

@limonte
Copy link
Contributor

limonte commented Feb 27, 2023

warning "[email protected]" has incorrect peer dependency "stylelint@>=7.0.0 <15.0.0".

@rgant
Copy link

rgant commented Feb 27, 2023

#53

@limonte
Copy link
Contributor Author

limonte commented Mar 7, 2023

Good news!

There's a built-in rule in Stylelint 15: declaration-property-value-no-unknown that is doing the same thing.

Unfortunately, that rule works on ly with CSS and doesn't support SASS/LESS:

https://stylelint.io/user-guide/rules/declaration-property-value-no-unknown/

This rule is only appropriate for CSS. You should not turn it on for CSS-like languages, such as Sass or Less, as they have their own syntaxes.

Here's what I did for my projects: sweetalert2/stylelint-config@b17a7f4 + sweetalert2/stylelint-config@969616c (hack to ignore SCSS variables)

@lahmatiy
Copy link
Member

Very sorry in delay for an update. That's fixed in v3.0.0. The fix is also required to drop older versions of Node.js, that's why it's a major version bump due to semver.

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

No branches or pull requests

3 participants