-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstylelint.config.cjs
77 lines (74 loc) · 1.81 KB
/
stylelint.config.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module.exports = {
"extends": [
'stylelint-config-standard-scss',
'stylelint-config-standard-vue/scss'
],
plugins: ['stylelint-order'],
rules: {
// Support SCSS imports
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
'string-quotes': 'single',
'order/order': [
[
{
name: 'use',
type: 'at-rule',
},
{
name: 'import',
type: 'at-rule',
},
'dollar-variables',
'custom-properties',
'at-rules',
'declarations',
{
type: 'at-rule',
name: 'media',
},
{
type: 'at-rule',
name: 'container',
},
'rules',
],
],
indentation: 'tab',
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['deep'],
},
],
'value-keyword-case': [
'lower',
{
ignoreProperties: ['--token'],
},
],
'order/properties-alphabetical-order': true,
'selector-class-pattern': '-?ds-[a-z][a-zA-Z_]*',
// Disable recommended rules, consider enabling them when you have time
'alpha-value-notation': null,
'color-function-notation': null,
'declaration-block-no-redundant-longhand-properties': null,
'declaration-colon-newline-after': null,
'function-url-quotes': null,
'keyframes-name-pattern': null,
'max-line-length': null,
'property-no-vendor-prefix': null,
'rule-empty-line-before': null,
'scss/at-extend-no-missing-placeholder': null,
'scss/at-mixin-pattern': null,
'scss/at-mixin-argumentless-call-parentheses': null,
'scss/dollar-variable-empty-line-before': null,
'scss/dollar-variable-pattern': null,
'scss/double-slash-comment-empty-line-before': null,
'scss/no-global-function-names': null,
'selector-not-notation': null,
'value-list-comma-newline-after': null,
'value-no-vendor-prefix': null,
},
ignoreFiles: ['lib/styles/settings/typography/_tokens.scss'],
};