diff options
author | silverwind <me@silverwind.io> | 2024-05-12 04:33:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-12 02:33:05 +0000 |
commit | 46b7004f050bd2fdaf9800794cf2c1e9eeb08d51 (patch) | |
tree | 411a0f61adfb0da9c64a0c7143f416e6a09026d0 /stylelint.config.js | |
parent | f80b403dc9a263f0805ba9e3cfa9a83af63dc1a0 (diff) | |
download | gitea-46b7004f050bd2fdaf9800794cf2c1e9eeb08d51.tar.gz gitea-46b7004f050bd2fdaf9800794cf2c1e9eeb08d51.zip |
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.
Diffstat (limited to 'stylelint.config.js')
-rw-r--r-- | stylelint.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stylelint.config.js b/stylelint.config.js index 6fee242685..977c35d9d5 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -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, |