-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.stylelintrc.cjs
58 lines (54 loc) · 1.55 KB
/
.stylelintrc.cjs
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
57
58
// SPDX-FileCopyrightText: Nextcloud contributors
// SPDX-License-Identifier: AGPL-3.0-or-later
// keep json compatible key naming (double quotes) and comma trailing
/* eslint-disable quotes, quote-props */
// Align with Nextcloud
// https://github.com/nextcloud/stylelint-config
// const stylelintConfig = require('@nextcloud/stylelint-config'); // eslint-disable-line
// module.exports = stylelintConfig;
// do not include, but unroll manually and extend
// https://github.com/nextcloud/stylelint-config/blob/master/index.js
module.exports = {
extends: [
"stylelint-config-recommended-scss",
"stylelint-config-recommended-vue/scss",
],
ignoreFiles: ['**/*.js', '**/*.ts', '**/*.svg'],
rules: {
// indentation: 'tab',
'selector-type-no-unknown': null,
'number-leading-zero': 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,
'selector-list-comma-newline-after': null,
'no-descending-specificity': null,
'string-quotes': 'single',
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['deep'],
},
],
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['deep'],
},
],
// ------------------------------------
// override Nextcloud tabbing stuff
indentation: 2,
},
};