summaryrefslogtreecommitdiffstats
path: root/stylelint.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-05-12 04:33:05 +0200
committerBeowulf <beowulf@beocode.eu>2024-05-14 17:28:58 +0200
commit8f4e6530201b15936486d0ed007084d2c671bd49 (patch)
tree0dcc0426cfbc26fbf475086fe67abe04459be82b /stylelint.config.js
parentMerge pull request 'Expand code diffs against the commits repo' (#3765) from ... (diff)
downloadforgejo-8f4e6530201b15936486d0ed007084d2c671bd49.tar.xz
forgejo-8f4e6530201b15936486d0ed007084d2c671bd49.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. (cherry picked from commit 46b7004f050bd2fdaf9800794cf2c1e9eeb08d51) Signed-off-by: Beowulf <beowulf@beocode.eu>
Diffstat (limited to 'stylelint.config.js')
-rw-r--r--stylelint.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/stylelint.config.js b/stylelint.config.js
index 523b18841e..2843a449c0 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,