-
Notifications
You must be signed in to change notification settings - Fork 727
/
.stylelintrc.js
42 lines (42 loc) Β· 2.86 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
module.exports = {
rules: {
'indentation': [4, { severity: 'warning' }],
'no-missing-end-of-source-newline': [true, { severity: 'warning' }],
'block-opening-brace-space-before': ['always', { severity: 'warning' }],
'declaration-colon-space-after': ['always', { severity: 'warning' }],
'declaration-colon-space-before': ['never', { severity: 'warning' }],
'max-line-length': [120, { severity: 'warning' }],
'selector-list-comma-newline-after': ['always', { severity: 'warning' }],
'selector-combinator-space-before': ['always', { severity: 'warning' }],
'selector-combinator-space-after': ['always', { severity: 'warning' }],
'selector-attribute-quotes': ['always', { severity: 'warning' }],
'block-opening-brace-newline-after': ['always', { severity: 'warning' }],
'selector-no-qualifying-type': [true, { severity: 'warning' }],
'shorthand-property-no-redundant-values': [true, { severity: 'warning' }],
'declaration-no-important': [true, { severity: 'warning' }],
'string-quotes': ['double', { severity: 'warning' }],
'number-leading-zero': ['never', { severity: 'warning' }],
'function-url-quotes': ['never', { severity: 'warning' }],
'length-zero-no-unit': [true, { severity: 'warning' }],
'color-hex-length': ['short', { severity: 'warning' }],
'color-hex-case': ['lower', { severity: 'warning' }],
'color-named': ['never', { severity: 'warning' }],
'font-weight-notation': ['numeric', { severity: 'warning' }],
'font-family-name-quotes': ['always-unless-keyword', { severity: 'warning' }],
'media-feature-range-operator-space-before': ['always', { severity: 'warning' }],
'media-feature-range-operator-space-after': ['always', { severity: 'warning' }],
'media-feature-colon-space-before': ['never', { severity: 'warning' }],
'media-feature-colon-space-after': ['always', { severity: 'warning' }],
'no-duplicate-selectors': [true, { severity: 'warning' }],
'rule-empty-line-before': ['always', { severity: 'warning' }],
'selector-attribute-operator-space-before': ['never', { severity: 'warning' }],
'selector-attribute-operator-space-after': ['never', { severity: 'warning' }],
'declaration-block-trailing-semicolon': ['always', { severity: 'warning' }],
'selector-attribute-brackets-space-inside': ['never', { severity: 'warning' }],
'comment-whitespace-inside': ['always', { severity: 'warning' }],
'comment-empty-line-before': ['always', { severity: 'warning' }],
'selector-pseudo-class-parentheses-space-inside': ['never', { severity: 'warning' }],
'media-feature-parentheses-space-inside': ['never', { severity: 'warning' }],
'function-calc-no-unspaced-operator': [true, { severity: 'warning' }],
},
};