-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylelint.config.mjs
More file actions
36 lines (36 loc) · 979 Bytes
/
stylelint.config.mjs
File metadata and controls
36 lines (36 loc) · 979 Bytes
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
/** @type {import('stylelint').Config} */
export default {
extends: ['stylelint-config-standard'],
plugins: ['stylelint-use-logical', '@double-great/stylelint-a11y', '@db-ux/core-stylelint'],
rules: {
'db-ux/use-spacings': [
true,
{
allowCalc: true,
},
], // margins, paddings, gaps
'db-ux/use-sizing': [
true,
{
allowCalc: true,
allow: {
exact: ['var(--footer-height)'],
},
},
], // height, width
'db-ux/use-border-width': [true], // border-width & border
'db-ux/use-border-radius': [true], // border-radius
'db-ux/use-border-color': [true], // border-color & border
'a11y/media-prefers-reduced-motion': true,
'a11y/no-outline-none': true,
'a11y/selector-pseudo-class-focus': true,
'csstools/use-logical': ['always', { except: ['float'] }],
'no-descending-specificity': null,
'declaration-property-value-no-unknown': [
true,
{
ignoreProperties: { 'mask-composite': ['source-in'] },
},
],
},
};