-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
markuplint.config.ts
49 lines (47 loc) · 947 Bytes
/
markuplint.config.ts
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
import type { Config } from '@markuplint/ml-config'
// https://markuplint.dev/docs/configuration
const config: Config = {
extends: [
'markuplint:recommended'
],
parser: {
'\\.vue$': '@markuplint/vue-parser'
},
specs: {
'\\.vue$': '@markuplint/vue-spec'
},
excludeFiles: [
'./.nuxt/**/*',
'./.output/**/*',
'./dist/**/*',
'./node_modules/**/*',
'./components/AppLogo.vue'
],
nodeRules: [
// https://element-plus.org/en-US/component/input.html
{
selector: 'el-input',
rules: {
'invalid-attr': {
options: {
allowAttrs: [
{
name: 'autofocus',
value: {
type: 'Boolean'
}
}
]
}
}
}
},
{
selector: '#heading',
rules: {
'require-accessible-name': false
}
}
]
}
export default config