-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
64 lines (63 loc) · 1.52 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
/** @type {import('stylelint').Config} */
module.exports = {
extends: [
'stylelint-config-recommended',
'stylelint-config-recommended-scss',
'stylelint-config-css-modules',
'stylelint-config-recess-order',
],
rules: {
'at-rule-empty-line-before': [
'always',
{
except: ['after-same-name', 'inside-block'],
ignoreAtRules: ['each', 'else', 'font-face', 'for', 'function', 'if', 'while', 'keyframes'],
},
],
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'each',
'else',
'error',
'for',
'function',
'if',
'include',
'mixin',
'return',
'use',
'forward',
'at-root',
],
},
],
'color-function-notation': 'legacy',
'color-named': null,
'custom-property-no-missing-var-function': [],
'declaration-empty-line-before': 'never',
'function-name-case': null,
'function-no-unknown': null,
'length-zero-no-unit': true,
'max-nesting-depth': [
4,
{
ignore: ['pseudo-classes', 'blockless-at-rules'],
},
],
'no-duplicate-selectors': true,
'no-descending-specificity': null,
'no-invalid-double-slash-comments': null,
'rule-empty-line-before': [
'always',
{
except: ['first-nested'],
},
],
'selector-max-id': 2,
'selector-pseudo-element-colon-notation': 'double',
},
plugins: ['stylelint-order'],
defaultSeverity: 'warning',
};