Skip to content

Commit 46b7004

Browse files
authored
Enable declaration-block-no-redundant-longhand-properties (go-gitea#30950)
Enable [`declaration-block-no-redundant-longhand-properties`](https://stylelint.io/user-guide/rules/declaration-block-no-redundant-longhand-properties/) and autofix issues. The exclusions are because I find these two shorthands to be harder to read.
1 parent f80b403 commit 46b7004

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

Diff for: stylelint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default {
141141
'custom-property-pattern': null,
142142
'declaration-block-no-duplicate-custom-properties': true,
143143
'declaration-block-no-duplicate-properties': [true, {ignore: ['consecutive-duplicates-with-different-values']}],
144-
'declaration-block-no-redundant-longhand-properties': null,
144+
'declaration-block-no-redundant-longhand-properties': [true, {ignoreShorthands: ['flex-flow', 'overflow']}],
145145
'declaration-block-no-shorthand-property-overrides': null,
146146
'declaration-block-single-line-max-declarations': null,
147147
'declaration-empty-line-before': null,

Diff for: web_src/css/modules/grid.css

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
flex-wrap: wrap;
88
align-items: stretch;
99
padding: 0;
10-
margin-top: -1rem;
11-
margin-bottom: -1rem;
12-
margin-left: -1rem;
13-
margin-right: -1rem;
10+
margin: -1rem;
1411
}
1512

1613
.ui.relaxed.grid {

Diff for: web_src/css/modules/menu.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,11 @@
553553
border-bottom: 2px solid var(--color-secondary);
554554
}
555555
.ui.secondary.pointing.menu .item {
556-
border-bottom-color: transparent;
557-
border-bottom-style: solid;
556+
border-bottom: 2px solid transparent;
558557
border-radius: 0;
559558
align-self: flex-end;
560559
margin: 0 0 -2px;
561560
padding: 0.85714286em 1.14285714em;
562-
border-bottom-width: 2px;
563561
}
564562
.ui.secondary.pointing.menu .ui.dropdown .menu .item {
565563
border-bottom-width: 0;

0 commit comments

Comments
 (0)