-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstylelint.config.mjs
More file actions
127 lines (127 loc) · 4.23 KB
/
stylelint.config.mjs
File metadata and controls
127 lines (127 loc) · 4.23 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
export default {
extends: ['stylelint-config-standard-scss'],
ignoreFiles: ['node_modules', '**/dist/**/*', '**/coverage/**/*'],
plugins: ['stylelint-order'],
rules: {
'alpha-value-notation': ['percentage'],
'at-rule-empty-line-before': null,
'at-rule-no-unknown': null,
'block-no-empty': [true],
'color-function-notation': ['modern'],
'color-no-invalid-hex': [true],
'comment-no-empty': [true],
'custom-property-pattern': '^_?(example|nl|voorbeeld)-[a-z0-9-]+$',
'declaration-block-no-duplicate-properties': [true, { ignore: ['consecutive-duplicates-with-different-values'] }],
'declaration-block-no-redundant-longhand-properties': null,
'declaration-block-no-shorthand-property-overrides': [true],
'declaration-property-value-disallowed-list': [
{
'text-align': ['left', 'right'],
},
],
'font-family-name-quotes': ['always-unless-keyword'],
'font-family-no-duplicate-names': [true],
'font-family-no-missing-generic-family-keyword': [true],
'font-weight-notation': [
'numeric',
{
ignore: ['relative'],
},
],
'function-calc-no-unspaced-operator': [true],
'function-linear-gradient-no-nonstandard-direction': [true],
'function-url-no-scheme-relative': [true],
'function-url-quotes': ['always'],
'hue-degree-notation': ['number'],
'keyframe-declaration-no-important': [true],
'keyframes-name-pattern': '^(example|nl|voorbeeld)-[a-z0-9-]+$',
'length-zero-no-unit': [
true,
{
ignore: ['custom-properties'],
},
],
'media-feature-name-no-unknown': [true],
'no-descending-specificity': [true],
'no-duplicate-at-import-rules': [true],
'no-duplicate-selectors': [true],
'no-empty-source': [true],
'no-invalid-double-slash-comments': [true],
'order/order': ['custom-properties', 'declarations'],
'order/properties-alphabetical-order': true,
'property-disallowed-list': [
[
'border-bottom',
'border-bottom-color',
'border-bottom-left-radius',
'border-bottom-right-radius',
'border-bottom-style',
'border-bottom-width',
'border-left',
'border-left-color',
'border-left-style',
'border-left-width',
'border-right',
'border-right-color',
'border-right-style',
'border-right-width',
'border-top',
'border-top-color',
'border-top-left-radius',
'border-top-right-radius',
'border-top-style',
'border-top-width',
'bottom',
'contain-intrinsic-height',
'contain-intrinsic-width',
'height',
'left',
'margin',
'margin-bottom',
'margin-left',
'margin-right',
'margin-top',
'max-height',
'max-width',
'min-height',
'min-width',
'padding',
'padding-bottom',
'padding-left',
'padding-right',
'padding-top',
'right',
'scroll-margin-bottom',
'scroll-margin-left',
'scroll-margin-right',
'scroll-margin-top',
'scroll-padding-bottom',
'scroll-padding-left',
'scroll-padding-right',
'scroll-padding-top',
'top',
'width',
],
],
'property-no-unknown': [true],
'property-no-vendor-prefix': null,
'rule-empty-line-before': null,
'scss/at-extend-no-missing-placeholder': null,
'scss/at-mixin-pattern': '^[a-z][a-z0-9-_]*$',
'scss/at-rule-no-unknown': true,
'scss/dollar-variable-default': true,
'scss/dollar-variable-first-in-block': [true, { ignore: ['comments', 'imports'] }],
'scss/dollar-variable-pattern': '^(example|nl|voorbeeld)-[a-z0-9-]+$',
'scss/operator-no-newline-after': null,
'scss/percent-placeholder-pattern': '^(example|nl|voorbeeld)-[a-z0-9-]+$',
'selector-attribute-quotes': ['always'],
'selector-class-pattern': '^(example|nl|voorbeeld)-[a-z0-9_-]+$',
'selector-max-id': [0],
'selector-pseudo-class-no-unknown': [true],
'selector-pseudo-element-no-unknown': [true],
'string-no-newline': [true],
'unit-disallowed-list': [['s']],
'unit-no-unknown': [true],
'value-keyword-case': ['lower', { camelCaseSvgKeywords: true }],
},
};