forked from webhintio/hint
/
meta.ts
47 lines (45 loc) 路 1.39 KB
/
meta.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
import { Category } from 'hint/dist/src/lib/enums/category';
import { HintScope } from 'hint/dist/src/lib/enums/hint-scope';
import { HintMetadata } from 'hint/dist/src/lib/types';
const meta: HintMetadata = {
docs: {
category: Category.accessibility,
description: 'Runs axe-core tests in the target',
name: 'aXe accessibility check'
},
id: 'axe',
schema: [{
additionalProperties: false,
properties: {
rules: {
patternProperties: {
'^.+$': {
additionalProperties: false,
properties: { enabled: { type: 'boolean' } },
required: ['enabled'],
type: 'object'
}
},
type: 'object'
},
runOnly: {
additionalProperties: false,
properties: {
type: { type: 'string' },
values: {
items: { type: 'string' },
minItems: 1,
type: 'array',
uniqueItems: true
}
},
type: 'object'
}
}
}],
/*
* axe can not analize a file itself, it needs a connector.
*/
scope: HintScope.any
};
export default meta;