-
Notifications
You must be signed in to change notification settings - Fork 7
/
stylelint.config.js
43 lines (43 loc) · 1.31 KB
/
stylelint.config.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
module.exports = {
plugins: ['stylelint-prettier'],
extends: [
'stylelint-config-standard',
'stylelint-config-recess-order',
'stylelint-config-prettier',
],
ignoreFiles: [
'./build/css/style.css',
'./src/assets/css/foundation/_html5reset.css',
'./src/assets/css/foundation/_break-point.css',
'./src/assets/css/foundation/_variables.css',
],
rules: {
'no-empty-source': null,
indentation: 2,
'string-quotes': 'single',
'block-no-empty': null,
'function-url-quotes': 'always',
// 'selector-list-comma-space-after': 'always',
'value-list-comma-space-after': 'always-single-line',
// 'function-comma-space-after': 'always',
'no-descending-specificity': null,
'declaration-colon-space-after': 'always-single-line',
'block-opening-brace-space-before': 'always',
// https://stylelint.io/user-guide/rules/rule-empty-line-before#rule-empty-line-before
'rule-empty-line-before': [
'always',
{
except: ['first-nested'],
ignore: ['after-comment'],
},
],
// https://stylelint.io/user-guide/rules/at-rule-empty-line-before#first-nested
'at-rule-empty-line-before': [
'always',
{
except: ['first-nested'],
ignoreAtRules: ['import', 'mixin', 'include', 'define-mixin'],
},
],
},
}