forked from nextcloud/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylelint.config.js
More file actions
40 lines (36 loc) · 877 Bytes
/
stylelint.config.js
File metadata and controls
40 lines (36 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
const additionalPseudoSelectors = [
// Vue <style scoped>
// See: https://vuejs.org/api/sfc-css-features.html
'deep',
'slotted',
// CSS Modules (including Vue <style module>)
// See: https://github.com/css-modules/css-modules/blob/master/docs/composition.md#exceptions
'global',
'local',
]
/** @type {import('stylelint').Config} */
export default {
extends: '@nextcloud/stylelint-config',
ignoreFiles: [
'**/*.(!(vue|scss))',
],
// remove with nextcloud/stylelint-config 3.1.1+
rules: {
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: additionalPseudoSelectors,
},
],
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: additionalPseudoSelectors,
},
],
},
}