-
Notifications
You must be signed in to change notification settings - Fork 0
/
scss.js
109 lines (107 loc) · 4.07 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* eslint-disable multiline-comment-style */
export default {
plugins: ['stylelint-scss'],
customSyntax: 'postcss-scss',
rules: {
'scss/at-each-key-value-single-line': [true, { severity: 'warning' }],
'scss/at-extend-no-missing-placeholder': true,
'scss/at-function-pattern': [/^[\d_a-z-]+$/],
'scss/at-function-named-arguments': [
'always',
{ ignore: ['single-argument'], severity: 'warning' }
],
'function-no-unknown': null,
'scss/function-no-unknown': [true, { severity: 'warning' }],
'scss/at-if-no-null': null,
'scss/at-import-partial-extension': 'never',
'scss/at-mixin-argumentless-call-parentheses': [
'always',
{ severity: 'warning' }
],
'scss/at-mixin-pattern': [/^[\d_a-z-]+$/],
'scss/at-mixin-named-arguments': [
'always',
{ ignore: ['single-argument'], severity: 'warning' }
],
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': [true, { severity: 'warning' }],
'scss/at-rule-conditional-no-parentheses': null,
'scss/at-use-no-unnamespaced': null,
'at-rule-disallowed-list': [['debug'], { severity: 'warning' }],
'scss/dollar-variable-empty-line-before': null,
'scss/dollar-variable-no-missing-interpolation': true,
'scss/dollar-variable-pattern': [/^[\d_a-z-]+$/],
'scss/dollar-variable-default': null,
'scss/dollar-variable-no-namespaced-assignment': true,
'scss/percent-placeholder-pattern': [/^[\d_a-z-]+$/],
'scss/dollar-variable-empty-line-after': [
'always',
{ except: ['before-dollar-variable'] }
],
'scss/dollar-variable-first-in-block': [
true,
{ ignore: ['comments', 'imports'] }
],
'scss/double-slash-comment-empty-line-before': null,
'scss/double-slash-comment-inline': null,
'scss/double-slash-comment-whitespace-inside': 'always',
'scss/comment-no-loud': null,
'scss/comment-no-empty': null,
'scss/dimension-no-non-numeric-values': true,
'scss/function-quote-no-quoted-strings-inside': null,
'scss/function-unquote-no-unquoted-strings-inside': null,
'scss/function-color-relative': [true, { severity: 'warning' }],
'scss/map-keys-quotes': ['always', { severity: 'warning' }],
'scss/declaration-nested-properties': 'never',
'scss/declaration-nested-properties-no-divided-groups': null,
'scss/media-feature-value-dollar-variable': null,
'scss/partial-no-import': null,
'scss/selector-no-redundant-nesting-selector': [
true,
{ severity: 'warning' }
],
'scss/selector-nest-combinators': null,
'scss/selector-no-union-class-name': null,
'scss/no-duplicate-mixins': true,
'scss/no-duplicate-dollar-variables': true,
'scss/no-dollar-variables': null,
'scss/no-global-function-names': null,
'no-duplicate-selectors': null,
'annotation-no-unknown': [
true,
{
ignoreAnnotations: ['default', 'global']
}
],
'scss/at-root-no-redundant': true,
'scss/at-use-no-redundant-alias': null,
'scss/block-no-redundant-nesting': null,
'scss/function-calculation-no-interpolation': true,
'scss/function-disallowed-list': null,
'scss/load-no-partial-leading-underscore': true,
'scss/property-no-unknown': null,
'scss/at-import-partial-extension-allowed-list': null,
'scss/at-import-partial-extension-disallowed-list': [
['scss', 'sass'],
{ severity: 'warning' }
],
'scss/no-unused-private-members': null,
// Stylistic rules
// Currently turned off, can probably be removed at later date: https://github.com/stylelint-scss/stylelint-scss/issues/814
'at-rule-empty-line-before': null,
'scss/at-else-closing-brace-newline-after': null,
'scss/at-else-closing-brace-space-after': null,
'scss/at-else-empty-line-before': null,
'scss/at-else-if-parentheses-space-before': null,
'scss/at-function-parentheses-space-before': null,
'scss/at-if-closing-brace-newline-after': null,
'scss/at-if-closing-brace-space-after': null,
'scss/at-mixin-parentheses-space-before': null,
'scss/dollar-variable-colon-newline-after': null,
'scss/dollar-variable-colon-space-after': null,
'scss/dollar-variable-colon-space-before': null,
'scss/operator-no-newline-after': null,
'scss/operator-no-newline-before': null,
'scss/operator-no-unspaced': null
}
};