-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
42 lines (41 loc) · 1.13 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 = {
plugins: [
'stylelint-scss',
'stylelint-order',
],
rules: {
// Base rules
indentation: 2,
'number-leading-zero': 'never',
'string-quotes': 'double',
'selector-max-id': 0,
'selector-list-comma-newline-after': 'always',
'rule-empty-line-before': [
'always',
{ ignore: ['after-comment'] },
],
'comment-empty-line-before': [
'always',
{ except: ['first-nested'] },
],
'block-opening-brace-space-before': 'always',
'declaration-colon-space-after': 'always',
'declaration-colon-space-before': 'never',
'declaration-block-single-line-max-declarations': 1,
'declaration-property-value-blacklist': { '/^border/': ['none'] },
'at-rule-empty-line-before': [
'always',
{ ignore: ['after-comment'], except: ['first-nested'] },
],
// Sass rules
'max-nesting-depth': 2,
'scss/dollar-variable-pattern': '^_?[a-z]+[\\w-]*$',
'scss/at-extend-no-missing-placeholder': true,
'order/order': [
'declarations',
{ type: 'at-rule' },
{ type: 'at-rule', hasBlock: true },
'rules',
],
},
};