-
Notifications
You must be signed in to change notification settings - Fork 1
/
.stylelintrc.mjs
51 lines (51 loc) · 1.24 KB
/
.stylelintrc.mjs
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
export default {
extends: ['@wordpress/stylelint-config'],
rules: {
'font-family-name-quotes': 'always-where-recommended',
'function-url-quotes': 'always',
'declaration-property-unit-allowed-list': {
'/^line-height/': ['em', 'rem', 'px'],
},
'comment-empty-line-before': null,
'selector-class-pattern': null,
'selector-id-pattern': null,
'no-descending-specificity': null,
'no-duplicate-selectors': null,
'at-rule-no-unknown': null,
'at-rule-empty-line-before': null,
'at-rule-empty-line-before': [
'always',
{
except: ['blockless-after-same-name-blockless', 'first-nested'],
ignore: ['after-comment'],
},
],
'block-no-empty': true,
'no-empty-source': true,
'declaration-empty-line-before': [
'always',
{
except: ['after-declaration', 'first-nested'],
ignore: ['after-comment', 'inside-single-line-block'],
},
],
'rule-empty-line-before': [
'always-multi-line',
{
except: ['first-nested'],
ignore: ['after-comment'],
},
],
},
overrides: [
{
files: ['*.scss', '**/*.scss'],
extends: '@wordpress/stylelint-config/scss-stylistic',
},
{
files: ['*.css', '**/*.css'],
extends: '@wordpress/stylelint-config/stylistic',
},
],
customSyntax: 'postcss-scss',
};