-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
58 lines (58 loc) · 1.7 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
/**
* {@link https://stylelint.io/user-guide/configure/} Documentation
* @type {import('stylelint').Config}
*/
module.exports = {
overrides: [
{
files: ['**/*.scss'],
customSyntax: 'postcss-scss',
},
],
extends: ['stylelint-config-standard', 'stylelint-config-sass-guidelines'],
plugins: ['stylelint-order'],
rules: {
'max-nesting-depth': 10,
'selector-max-compound-selectors': 10,
'selector-no-qualifying-type': [
true,
{
ignore: ['attribute', 'class', 'id'],
},
],
'color-function-notation': 'legacy',
'alpha-value-notation': 'number',
'function-no-unknown': [
true,
{
ignoreFunctions: ['adjust', 'div', 'merge', 'red', 'green', 'blue', 'find-color-invert'],
},
],
// Conflict with prettier
'scss/dollar-variable-colon-space-after': null,
/** {@link https://github.com/bjankord/stylelint-config-sass-guidelines/pull/278} */
'order/order': [
[
'custom-properties',
'dollar-variables',
{
type: 'at-rule',
name: 'extend',
},
{
type: 'at-rule',
name: 'include',
hasBlock: false,
},
'declarations',
{
type: 'at-rule',
name: 'include',
hasBlock: true,
},
'rules',
],
],
'order/properties-alphabetical-order': true,
},
}