-
Notifications
You must be signed in to change notification settings - Fork 0
/
scss.js
66 lines (66 loc) · 1.89 KB
/
scss.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
module.exports = {
extends: ['./'],
plugins: ['stylelint-scss'],
rules: {
'at-rule-empty-line-before': [
'always',
{
except: ['blockless-after-same-name-blockless', 'first-nested'],
ignore: ['after-comment'],
ignoreAtRules: ['include'],
},
],
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'each',
'else',
'extend',
'for',
'function',
'if',
'include',
'mixin',
'return',
'while',
],
},
],
'function-name-case': null,
'scss/at-function-parentheses-space-before': 'never',
'scss/at-import-no-partial-leading-underscore': true,
'scss/at-import-partial-extension': 'never',
'scss/at-mixin-argumentless-call-parentheses': 'always',
'scss/at-mixin-named-arguments': [
'always',
{ ignore: ['single-argument'] },
],
'scss/at-mixin-parentheses-space-before': 'never',
'scss/at-rule-no-unknown': true,
'scss/declaration-nested-properties-no-divided-groups': true,
'scss/dollar-variable-colon-space-after': 'always',
'scss/dollar-variable-colon-space-before': 'never',
'scss/dollar-variable-no-missing-interpolation': true,
'scss/double-slash-comment-empty-line-before': [
'always',
{
except: ['first-nested'],
ignore: ['between-comments', 'stylelint-commands'],
},
],
'scss/double-slash-comment-inline': 'never',
'scss/double-slash-comment-whitespace-inside': 'always',
'scss/no-duplicate-dollar-variables': [
true,
{
ignoreInsideAtRules: ['if', 'mixin'],
},
],
'scss/no-duplicate-mixins': true,
'scss/operator-no-newline-after': true,
'scss/operator-no-newline-before': true,
'scss/operator-no-unspaced': true,
'scss/selector-no-redundant-nesting-selector': true,
},
};