forked from vue-a11y/eslint-plugin-vuejs-accessibility
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
54 lines (51 loc) · 2.3 KB
/
index.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
50
51
52
53
54
import recommended from "./configs/recommended";
import altText from "./rules/alt-text";
import anchorHasContent from "./rules/anchor-has-content";
import ariaProps from "./rules/aria-props";
import ariaRole from "./rules/aria-role";
import ariaUnsupportedElements from "./rules/aria-unsupported-elements";
import clickEventsHaveKeyEvents from "./rules/click-events-have-key-events";
import formControlHasLabel from "./rules/form-control-has-label";
import headingHasContent from "./rules/heading-has-content";
import iframeHasTitle from "./rules/iframe-has-title";
import interactiveSupportsFocus from "./rules/interactive-supports-focus";
import labelHasFor from "./rules/label-has-for";
import mediaHasCaption from "./rules/media-has-caption";
import mouseEventsHaveKeyEvents from "./rules/mouse-events-have-key-events";
import noAccessKey from "./rules/no-access-key";
import noAutofocus from "./rules/no-autofocus";
import noDistractingElements from "./rules/no-distracting-elements";
import noOnchange from "./rules/no-onchange";
import noRedundantRoles from "./rules/no-redundant-roles";
import noStaticElementInteractions from "./rules/no-static-element-interactions";
import roleHasRequiredAriaProps from "./rules/role-has-required-aria-props";
import tabindexNoPositive from "./rules/tabindex-no-positive";
const plugin = {
configs: {
recommended
},
rules: {
"alt-text": altText,
"anchor-has-content": anchorHasContent,
"aria-props": ariaProps,
"aria-role": ariaRole,
"aria-unsupported-elements": ariaUnsupportedElements,
"click-events-have-key-events": clickEventsHaveKeyEvents,
"form-control-has-label": formControlHasLabel,
"heading-has-content": headingHasContent,
"iframe-has-title": iframeHasTitle,
"interactive-supports-focus": interactiveSupportsFocus,
"label-has-for": labelHasFor,
"media-has-caption": mediaHasCaption,
"mouse-events-have-key-events": mouseEventsHaveKeyEvents,
"no-access-key": noAccessKey,
"no-autofocus": noAutofocus,
"no-distracting-elements": noDistractingElements,
"no-onchange": noOnchange,
"no-redundant-roles": noRedundantRoles,
"no-static-element-interactions": noStaticElementInteractions,
"role-has-required-aria-props": roleHasRequiredAriaProps,
"tabindex-no-positive": tabindexNoPositive
}
};
export = plugin;