-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
fix: remove outdated stylelint types #254
Conversation
The `@types/stylelint` package is for Stylelint 13. Stylelint 14 includes type declarations already. The issue with installing this dependency in a project that uses Stylelint 14+ is that it includes outdated "postcss" (v7) dependency that might cause issues in the host project.
|
I see, but in this case we will break, stylelint v13 usage... but we can say in docs about using other types for v13 |
Yes, I've added comment about that already. I believe that majority of use cases will not actually require types but there is always a chance of this breaking someone's use case. |
@rchl I just didn't understand why the tests failed |
Looks like |
lts is 16, maybe it's start removing support for node 10? 🤔 |
Thank you everyone involved! 🎉 |
Should it be ported to master too? |
@skjnldsv it should definitely ported to master in my opinion.
|
@ricardogobbosouza friendly ping, we should port it to master |
This PR contains a:
Motivation / Use-Case
The
@types/stylelint
package is for Stylelint 13. Stylelint 14 includes type declarations already.The issue with installing this dependency in a project that uses Stylelint 14+ is that it includes outdated "postcss" (v7) dependency that might cause issues in the host project.
Breaking Changes
For projects that are still using Stylelint 13 this could potentially be a breaking change (if the project interacts with stylelint related types directly). The fix would be to add
@types/stylelint
dependency manually in the project.Even though this is potentially a breaking change, bumping to next major version is not really an option since it's already taken.
Additional Info
@ricardogobbosouza