-
Notifications
You must be signed in to change notification settings - Fork 13
/
.stylelintrc.js
84 lines (81 loc) · 2.59 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
module.exports = {
plugins: ['stylelint-scss', 'stylelint-no-unsupported-browser-features'],
extends: ['stylelint-config-standard', 'stylelint-config-standard-scss'],
rules: {
'selector-max-id': 0,
'scss/dollar-variable-colon-space-after': 'always-single-line',
'scss/dollar-variable-colon-space-before': 'never',
'plugin/no-unsupported-browser-features': [
true,
{
browsers: ['> 2% and Last 2 versions'],
severity: 'warning',
ignore: [
// Works good enough in the supported browsers
'calc',
'flexbox',
'css-gradients',
'multicolumn',
'css-masks',
// Progressive enhancement
'text-size-adjust',
'viewport-units',
'css-appearance',
'word-break',
'css-unset-value',
'css-filters',
'outline',
'css3-cursors',
'css-resize',
'intrinsic-width',
'css-nesting',
'css-when-else',
'css-selection'
]
}
],
'rule-empty-line-before': [
'always-multi-line',
{
except: ['after-single-line-comment', 'first-nested']
}
],
// Defaults are not good
'alpha-value-notation': 'number',
'color-function-notation': 'legacy',
'value-keyword-case': null, // Requires e.g. "robotoslab" instead of "RobotoSlab"
'scss/operator-no-unspaced': null, // Has false positives
'scss/dollar-variable-empty-line-before': null,
'scss/at-import-partial-extension': null, // We use the `.styles.scss` extension
'scss/operator-no-newline-after': null, // Conflicts with prettier
// Too much effort to change
'selector-class-pattern': null,
// TODO: Only disabled temporarily to compile this list, but should be fixed
'scss/dollar-variable-pattern': null, // Likely requires changes in lib consumer
'scss/at-mixin-argumentless-call-parentheses': null,
'color-hex-length': null,
'scss/double-slash-comment-whitespace-inside': null,
'selector-pseudo-element-colon-notation': null,
'property-no-vendor-prefix': null,
'length-zero-no-unit': null,
'declaration-empty-line-before': null,
'rule-empty-line-before': null,
'keyframes-name-pattern': null,
'no-descending-specificity': null,
'declaration-block-no-shorthand-property-overrides': null,
'declaration-no-important': null,
'scss/no-global-function-names': null,
'no-duplicate-selectors': null,
'declaration-block-no-redundant-longhand-properties': null,
'selector-no-vendor-prefix': null,
'value-no-vendor-prefix': null,
'shorthand-property-no-redundant-values': null,
'declaration-block-no-duplicate-properties': null,
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global']
}
]
}
};