-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.js
91 lines (90 loc) · 3.46 KB
/
index.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
'use strict';
module.exports = {
'extends': [
'stylelint-config-standard',
'stylelint-config-recess-order',
'@stylistic/stylelint-config'
],
'rules': {
'alpha-value-notation': null,
'at-rule-empty-line-before': null,
'color-function-notation': null,
'color-named': 'never',
'custom-property-empty-line-before': null,
'custom-property-pattern': null,
'declaration-block-no-redundant-longhand-properties': null,
'declaration-empty-line-before': null,
'declaration-no-important': true,
'font-weight-notation': [
'numeric',
{
'ignore': [
'relative'
]
}
],
'function-url-no-scheme-relative': true,
'media-feature-range-notation': null,
'media-query-no-invalid': null,
'no-descending-specificity': null,
'number-max-precision': null,
'rule-empty-line-before': null,
'selector-max-attribute': 2,
'selector-max-class': 4,
'selector-max-combinators': 4,
'selector-max-compound-selectors': 4,
'selector-max-id': 0,
'selector-max-specificity': null,
'selector-max-type': 2,
'selector-max-universal': 1,
'selector-no-qualifying-type': true,
'selector-not-notation': null, // TODO enable this later
'@stylistic/at-rule-name-space-after': 'always',
'@stylistic/at-rule-semicolon-space-before': 'never',
'@stylistic/block-closing-brace-empty-line-before': null,
'@stylistic/block-closing-brace-newline-after': null,
'@stylistic/block-opening-brace-space-before': null,
'@stylistic/declaration-block-semicolon-newline-before': 'never-multi-line',
'@stylistic/max-empty-lines': 2,
'@stylistic/max-line-length': null,
'@stylistic/number-leading-zero': 'never',
'@stylistic/selector-list-comma-newline-before': 'never-multi-line',
'@stylistic/selector-list-comma-space-after': 'always-single-line',
'@stylistic/selector-list-comma-space-before': 'never-single-line',
'@stylistic/unicode-bom': 'never',
'@stylistic/value-list-comma-newline-after': 'never-multi-line',
'@stylistic/value-list-comma-newline-before': 'never-multi-line',
'@stylistic/value-list-comma-space-after': 'always'
},
'overrides': [
{
'files': '**/*.scss',
'extends': [
'stylelint-config-standard-scss',
'stylelint-config-recess-order'
],
'rules': {
'no-invalid-position-at-import-rule': null,
'scss/at-extend-no-missing-placeholder': null,
'scss/at-function-named-arguments': 'never',
'scss/at-if-closing-brace-newline-after': null,
'scss/at-if-closing-brace-space-after': null,
'scss/at-if-no-null': null,
'scss/at-mixin-argumentless-call-parentheses': 'always',
'scss/at-mixin-pattern': null,
'scss/at-rule-conditional-no-parentheses': null,
'scss/comment-no-empty': null,
'scss/dimension-no-non-numeric-values': true,
'scss/dollar-variable-colon-space-after': 'at-least-one-space',
'scss/dollar-variable-empty-line-before': null,
'scss/double-slash-comment-empty-line-before': null,
'scss/double-slash-comment-whitespace-inside': null,
'scss/function-quote-no-quoted-strings-inside': null,
'scss/media-feature-value-dollar-variable': null,
// Disable since node-sass is still supported as a builder and it doesn't support the @use syntax
'scss/no-global-function-names': null,
'scss/selector-no-redundant-nesting-selector': true
}
}
]
};