|
7 | 7 | */ |
8 | 8 |
|
9 | 9 |
|
| 10 | +import { AccessibleInteractiveElements } from './rules/a11y/accessible_interactive_element'; |
| 11 | +import { CallOutAnnounceOnMount } from './rules/a11y/callout_announce_on_mount'; |
| 12 | +import { ConsistentIsInvalidProps } from './rules/a11y/consistent_is_invalid_props'; |
10 | 13 | import { HrefOnClick } from './rules/href_or_on_click'; |
11 | | -import { NoRestrictedEuiImports } from './rules/no_restricted_eui_imports'; |
12 | 14 | import { NoCssColor } from './rules/no_css_color'; |
13 | | - |
| 15 | +import { NoRestrictedEuiImports } from './rules/no_restricted_eui_imports'; |
| 16 | +import { NoStaticZIndex } from './rules/no_static_z_index'; |
| 17 | +import { NoUnnamedInteractiveElement } from './rules/a11y/no_unnamed_interactive_element'; |
| 18 | +import { NoUnnamedRadioGroup } from './rules/a11y/no_unnamed_radio_group'; |
| 19 | +import { PreferEuiIconTip } from './rules/a11y/prefer_eui_icon_tip'; |
14 | 20 | import { RequireAriaLabelForModals } from './rules/a11y/require_aria_label_for_modals'; |
15 | | -import { ConsistentIsInvalidProps } from './rules/a11y/consistent_is_invalid_props'; |
| 21 | +import { RequireTableCaption } from './rules/a11y/require_table_caption'; |
16 | 22 | import { ScreenReaderOutputDisabledTooltip } from './rules/a11y/sr_output_disabled_tooltip'; |
17 | | -import { PreferEuiIconTip } from './rules/a11y/prefer_eui_icon_tip'; |
18 | | -import { NoUnnamedRadioGroup } from './rules/a11y/no_unnamed_radio_group'; |
19 | | -import { NoUnnamedInteractiveElement } from './rules/a11y/no_unnamed_interactive_element'; |
20 | 23 | import { TooltipFocusableAnchor } from './rules/a11y/tooltip_focusable_anchor'; |
21 | | -import { CallOutAnnounceOnMount } from './rules/a11y/callout_announce_on_mount'; |
22 | | -import { AccessibleInteractiveElements } from './rules/a11y/accessible_interactive_element'; |
23 | | -import { RequireTableCaption } from './rules/a11y/require_table_caption'; |
24 | 24 |
|
25 | 25 | const config = { |
26 | 26 | rules: { |
| 27 | + 'accessible-interactive-element': AccessibleInteractiveElements, |
| 28 | + 'callout-announce-on-mount': CallOutAnnounceOnMount, |
| 29 | + 'consistent-is-invalid-props': ConsistentIsInvalidProps, |
27 | 30 | 'href-or-on-click': HrefOnClick, |
28 | | - 'no-restricted-eui-imports': NoRestrictedEuiImports, |
29 | 31 | 'no-css-color': NoCssColor, |
| 32 | + 'no-restricted-eui-imports': NoRestrictedEuiImports, |
| 33 | + 'no-static-z-index': NoStaticZIndex, |
| 34 | + 'no-unnamed-interactive-element': NoUnnamedInteractiveElement, |
| 35 | + 'no-unnamed-radio-group' : NoUnnamedRadioGroup, |
| 36 | + 'prefer-eui-icon-tip': PreferEuiIconTip, |
30 | 37 | 'require-aria-label-for-modals': RequireAriaLabelForModals, |
31 | | - 'consistent-is-invalid-props': ConsistentIsInvalidProps, |
| 38 | + 'require-table-caption': RequireTableCaption, |
32 | 39 | 'sr-output-disabled-tooltip': ScreenReaderOutputDisabledTooltip, |
33 | | - 'prefer-eui-icon-tip': PreferEuiIconTip, |
34 | | - 'no-unnamed-radio-group' : NoUnnamedRadioGroup, |
35 | | - 'callout-announce-on-mount': CallOutAnnounceOnMount, |
36 | | - 'no-unnamed-interactive-element': NoUnnamedInteractiveElement, |
37 | 40 | 'tooltip-focusable-anchor': TooltipFocusableAnchor, |
38 | | - 'accessible-interactive-element': AccessibleInteractiveElements, |
39 | | - 'require-table-caption': RequireTableCaption, |
40 | 41 | }, |
41 | 42 | configs: { |
42 | 43 | recommended: { |
43 | 44 | plugins: ['@elastic/eslint-plugin-eui'], |
44 | 45 | rules: { |
| 46 | + '@elastic/eui/accessible-interactive-element': 'warn', |
| 47 | + '@elastic/eui/callout-announce-on-mount': 'warn', |
| 48 | + '@elastic/eui/consistent-is-invalid-props': 'warn', |
45 | 49 | '@elastic/eui/href-or-on-click': 'warn', |
46 | | - '@elastic/eui/no-restricted-eui-imports': 'warn', |
47 | 50 | '@elastic/eui/no-css-color': 'warn', |
| 51 | + '@elastic/eui/no-restricted-eui-imports': 'warn', |
| 52 | + '@elastic/eui/no-static-z-index': 'warn', |
| 53 | + '@elastic/eui/no-unnamed-interactive-element': 'warn', |
| 54 | + '@elastic/eui/no-unnamed-radio-group': 'warn', |
| 55 | + '@elastic/eui/prefer-eui-icon-tip': 'warn', |
48 | 56 | '@elastic/eui/require-aria-label-for-modals': 'warn', |
49 | | - '@elastic/eui/consistent-is-invalid-props': 'warn', |
| 57 | + '@elastic/eui/require-table-caption': 'warn', |
50 | 58 | '@elastic/eui/sr-output-disabled-tooltip': 'warn', |
51 | | - '@elastic/eui/prefer-eui-icon-tip': 'warn', |
52 | | - '@elastic/eui/no-unnamed-radio-group': 'warn', |
53 | | - '@elastic/eui/callout-announce-on-mount': 'warn', |
54 | | - '@elastic/eui/no-unnamed-interactive-element': 'warn', |
55 | 59 | '@elastic/eui/tooltip-focusable-anchor': 'warn', |
56 | | - '@elastic/eui/accessible-interactive-element': 'warn', |
57 | | - '@elastic/eui/require-table-caption': 'warn', |
58 | 60 | }, |
59 | 61 | }, |
60 | 62 | }, |
|
0 commit comments