-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.stylelintrc.js
82 lines (70 loc) · 2.3 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
module.exports = {
rules: {
'indentation': 2,
'color-hex-length': 'short',
'color-named': 'never',
'color-no-invalid-hex': true,
'font-weight-notation': 'numeric',
'number-leading-zero': 'never',
'number-no-trailing-zeros': true,
'length-zero-no-unit': true,
'value-keyword-case': 'lower',
'value-no-vendor-prefix': true,
'max-nesting-depth': 3,
'max-empty-lines': 2,
'no-duplicate-selectors': true,
// 'no-descending-specificity': true,
// 'no-browser-hacks': true,
'no-extra-semicolons': true,
'no-eol-whitespace': true,
'no-unknown-animations': true,
'comment-no-empty': true,
/**
* selector
* @url: http://stylelint.io/user-guide/rules/#selector
*/
'selector-attribute-brackets-space-inside': 'never',
'selector-attribute-operator-space-before': 'never',
'selector-attribute-operator-space-after': 'never',
'selector-attribute-quotes': 'always',
'selector-combinator-space-before': 'always',
'selector-combinator-space-after': 'always',
'selector-descendant-combinator-no-non-space': true,
'selector-max-compound-selectors': 4,
'selector-no-id': true,
'selector-no-vendor-prefix': true,
'selector-pseudo-class-case': 'lower',
'selector-pseudo-class-no-unknown': [true, {
ignorePseudoClasses: ['global']
}],
'selector-pseudo-class-parentheses-space-inside': 'never',
'selector-pseudo-element-case': 'lower',
'selector-pseudo-element-colon-notation': 'single',
'selector-type-case': 'lower',
/**
* selector list
* @url: http://stylelint.io/user-guide/rules/#selector-list
*/
'selector-list-comma-space-before': 'never',
'selector-list-comma-space-after': 'always',
/**
* at rules
* @url: http://stylelint.io/user-guide/rules/#at-rule
*/
'at-rule-no-vendor-prefix': true,
'at-rule-name-case': 'lower',
'at-rule-name-space-after': 'always',
'at-rule-semicolon-newline-after': 'always',
/**
* curly brace
* @url: http://stylelint.io/user-guide/rules/#block
*/
'block-opening-brace-space-before': 'always',
/**
* function
* @url: https://stylelint.io/user-guide/rules/#function
*/
'function-comma-space-after': 'always',
'function-comma-space-before': 'never',
}
}