eslint-plugin-styled-components-a11y
Version:
This plugin adds the ability to lint styled components according to the rules outlined in eslint-plugin-jsx-a11y.
39 lines (38 loc) • 1.65 kB
JavaScript
;
module.exports = {
'accessible-emoji': 'JSXOpeningElement',
'anchor-has-content': 'JSXOpeningElement',
'anchor-is-valid': 'JSXOpeningElement',
'aria-activedescendant-has-tabindex': 'JSXOpeningElement',
'aria-props': 'JSXAttribute',
'aria-proptypes': 'JSXAttribute',
'aria-role': 'JSXAttribute',
'aria-unsupported-elements': 'JSXOpeningElement',
'autocomplete-valid': 'JSXOpeningElement',
'click-events-have-key-events': 'JSXOpeningElement',
'control-has-associated-label': 'JSXElement',
'heading-has-content': 'JSXOpeningElement',
'html-has-lang': 'JSXOpeningElement',
'iframe-has-title': 'JSXOpeningElement',
'img-redundant-alt': 'JSXOpeningElement',
'interactive-supports-focus': 'JSXOpeningElement',
'label-has-associated-control': 'JSXElement',
'label-has-for': 'JSXOpeningElement',
'media-has-caption': 'JSXElement',
'mouse-events-have-key-events': 'JSXOpeningElement',
'no-access-key': 'JSXOpeningElement',
'no-autofocus': 'JSXAttribute',
'no-distracting-elements': 'JSXOpeningElement',
'no-interactive-element-to-noninteractive-role': 'JSXAttribute',
'no-noninteractive-element-interactions': 'JSXOpeningElement',
'no-noninteractive-element-to-interactive-role': 'JSXAttribute',
'no-noninteractive-tabindex': 'JSXOpeningElement',
'no-onchange': 'JSXOpeningElement',
'no-redundant-roles': 'JSXOpeningElement',
'no-static-element-interactions': 'JSXOpeningElement',
'role-has-required-aria-props': 'JSXAttribute',
'role-supports-aria-props': 'JSXOpeningElement',
'alt-text': 'JSXOpeningElement',
scope: 'JSXAttribute',
'tabindex-no-positive': 'JSXAttribute'
};