UNPKG

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.

11 lines (10 loc) 522 B
"use strict"; module.exports = function (attributes) { return attributes.map(function (attribute) { var _attribute$value, _attribute$value$expr; if (((_attribute$value = attribute.value) === null || _attribute$value === void 0 ? void 0 : (_attribute$value$expr = _attribute$value.expression) === null || _attribute$value$expr === void 0 ? void 0 : _attribute$value$expr.type) === 'ChainExpression') { attribute.value.expression = attribute.value.expression.expression; } return attribute; }); };