tslint-to-eslint-config
Version:
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
21 lines (20 loc) • 678 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertReactA11yAnchors = void 0;
const convertReactA11yAnchors = (tslintRule) => {
return {
...(tslintRule.ruleArguments.length > 0 && {
notices: Object.keys(tslintRule.ruleArguments[0]).map(
(key) => `jsx-a11y/anchor-is-valid does not support the '${key}' option.`,
),
}),
plugins: ["jsx-a11y"],
rules: [
{
ruleName: "jsx-a11y/anchor-is-valid",
},
],
};
};
exports.convertReactA11yAnchors = convertReactA11yAnchors;
//# sourceMappingURL=react-a11y-anchors.js.map