-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
package.json: Drop unused cssnano-preset-lite, fix stylelint errors on main #19429
Conversation
Commit 6402df7 updated stylelint, but I foolishly didn't trigger the /devel scenario in that PR. Drop the deprecated "indentation" rule and suppress the `media-feature-range-notation` errors like we did in cockpit-machines. Also explicitly set `selector-not-notation`, as we use nontrivial selectors like `:not(:last-child)`.
@@ -4,8 +4,6 @@ | |||
"stylelint-use-logical-spec" | |||
], | |||
"rules": { | |||
"indentation": 2, | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems suspicious? Why is it dropped?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://stylelint.io/migration-guide/to-15 and https://stylelint.io/user-guide/rules/indentation/ just say that it's deprecated, but not why 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, well as the default is 2 anyway. LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, that could be? They want to stop supporting anything else than 2?
No description provided.