UNPKG

@jsxtools/eslint-plugin-jsx-a11y

Version:

Static AST checker for accessibility rules on JSX elements for flat ESLint Config.

14 lines (11 loc) 338 B
import { getLiteralPropValue, getProp } from './module/jsx-ast-utils.js'; const presentationRoles = /* @__PURE__ */ new Set([ "presentation", "none" ]); const isPresentationRole = (tagName, attributes) => presentationRoles.has( getLiteralPropValue( getProp(attributes, "role") ) ); export { isPresentationRole as default };