Closed tlylt closed 7 months ago
Can I try doing this migration?
It seems that stylelint
is moving to remove a lot of its features and to reimplement them may require more dependencies.
Before I move on, I would like to know how we feel about adding more dependencies.
We have been using stylelint
to check .vue
files but it is not supported by default anymore.
It is recommended to use stylelint-config-recommended-vue instead.
The developers mentioned that all non-css extensions will be maintained by communities instead. link to their discussion We may need to either create and maintain one ourselves or hop from library to library if this stylelint-config-recommended-vue stops being maintained.
The recommended library seems to be more strict than the previous version. Not sure whether to follow stricter standards or to disable them.
Warning: Long error logs ahead:
stylelint
will remove all "stylistic" / formatting rules that are found in prettier
in the next iteration.
It is recommended to use either library, styelistic or code-guide.
Alternatively we can bring prettier
in as stylelint
seems to want to complement prettier
in development. link to their discussion
When updating the stylelint
peer stylelint-config-standard
, the deprecated rules were already removed in a previous version...
Before I move on, I would like to know how we feel about adding more dependencies.
Depends on the impact of the dependency.
The recommended library seems to be more strict than the previous version. Not sure whether to follow stricter standards or to disable them.
Can go with stricter, but need to assess if all errors that are being flagged now can be rectified/worth rectifying/any concerns
It is recommended to use either library, styelistic or code-guide. Alternatively we can bring prettier in as stylelint seems to want to complement prettier in development. https://github.com/stylelint/stylelint/issues/6342
Can with the former, and put the prettier option up as another issue for discussion
Hope that answers all your questions. Before you proceed, could you summarize your intended actions just so we are on the same page pls.
Please confirm that you have searched existing issues in the repo
Yes, I have searched the existing issues
Any related issues?
2666
Tell us about your environment
Windows 10
MarkBind version
Master branch
Describe the bug and the steps to reproduce it
Stylelint is outdated and migrating it to latest is necessary for a security update (See #2666). This cannot be done automatically due to differences across the versions. See the CI check error in that PR (copied below for reference).
Expected behavior
Migrate stylelint with appropriate updates to the current configurations, according to their migration guide: https://stylelint.io/
Anything else?
No response