-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.cjs
79 lines (77 loc) · 1.7 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/** @type {import('stylelint').Config} */
module.exports = {
extends: [
'stylelint-config-standard-scss',
'stylelint-config-rational-order',
'stylelint-config-html/html',
'stylelint-config-html/astro',
'stylelint-config-html/svelte',
'stylelint-config-prettier-scss',
],
ignorePatterns: [
'**/.astro/',
'**/dist/',
'**/node_modules',
'**/public',
],
rules: {
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['extends', 'tailwind', 'layer'],
},
],
'custom-media-pattern': [
'^([a-z][a-z0-9]*)((-|_|__)[a-z0-9]+)*$',
{
message: 'Expected custom media query name to be kebab-case',
},
],
'custom-property-pattern': [
'^([a-z][a-z0-9]*)((-|_|__)[a-z0-9]+)*$',
{
message: 'Expected custom property name to be kebab-case',
},
],
'keyframes-name-pattern': [
'^([a-z][a-z0-9]*)((-|_|__)[a-z0-9]+)*$',
{
message: 'Expected keyframe name to be kebab-case',
},
],
'selector-class-pattern': [
'^([a-z][a-z0-9]*)((-|_|__)[a-z0-9]+)*$',
{
message: 'Expected class selector to be kebab-case',
},
],
'selector-id-pattern': [
'^([a-z][a-z0-9]*)((-|_|__)[a-z0-9]+)*$',
{
message: 'Expected id selector to be kebab-case',
},
],
'block-no-empty': true,
'media-feature-range-notation': 'prefix',
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global'],
},
],
'unit-allowed-list': [
'em',
'rem',
'ms',
's',
'px',
'%',
'deg',
'fr',
'vh',
'vw',
'svh',
'svw',
],
},
};