-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.stylelintrc.js
executable file
·72 lines (64 loc) · 1.96 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
65
66
67
68
69
70
71
72
// stylelint configuration
// https://stylelint.io/user-guide/configuration/
module.exports = {
// The standard config based on a handful of CSS style guides
// https://github.com/stylelint/stylelint-config-standard
extends: 'stylelint-config-standard',
plugins: [
// stylelint plugin to sort CSS rules content with specified order
// https://github.com/hudochenkov/stylelint-order
'stylelint-order',
],
rules: {
'block-closing-brace-newline-before': null,
'block-closing-brace-newline-after': null,
'at-rule-semicolon-newline-after': null,
'no-descending-specificity': null,
'at-rule-no-unknown': null,
'block-no-empty': null,
'no-empty-source': null,
'max-empty-lines': 4,
'selector-pseudo-element-colon-notation': 'single',
'property-no-unknown': [
true,
{
ignoreProperties: [
// CSS Modules composition
// https://github.com/css-modules/css-modules#composition
'composes',
],
},
],
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: [
// CSS Modules :global scope
// https://github.com/css-modules/css-modules#exceptions
'global',
'local',
],
},
],
'at-rule-empty-line-before': [
'always',
{
ignore: [
'after-comment',
'first-nested',
'inside-block',
'blockless-after-same-name-blockless',
'blockless-after-blockless',
],
},
],
'declaration-block-semicolon-newline-after': null,
// 'no-invalid-double-slash-comments': null,
// Opinionated rule, you can disable it if you want
'string-quotes': 'single',
// https://github.com/hudochenkov/stylelint-order/blob/master/rules/order/README.md
'order/order': [],
// https://github.com/hudochenkov/stylelint-order/blob/master/rules/properties-order/README.md
'order/properties-order': [],
},
};