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

package.json: Drop unused cssnano-preset-lite, fix stylelint errors on main #19429

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

martinpitt
Copy link
Member

No description provided.

@martinpitt martinpitt added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Oct 4, 2023
@martinpitt martinpitt requested a review from jelly October 4, 2023 12:10
jelly
jelly previously approved these changes Oct 4, 2023
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)`.
@martinpitt martinpitt requested a review from jelly October 4, 2023 12:23
@martinpitt martinpitt changed the title package.json: Drop unused cssnano-preset-lite package.json: Drop unused cssnano-preset-lite, fix styleint errors on main Oct 4, 2023
@martinpitt martinpitt changed the title package.json: Drop unused cssnano-preset-lite, fix styleint errors on main package.json: Drop unused cssnano-preset-lite, fix stylelint errors on main Oct 4, 2023
@@ -4,8 +4,6 @@
"stylelint-use-logical-spec"
],
"rules": {
"indentation": 2,

Copy link
Member

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?

Copy link
Member Author

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 🤷‍♂️

Copy link
Member

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.

Copy link
Member Author

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?

@martinpitt martinpitt requested a review from jelly October 4, 2023 13:01
@martinpitt martinpitt merged commit 1c62fdf into cockpit-project:main Oct 4, 2023
41 checks passed
@martinpitt martinpitt deleted the cssnano branch October 4, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-test For doc/workflow changes, or experiments which don't need a full CI run,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants