forked from nextcloud/server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylelint.config.js
46 lines (44 loc) · 1.07 KB
/
stylelint.config.js
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
41
42
43
44
45
46
/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/** @type {import('stylelint').Config} */
const config = {
extends: '@nextcloud/stylelint-config',
plugins: ['stylelint-use-logical'],
rules: {
'csstools/use-logical': ['always',
{
except: [
// For now ignore block rules for logical properties
/(^|-)(height|width)$/, /(^|-)(top|bottom)(-|$)/,
// Also ignore float as this is not well supported (I look at you Samsung)
'clear', 'float',
],
},
],
},
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