-
Notifications
You must be signed in to change notification settings - Fork 25
/
.stylelintrc.js
67 lines (67 loc) · 1.79 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
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-rational-order',
'stylelint-config-prettier',
],
plugins: [
'stylelint-order',
'stylelint-config-rational-order/plugin',
'stylelint-scss',
],
rules: {
indentation: 2, // 缩进2个空格
'string-quotes': 'single',
'number-leading-zero': 'never',
'declaration-block-trailing-semicolon': 'always',
'max-empty-lines': 1,
'block-closing-brace-empty-line-before': ['never'],
'declaration-empty-line-before': ['never', { ignore: ['after-declaration'] }],
'length-zero-no-unit': true,
'no-eol-whitespace': true,
'no-missing-end-of-source-newline': true,
'comment-whitespace-inside': 'always',
'selector-combinator-space-before': 'always',
'block-opening-brace-space-before': 'always',
'comment-whitespace-inside': 'always',
'declaration-colon-space-after': 'always',
'declaration-colon-space-before': 'never',
'declaration-block-semicolon-space-before': 'never',
'function-comma-space-after': 'always',
'selector-combinator-space-before': 'always',
'selector-combinator-space-after': 'always',
'selector-list-comma-space-after': 'always',
'selector-descendant-combinator-no-non-space': true,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
},
syntax: 'scss',
ignoreFiles: [
'src/**/*',
'node_modules/**/*',
'dist/**/*',
'docs-dist/**/*',
'docs/**/*',
'tests/**/*',
'**/*.png',
'**/*.jpg',
'**/*.jpeg',
'**/*.PNG',
'**/*.JPG',
'**/*.JPEG',
'**/*.svg',
'**/*.eot',
'**/*.svg',
'**/*.ttf',
'**/*.woff',
'**/*.woff2',
'**/*.otf',
'**/*.txt',
'**/*.js',
'**/*.json',
'**/*.font',
'**/*.md',
'**/*.min.*',
'.*',
],
}