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
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-rational-order',
'stylelint-config-recommended-vue',
],
rules: {
'no-empty-source': null,
'alpha-value-notation': null,
'color-function-notation': null,
'color-hex-length': 'short',
'custom-property-pattern': null,
'font-family-no-missing-generic-family-keyword': null,
'function-url-quotes': null,
'no-descending-specificity': null,
'property-no-vendor-prefix': null,
'selector-class-pattern': [
'^([a-z][a-z0-9]*)(((-{1,2})|(_{2}))[a-z0-9]+)*$',
{
message: 'Expected class selector to be BEM, more: http://getbem.com/naming/',
},
],
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['function', 'if', 'for', 'else', 'each', 'mixin', 'apply'],
},
],
'function-no-unknown': [
true,
{
ignoreFunctions: ['fade'],
},
],
'value-no-vendor-prefix': null,
'declaration-empty-line-before': null,
'import-notation': 'string',
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['deep', 'global'],
},
],
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['v-deep', 'v-global', 'v-slotted'],
},
],
},
overrides: [
{
files: '**/*.scss',
customSyntax: 'postcss-scss',
},
{
files: '**/*.html',
customSyntax: 'postcss-html',
},
],
}