-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy path.stylelintrc.js
44 lines (44 loc) · 1.5 KB
/
.stylelintrc.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
module.exports = {
extends: [
'stylelint-config-recommended',
'stylelint-config-recommended-scss',
'stylelint-config-property-sort-order-smacss',
],
plugins: [
'stylelint-declaration-block-no-ignored-properties',
],
rules: {
'plugin/declaration-block-no-ignored-properties': true,
'no-empty-source': true,
'color-hex-length': 'short',
'color-no-invalid-hex': true,
'indentation': 2,
'length-zero-no-unit': true,
"max-empty-lines": 2,
'string-quotes': 'single',
'declaration-block-no-duplicate-properties': [
true,
{
ignore: [
'consecutive-duplicates'
]
}
],
'block-opening-brace-space-before': 'always',
'block-opening-brace-newline-after': 'always',
'block-closing-brace-newline-after': 'always',
'block-closing-brace-newline-before': 'always',
'selector-list-comma-space-before': 'never',
'selector-list-comma-newline-after': 'always',
'selector-pseudo-element-colon-notation': 'double',
'value-list-comma-newline-after': 'always-multi-line',
'value-list-comma-space-after': 'always-single-line',
'value-list-comma-space-before': 'never',
'declaration-block-trailing-semicolon': 'always',
'declaration-block-semicolon-newline-after': 'always-multi-line',
'declaration-block-semicolon-newline-before': 'never-multi-line',
'declaration-block-semicolon-space-after': 'always-single-line',
'no-extra-semicolons': true,
'no-missing-end-of-source-newline': true,
},
};