-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmarkuplint.config.js
More file actions
69 lines (67 loc) · 1.51 KB
/
markuplint.config.js
File metadata and controls
69 lines (67 loc) · 1.51 KB
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
import { extendsConfig } from '@d-zero/markuplint-config';
const extended = extendsConfig({
classNaming: ['/./'],
});
/**
* @type {import('@markuplint/ml-config').Config}
*/
export default {
...extended,
parser: {
...extended.parser,
'\\.svelte$': '@markuplint/svelte-parser',
},
specs: {
'\\.svelte$': '@markuplint/svelte-spec',
},
rules: {
...extended.rules,
'heading-levels': false,
},
nodeRules: [
...extended.nodeRules.filter((rule) => !rule.selector.startsWith('img')),
{
...extended.nodeRules.find((rule) => rule.selector.startsWith('img')),
rules: {
...extended.nodeRules.find((rule) => rule.selector.startsWith('img')).rules,
// Disable https://github.com/d-zero-dev/linters/blob/dev/packages/%40d-zero/markuplint-config/base.js#L46-L57
'invalid-attr': false,
},
},
{
// https://github.com/markuplint/markuplint/issues/673
selector: '[role="radiogroup"]',
rules: {
'wai-aria': false,
},
},
{
// https://github.com/markuplint/markuplint/issues/2464
selector: '.block-catalog dl, dt + div',
rules: {
'permitted-contents': false,
},
},
{
// https://github.com/markuplint/markuplint/issues/2590
selector: 'input',
rules: {
'invalid-attr': {
options: {
allowAttrs: ['defaultValue', 'defaultChecked'],
},
},
},
},
],
overrides: {
'packages/@burger-editor/legacy/src/v3/**/*': {
...extended,
rules: {
...extended.rules,
'invalid-attr': false,
'require-accessible-name': false,
},
},
},
};