source: frontend/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/a.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 402 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports["default"] = getImplicitRoleForAnchor;
7var _jsxAstUtils = require("jsx-ast-utils");
8/**
9 * Returns the implicit role for an anchor tag.
10 */
11function getImplicitRoleForAnchor(attributes) {
12 if ((0, _jsxAstUtils.getProp)(attributes, 'href')) {
13 return 'link';
14 }
15 return '';
16}
17module.exports = exports.default;
Note: See TracBrowser for help on using the repository browser.