-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylelint.config.js
56 lines (49 loc) · 1.42 KB
/
stylelint.config.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
module.exports = {
extends: 'stylelint-config-standard',
rules: {
// @"always-multi-line"
'rule-empty-line-before': ['always', {
ignore: ['first-nested', 'after-comment'],
}],
/**
* Function (calc, linear-gradient)
*/
'function-url-no-scheme-relative': true,
'function-url-quotes': 'always',
/**
* Color
*/
'color-named': 'never',
'color-hex-case': 'lower',
'color-hex-length': 'long',
/**
* String
*/
'string-quotes': 'single',
/**
* Block
*/
'block-closing-brace-space-after': 'always-single-line',
'block-opening-brace-newline-after': 'always', // @"always-multi-line"
'block-opening-brace-newline-before': 'never-single-line',
'block-closing-brace-empty-line-before': 'never',
/**
* General / Sheet
*/
indentation: 4, // @2
'max-nesting-depth': 4,
'max-line-length': 120,
'max-empty-lines': 1,
'no-eol-whitespace': true,
/**
* Shorthand property
*/
'shorthand-property-no-redundant-values': true,
/**
* Declaration
*/
'declaration-block-no-redundant-longhand-properties': true,
'declaration-no-important': true,
'declaration-empty-line-before': 'never',
},
};