-
-
Notifications
You must be signed in to change notification settings - Fork 337
/
.stylelintrc.js
48 lines (47 loc) · 1.82 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
module.exports = {
extends: [
'stylelint-config-standard',
],
customSyntax: 'postcss-less',
ignoreFiles: [
'dist/**',
'test/coverage/**',
],
rules: {
'at-rule-empty-line-before': null,
'at-rule-name-case': null,
'at-rule-no-unknown': null,
'block-no-empty': null,
'color-function-notation': 'legacy',
'color-hex-case': 'lower',
'declaration-colon-newline-after': null, // handled by Prettier
'font-family-no-missing-generic-family-keyword': null,
'function-no-unknown': null,
'import-notation': null,
indentation: null, // handled by Prettier
'keyframes-name-pattern': null,
linebreaks: 'unix',
'max-line-length': null,
'no-descending-specificity': null,
'no-extra-semicolons': null, // handled by Prettier
'no-duplicate-selectors': null,
'number-max-precision': 5,
'property-case': null,
'property-no-vendor-prefix': [true, {
ignoreProperties: [
'background-clip', // https://caniuse.com/background-clip-text
'appearance', // https://caniuse.com/css-appearance
'backdrop-filter', // https://caniuse.com/css-backdrop-filter
'text-size-adjust', // https://caniuse.com/text-size-adjust
],
}],
'rule-empty-line-before': null,
'string-quotes': 'double',
'value-keyword-case': null,
// TODO rules to be removed/fixed in v2.10.0 as fixes are not compatible with IE11
'alpha-value-notation': 'number', // https://caniuse.com/mdn-css_properties_opacity_percentages
'selector-not-notation': null, // https://caniuse.com/css-not-sel-list
'selector-no-vendor-prefix': null,
},
reportNeedlessDisables: true,
};