tslint-to-eslint-config
Version:
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
23 lines (22 loc) • 655 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertCurly = void 0;
const convertCurly = (tslintRule) => {
const ruleArguments = [];
if (tslintRule.ruleArguments.includes("ignore-same-line")) {
ruleArguments.push("multi-line");
}
if (tslintRule.ruleArguments.includes("as-needed")) {
ruleArguments.push("multi-or-nest");
}
return {
rules: [
{
...(ruleArguments.length !== 0 && { ruleArguments }),
ruleName: "curly",
},
],
};
};
exports.convertCurly = convertCurly;
//# sourceMappingURL=curly.js.map