tslint-to-eslint-config
Version:
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
17 lines • 598 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertNoVoidExpression = void 0;
const convertNoVoidExpression = (tslintRule) => {
return {
rules: [
{
...(tslintRule.ruleArguments.includes("ignore-arrow-function-shorthand") && {
notices: ["ESLint does not support ignoring arrow function shorthand."],
}),
ruleName: "no-void",
},
],
};
};
exports.convertNoVoidExpression = convertNoVoidExpression;
//# sourceMappingURL=no-void-expression.js.map