-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.cjs
69 lines (60 loc) · 2.21 KB
/
.stylelintrc.cjs
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
62
63
64
65
66
67
68
69
module.exports = {
root: true,
fix: false,
extends: ['stylelint-config-standard', 'stylelint-config-sass-guidelines', 'stylelint-config-outside-in-order'],
plugins: [
// sass is still not working with stylelint :(
// 'stylelint-no-unsupported-browser-features',
'stylelint-high-performance-animation',
'stylelint-declaration-block-no-ignored-properties',
'stylelint-declaration-strict-value',
],
reportInvalidScopeDisables: true,
reportNeedlessDisables: true,
rules: {
/* these rules aren't compatible with SASS in .vue files and therefore turned off on
global level */
'@stylistic/block-opening-brace-space-before': null,
'@stylistic/block-opening-brace-space-after': null,
'@stylistic/block-closing-brace-space-before': null,
'@stylistic/block-closing-brace-newline-before': null,
'@stylistic/declaration-block-trailing-semicolon': null,
'@stylistic/indentation': 4,
'@stylistic/string-quotes': 'single',
'@stylistic/max-empty-lines': 3,
'at-rule-no-vendor-prefix': true,
'media-feature-name-no-vendor-prefix': true,
'property-no-vendor-prefix': true,
'selector-no-vendor-prefix': true,
'value-no-vendor-prefix': true,
'max-nesting-depth': 3,
'selector-max-id': 1,
'selector-no-qualifying-type': null,
'no-descending-specificity': null,
'font-family-name-quotes': 'always-where-recommended',
'font-family-no-missing-generic-family-keyword': null,
// 'plugin/no-unsupported-browser-features': [
// true,
// {
// ignorePartialSupport: true,
// severity: 'warning',
// },
// ],
'plugin/no-low-performance-animation-properties': true,
'plugin/declaration-block-no-ignored-properties': true,
},
overrides: [
{
files: ['**/*.html'],
customSyntax: 'postcss-html',
},
{
files: ['**/*.vue'],
customSyntax: 'postcss-html',
},
{
files: ['**/*.sass'],
customSyntax: 'postcss-sass',
},
],
}