-
Notifications
You must be signed in to change notification settings - Fork 61
/
.stylelintrc.js
33 lines (33 loc) · 2.05 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
module.exports = {
plugins: [
'stylelint-selector-bem-pattern',
],
customSyntax: 'postcss-scss',
rules: {
'at-rule-no-unknown' : null,
'block-no-empty' : true,
'color-named' : 'never',
'color-no-hex' : true,
'color-no-invalid-hex' : true,
'declaration-block-no-duplicate-properties' : [true, { ignore: ['consecutive-duplicates'] }],
'declaration-block-no-shorthand-property-overrides': true,
'font-family-name-quotes' : 'always-unless-keyword',
'function-calc-no-unspaced-operator' : true,
'function-name-case' : 'lower',
'function-url-quotes' : 'always',
'no-duplicate-selectors' : true,
'no-invalid-double-slash-comments' : true,
'number-max-precision' : 3,
'rule-empty-line-before' : ['always', { ignore: ['after-comment'], except: ['inside-block-and-after-rule', 'first-nested'] }],
'selector-class-pattern' : null,
'selector-pseudo-class-no-unknown' : true,
'selector-pseudo-element-colon-notation' : 'single',
'selector-pseudo-element-no-unknown' : true,
'selector-type-case' : 'lower',
'selector-type-no-unknown' : [true, { ignoreTypes: ['from', 'to', '0%', '50%', '100%', '_'] }],
'shorthand-property-no-redundant-values' : true,
'string-no-newline' : true,
'time-min-milliseconds' : 100,
'unit-allowed-list' : ['px', 'em', 'rem', '%', 'vw', 'vh', 'deg', 'ms', 's', 'fr'],
}
};