forked from deriv-com/bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.cjs
44 lines (44 loc) · 1.91 KB
/
.stylelintrc.cjs
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
module.exports = {
plugins: ['stylelint-no-unsupported-browser-features'],
rules: {
'scss/at-mixin-pattern': null,
'scss/no-global-function-names': null,
'scss/dollar-variable-pattern': null,
'color-named': 'never',
'color-no-invalid-hex': true,
'declaration-block-no-duplicate-properties': [true, { ignore: ['consecutive-duplicates'] }],
'declaration-block-no-shorthand-property-overrides': true,
'declaration-block-no-redundant-longhand-properties': null,
'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,
'no-descending-specificity': null,
'no-invalid-position-at-import-rule': null,
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['export'],
},
],
'selector-class-pattern': null,
'selector-id-pattern': null,
'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': ['fr', 'px', 'em', 'rem', '%', 'svh', 'vw', 'vh', 'deg', 'ms', 's', 'dpcm'],
'value-keyword-case': 'lower',
'scss/at-extend-no-missing-placeholder': null,
'scss/percent-placeholder-pattern': null,
'custom-property-pattern': null,
},
extends: ['stylelint-config-standard-scss'],
ignoreFiles: ['packages/*/dist/**/*.css'],
};