-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.cjs
75 lines (75 loc) · 1.75 KB
/
index.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
module.exports = {
'attr-name-ignore-regex': 'viewBox|preserveAspectRatio',
rules: {
'attr-name-style': [true, 'dash'],
'attr-no-dup': true,
'attr-no-unsafe-char': true,
'attr-quote-style': [true, 'double'],
'attr-req-value': false,
'attr-validate': true,
'button-req-content': true,
'class-no-dup': true,
'doctype-first': true,
'doctype-html5': true,
'fieldset-contains-legend': true,
'fig-req-figcaption': true,
'focusable-tabindex-style': true,
'head-req-title': true,
'head-valid-content-model': true,
'html-req-lang': true,
'html-valid-content-model': true,
'id-no-dup': false,
'id-style': [true, 'dash'],
'img-req-alt': [true, 'allownull'],
'img-req-src': true,
'input-btn-req-value-or-title': true,
'input-radio-req-name': true,
'input-req-label': true,
'label-no-enc-textarea-or-select': true,
'lang-style': [true, 'case'],
'link-req-noopener': true,
'no-surrounding-whitespace': false,
'tag-bans': [true, 'style'],
'tag-close': true,
'tag-name-lowercase': true,
'tag-name-match': true,
'tag-req-attr': [true, {
a: [{
name: 'href',
}],
time: [{
name: 'datetime',
}],
source: [{
name: 'type',
}],
img: [{
name: 'width',
}, {
name: 'height',
}],
form: [{
name: 'action',
}],
input: [{
name: 'name',
}],
button: [{
name: 'type',
}],
select: [{
name: 'name',
}],
textarea: [{
name: 'name',
}],
svg: [{
name: 'width',
}, {
name: 'height',
}],
}],
'tag-self-close': [true, 'never'],
'title-no-dup': true,
},
};