-
Notifications
You must be signed in to change notification settings - Fork 12
/
.markuplintrc.cjs
42 lines (42 loc) · 919 Bytes
/
.markuplintrc.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
module.exports = {
parser: {
'\\.svelte$': '@markuplint/svelte-parser',
},
extends: ['markuplint:recommended'],
excludeFiles: [
// TODO: Once the overrides option is fixed, remove these lines
// ref. https://github.com/markuplint/markuplint/issues/1119
'./apps/web/src/app.html',
// TODO: for Svelte 5 (preview)
'./apps/web/**/*.svelte',
],
rules: {
'character-reference': false,
'ineffective-attr': false,
'label-has-control': false,
'require-accessible-name': false,
},
nodeRules: [
// For Svelte
{
selector: 'textarea',
rules: {
'invalid-attr': {
options: {
allowAttrs: ['value'],
},
},
},
},
{
selector: 'input[type="file"]',
rules: {
'invalid-attr': {
options: {
allowAttrs: ['files'],
},
},
},
},
],
};