Enable declaration-block-no-redundant-longhand-properties (#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.

(cherry picked from commit 46b7004f050bd2fdaf9800794cf2c1e9eeb08d51)

Signed-off-by: Beowulf <beowulf@beocode.eu>
This commit is contained in:
silverwind 2024-05-12 04:33:05 +02:00 committed by Beowulf
parent a6262a662e
commit 8f4e653020
No known key found for this signature in database
GPG key ID: 44225F5F2792841D
2 changed files with 2 additions and 5 deletions

View file

@ -141,7 +141,7 @@ export default {
'custom-property-pattern': null, 'custom-property-pattern': null,
'declaration-block-no-duplicate-custom-properties': true, 'declaration-block-no-duplicate-custom-properties': true,
'declaration-block-no-duplicate-properties': [true, {ignore: ['consecutive-duplicates-with-different-values']}], '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-no-shorthand-property-overrides': null,
'declaration-block-single-line-max-declarations': null, 'declaration-block-single-line-max-declarations': null,
'declaration-empty-line-before': null, 'declaration-empty-line-before': null,

View file

@ -7,10 +7,7 @@
flex-wrap: wrap; flex-wrap: wrap;
align-items: stretch; align-items: stretch;
padding: 0; padding: 0;
margin-top: -1rem; margin: -1rem;
margin-bottom: -1rem;
margin-left: -1rem;
margin-right: -1rem;
} }
.ui.relaxed.grid { .ui.relaxed.grid {