-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.stylelintrc.js
51 lines (51 loc) · 1.25 KB
/
.stylelintrc.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
44
45
46
47
48
49
50
51
module.exports = {
extends: [
//https://github.com/constverum/stylelint-config-rational-order
'stylelint-config-rational-order',
// https://github.com/shannonmoeller/stylelint-config-prettier
'stylelint-config-prettier'
],
overrides: [
{
customSyntax: 'postcss-scss',
files: ['{assets/style,components,layouts,pages}/**/*.{css,sass,scss,less,stylus}']
},
{
customSyntax: 'postcss-html',
files: ['*.vue', '**/*.vue']
}
],
plugins: [
// https://github.com/kristerkari/stylelint-scss#list-of-rules
'stylelint-scss',
// https://github.com/hudochenkov/stylelint-order
'stylelint-order',
'stylelint-config-rational-order/plugin'
],
rules: {
indentation: [
2,
{
baseIndentLevel: 0
}
],
'color-named': 'never',
'color-function-notation': 'legacy',
'at-rule-no-unknown': null,
'declaration-empty-line-before': [
'always',
{
except: ['after-declaration'],
ignore: ['after-comment', 'first-nested', 'inside-single-line-block'],
severity: 'warning'
}
],
'rule-empty-line-before': [
'always',
{
ignore: ['after-comment', 'first-nested'],
severity: 'warning'
}
]
}
}