-
Notifications
You must be signed in to change notification settings - Fork 13
/
.stylelintrc.js
64 lines (60 loc) · 2.42 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
'use strict';
module.exports = {
rules: {
'at-rule-semicolon-newline-after': 'always',
'block-no-empty': true,
'block-opening-brace-newline-after': 'always',
'block-closing-brace-newline-before': 'always',
'block-opening-brace-space-before': 'always',
'color-hex-length': 'short',
'color-no-invalid-hex': true,
'declaration-block-no-duplicate-properties': [true, { ignore: ['consecutive-duplicates'] }],
'declaration-block-no-shorthand-property-overrides': true,
'declaration-block-trailing-semicolon': 'always',
'function-url-quotes': 'never',
indentation: 2,
'max-empty-lines': 2,
'max-line-length': 200,
'max-nesting-depth': 5,
'no-duplicate-selectors': true,
'no-eol-whitespace': true,
'no-missing-end-of-source-newline': true,
'no-unknown-animations': true,
'length-zero-no-unit': true,
'rule-empty-line-before': ['always-multi-line', { ignore: ['after-comment', 'inside-block'] }],
'string-no-newline': true,
'time-min-milliseconds': 100,
'unit-no-unknown': true,
'function-linear-gradient-no-nonstandard-direction': true,
'property-no-vendor-prefix': null,
'selector-no-vendor-prefix': null,
'value-no-vendor-prefix': true,
'comment-whitespace-inside': 'always',
'declaration-bang-space-after': 'never',
'declaration-bang-space-before': 'always',
'declaration-colon-space-after': 'always',
'declaration-colon-space-before': 'never',
'function-comma-space-after': 'always',
'function-comma-space-before': 'never',
'function-calc-no-unspaced-operator': true,
'function-whitespace-after': 'always',
'media-feature-colon-space-after': 'always',
'media-feature-colon-space-before': 'never',
'media-feature-parentheses-space-inside': 'never',
'media-feature-range-operator-space-after': 'always',
'media-feature-range-operator-space-before': 'always',
'selector-combinator-space-after': 'always',
'selector-combinator-space-before': 'always',
'selector-list-comma-space-after': 'always-single-line',
'selector-list-comma-space-before': 'never',
'value-list-comma-space-after': 'always',
'value-list-comma-space-before': 'never',
'at-rule-name-case': 'lower',
'function-name-case': 'lower',
'property-case': 'lower',
'selector-pseudo-class-case': 'lower',
'selector-pseudo-element-case': 'lower',
'selector-type-case': 'lower',
'unit-case': 'lower',
},
}