Skip to content

Commit

Permalink
Enable declaration-block-no-redundant-longhand-properties (#30950)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
silverwind committed May 12, 2024
1 parent f80b403 commit 46b7004
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion stylelint.config.js
Expand Up @@ -141,7 +141,7 @@ export default {
'custom-property-pattern': null,
'declaration-block-no-duplicate-custom-properties': true,
'declaration-block-no-duplicate-properties': [true, {ignore: ['consecutive-duplicates-with-different-values']}],
'declaration-block-no-redundant-longhand-properties': null,
'declaration-block-no-redundant-longhand-properties': [true, {ignoreShorthands: ['flex-flow', 'overflow']}],
'declaration-block-no-shorthand-property-overrides': null,
'declaration-block-single-line-max-declarations': null,
'declaration-empty-line-before': null,
Expand Down
5 changes: 1 addition & 4 deletions web_src/css/modules/grid.css
Expand Up @@ -7,10 +7,7 @@
flex-wrap: wrap;
align-items: stretch;
padding: 0;
margin-top: -1rem;
margin-bottom: -1rem;
margin-left: -1rem;
margin-right: -1rem;
margin: -1rem;
}

.ui.relaxed.grid {
Expand Down
4 changes: 1 addition & 3 deletions web_src/css/modules/menu.css
Expand Up @@ -553,13 +553,11 @@
border-bottom: 2px solid var(--color-secondary);
}
.ui.secondary.pointing.menu .item {
border-bottom-color: transparent;
border-bottom-style: solid;
border-bottom: 2px solid transparent;
border-radius: 0;
align-self: flex-end;
margin: 0 0 -2px;
padding: 0.85714286em 1.14285714em;
border-bottom-width: 2px;
}
.ui.secondary.pointing.menu .ui.dropdown .menu .item {
border-bottom-width: 0;
Expand Down

0 comments on commit 46b7004

Please sign in to comment.