diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-11-18 12:25:05 +0100 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-11-19 09:42:13 +0100 |
commit | f6e6ba4851cc3ed056f43f3e47cc696bede4e259 (patch) | |
tree | 50c72a54867fee5ff9c87c727c9cc4041ceaa6f2 /stylelint.config.js | |
parent | 212cac94690ae9c9f0616cff8df69229be88dab1 (diff) | |
download | nextcloud-server-f6e6ba4851cc3ed056f43f3e47cc696bede4e259.tar.gz nextcloud-server-f6e6ba4851cc3ed056f43f3e47cc696bede4e259.zip |
refactor(styles): Adjust code style in SCSS sources to match our stylelint config
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'stylelint.config.js')
-rw-r--r-- | stylelint.config.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/stylelint.config.js b/stylelint.config.js index 03e25cc5bdb..3b0f21b59f5 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -19,6 +19,28 @@ const config = { }, ], }, + overrides: [ + { + files: ['**/*.vue'], + // Override the nextcloud rules to also allow :global (we should put this into the config...) + rules: { + 'selector-pseudo-element-no-unknown': [ + true, + { + // Vue deep and global pseudo-element + ignorePseudoElements: ['deep', 'global'], + }, + ], + 'selector-pseudo-class-no-unknown': [ + true, + { + // vue deep and global pseudo-class + ignorePseudoClasses: ['deep', 'global'], + }, + ], + } + } + ], } module.exports = config |