-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
71 lines (68 loc) · 1.7 KB
/
index.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
module.exports = {
plugins: ['stylelint-order', 'stylelint-scss'],
extends: [
'stylelint-config-standard',
'stylelint-config-sass-guidelines',
'stylelint-config-property-sort-order-smacss',
],
rules: {
'function-parentheses-newline-inside': 'always-multi-line',
'function-parentheses-space-inside': 'never-single-line',
'selector-class-pattern': ['^[a-z0-9\\-_]+$'],
'selector-no-qualifying-type': [true, { ignore: 'class' }],
'order/order': [
[
{
type: 'at-rule',
name: 'import',
},
'custom-properties',
'dollar-variables',
{
type: 'at-rule',
name: 'extend',
},
{
type: 'at-rule',
name: 'include',
hasBlock: false,
},
'declarations',
{
type: 'at-rule',
hasBlock: true,
},
{
type: 'at-rule',
name: 'include',
hasBlock: true,
},
{
type: 'rule',
selector: '/^&:\\w/',
},
{
type: 'rule',
selector: '/^&::\\w/',
},
// Not sure if these next 2 at-rule objects are working
// as intended. Leaving in for now.
{
type: 'at-rule',
name: 'at-root',
hasBlock: true,
},
{
type: 'at-rule',
name: 'each',
hasBlock: true,
},
'rules',
],
],
'order/properties-alphabetical-order': null,
'scss/dollar-variable-colon-space-after': 'at-least-one-space',
// "Pod" component styles make heavy use of `&` selector.
'scss/selector-no-redundant-nesting-selector': null,
},
};