Skip to content

Commit

Permalink
stylelint: Adjust rules to stylelint 15
Browse files Browse the repository at this point in the history
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)`.
  • Loading branch information
martinpitt committed Oct 4, 2023
1 parent acb2885 commit 1c62fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"stylelint-use-logical-spec"
],
"rules": {
"indentation": 2,

"declaration-colon-newline-after": null,
"selector-list-comma-newline-after": null,

Expand All @@ -26,6 +24,7 @@
"function-url-quotes": null,
"keyframes-name-pattern": null,
"max-line-length": null,
"media-feature-range-notation": "prefix",
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"scss/at-extend-no-missing-placeholder": null,
Expand All @@ -38,6 +37,7 @@
"scss/operator-no-unspaced": null,
"selector-class-pattern": null,
"selector-id-pattern": null,
"selector-not-notation": "simple",
"liberty/use-logical-spec": "always"
}
}

0 comments on commit 1c62fdf

Please sign in to comment.