-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathstylelint.config.js
More file actions
55 lines (53 loc) · 1.03 KB
/
stylelint.config.js
File metadata and controls
55 lines (53 loc) · 1.03 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
const wordpressConfig = require('@wordpress/stylelint-config');
const baseConfig = Array.isArray(wordpressConfig)
? wordpressConfig[0]
: wordpressConfig;
module.exports = {
...baseConfig,
customSyntax: 'postcss-scss',
rules: {
...baseConfig.rules,
'declaration-no-important': true,
'no-descending-specificity': null,
'selector-class-pattern': null,
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'apply',
'layer',
'variants',
'responsive',
'screen',
'use',
'include',
'each',
'if',
'else',
'for',
'while',
'function',
'return',
'mixin',
'content',
'extend',
'warn',
'error',
'debug',
],
},
],
'declaration-property-unit-allowed-list': [
{
'font-size': ['em', 'rem'],
'line-height': [],
'/^border/': ['px'],
'/^margin/': ['em', 'rem'],
'/^padding/': ['em', 'rem'],
},
],
'no-invalid-double-slash-comments': null,
'comment-no-empty': null,
'rule-empty-line-before': null,
},
};