UNPKG

tslint-to-eslint-config

Version:

Converts your TSLint configuration to the closest reasonable ESLint equivalent.

34 lines (33 loc) 1.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mergeJsxA11yAltText = void 0; const utils_1 = require("../../../../utils"); const mergeJsxA11yAltText = (existingOptions, newOptions) => { var _a, _b; const existingElements = (_a = existingOptions === null || existingOptions === void 0 ? void 0 : existingOptions[0]) === null || _a === void 0 ? void 0 : _a.elements; const newElements = (_b = newOptions === null || newOptions === void 0 ? void 0 : newOptions[0]) === null || _b === void 0 ? void 0 : _b.elements; return existingElements || newElements ? [ { elements: (0, utils_1.uniqueFromSources)( existingElements !== null && existingElements !== void 0 ? existingElements : [], newElements !== null && newElements !== void 0 ? newElements : [], ), }, ] : []; }; exports.mergeJsxA11yAltText = mergeJsxA11yAltText; //# sourceMappingURL=jsx-a11y-alt-text.js.map