From f6e6ba4851cc3ed056f43f3e47cc696bede4e259 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 18 Nov 2024 12:25:05 +0100 Subject: refactor(styles): Adjust code style in SCSS sources to match our stylelint config Signed-off-by: Ferdinand Thiessen --- stylelint.config.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'stylelint.config.js') 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 -- cgit v1.2.3