-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
57 lines (56 loc) · 2.12 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
'use strict';
module.exports = {
extends: 'stylelint-config-recommended-scss',
plugins: [
'stylelint-order'
],
rules: {
'indentation': 4,
'string-quotes': 'single',
'no-duplicate-selectors': true,
'color-hex-case': 'lower',
'color-hex-length': 'long',
'color-named': 'never',
'selector-max-id': 0,
'selector-combinator-space-after': 'always',
'selector-attribute-quotes': 'always',
'selector-attribute-operator-space-before': 'never',
'selector-attribute-operator-space-after': 'never',
'selector-attribute-brackets-space-inside': 'never',
'declaration-block-trailing-semicolon': 'always',
'declaration-colon-space-before': 'never',
'declaration-colon-space-after': 'always',
'property-no-vendor-prefix': true,
'value-no-vendor-prefix': true,
'number-leading-zero': 'always',
'function-url-quotes': 'always',
'font-weight-notation': 'numeric',
'font-family-name-quotes': 'always-unless-keyword',
'comment-whitespace-inside': 'always',
'comment-empty-line-before': 'always',
'at-rule-no-vendor-prefix': true,
'at-rule-empty-line-before': null,
'rule-empty-line-before': ['always', {
except: [
'first-nested',
'after-single-line-comment'
]
}],
'selector-pseudo-element-colon-notation': 'single',
'selector-pseudo-class-parentheses-space-inside': 'never',
'selector-no-vendor-prefix': true,
'block-closing-brace-newline-after': ['always', {
ignoreAtRules: [
'if',
'else'
]
}],
'media-feature-range-operator-space-before': 'always',
'media-feature-range-operator-space-after': 'always',
'media-feature-parentheses-space-inside': 'never',
'media-feature-name-no-vendor-prefix': true,
'media-feature-colon-space-before': 'never',
'media-feature-colon-space-after': 'always',
'order/properties-alphabetical-order': true
}
};