-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
57 lines (57 loc) · 2.16 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
module.exports = {
extends: [
'stylelint-config-recommended',
'stylelint-config-styled-components',
'stylelint-config-concentric-order',
],
rules: {
'block-closing-brace-newline-after': 'always',
'block-closing-brace-newline-before': 'always',
'block-opening-brace-newline-after': 'always',
'block-opening-brace-space-before': 'always',
'declaration-bang-space-after': 'never',
'declaration-bang-space-before': 'always',
'declaration-block-no-duplicate-properties': true,
'declaration-block-semicolon-newline-after': 'always',
'declaration-block-semicolon-space-before': 'never',
'declaration-colon-space-before': 'never',
'declaration-colon-space-after': 'always',
'font-family-no-missing-generic-family-keyword': null,
'font-weight-notation': 'numeric',
'function-calc-no-invalid': true,
'function-calc-no-unspaced-operator': true,
'function-comma-newline-after': 'always-multi-line',
'function-comma-space-after': 'always-single-line',
'function-comma-space-before': 'never',
'function-name-case': [
'lower',
{
ignoreFunctions: [/^get.*$/, /^\${get.*$/, 'hexToRgb', 'invertColor'],
},
],
'function-parentheses-space-inside': 'never',
indentation: [
4,
{
indentInsideParens: 'once-at-root-twice-in-block',
},
],
'length-zero-no-unit': true,
'max-empty-lines': 1,
'no-duplicate-selectors': null,
'rule-empty-line-before': [
'always',
{
except: ['after-single-line-comment', 'first-nested'],
},
],
'selector-list-comma-newline-after': 'always',
'selector-pseudo-class-parentheses-space-inside': 'never',
'selector-pseudo-element-case': 'lower',
'selector-pseudo-element-colon-notation': 'double',
'selector-type-case': 'lower',
'shorthand-property-no-redundant-values': true,
'string-quotes': 'single',
'unit-case': 'lower',
},
};