-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
56 lines (55 loc) · 1.17 KB
/
index.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
47
48
49
50
51
52
53
54
55
56
/**
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
module.exports = {
extends: [
'stylelint-config-recommended-scss',
'stylelint-config-recommended-vue/scss'
],
ignoreFiles: ['**/*.js', '**/*.ts', '**/*.svg'],
rules: {
// Stylistic rules conflicting with prettier
'scss/operator-no-newline-after': null,
'scss/operator-no-newline-before': null,
'selector-type-no-unknown': null,
'rule-empty-line-before': [
'always',
{
ignore: ['after-comment', 'inside-block'],
},
],
'declaration-empty-line-before': [
'never',
{
ignore: ['after-declaration'],
},
],
'comment-empty-line-before': null,
'selector-type-case': null,
'no-descending-specificity': null,
'selector-pseudo-class-no-unknown': [
true,
{
// vue deep pseudo-class
ignorePseudoClasses: ['deep'],
},
],
'selector-pseudo-element-no-unknown': [
true,
{
// Vue deep pseudo-element
ignorePseudoElements: ['deep'],
},
],
},
overrides: [
{
files: ['*.scss', '**/*.scss'],
rules: {
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
},
},
],
}