-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstylelint.config.mjs
68 lines (68 loc) · 1.63 KB
/
stylelint.config.mjs
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
export default {
plugins: ['stylelint-order'],
extends: ['@navikt/aksel-stylelint/recommended'],
customSyntax: 'postcss-less',
rules: {
'at-rule-empty-line-before': [
'always',
{
except: ['blockless-after-same-name-blockless', 'first-nested'],
ignore: ['after-comment'],
},
],
'order/order': ['custom-properties', 'declarations'],
'order/properties-alphabetical-order': true,
'color-hex-length': 'short',
'comment-empty-line-before': [
'always',
{
except: ['first-nested'],
ignore: ['stylelint-commands'],
},
],
'comment-whitespace-inside': 'always',
'custom-property-empty-line-before': [
'always',
{
except: ['after-custom-property', 'first-nested'],
ignore: ['after-comment', 'inside-single-line-block'],
},
],
'declaration-no-important': true,
'declaration-block-no-duplicate-properties': true,
'declaration-block-single-line-max-declarations': 1,
'declaration-empty-line-before': [
'always',
{
except: ['after-declaration', 'first-nested'],
ignore: ['after-comment', 'inside-single-line-block'],
},
],
'function-name-case': 'lower',
'length-zero-no-unit': true,
'selector-pseudo-element-colon-notation': 'single',
'selector-type-case': 'lower',
'unit-allowed-list': [
'em',
'ex',
'rem',
'pt',
'px',
'vh',
'vw',
'vmin',
'vmax',
'deg',
'grad',
'rad',
'turn',
'ms',
's',
'dpi',
'dpcm',
'dppx',
'%',
'fr',
],
},
};