tslint-to-eslint-config
Version:
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
12 lines (11 loc) • 440 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertTSLintRuleSeverity = void 0;
/**
* Converts a TSLint rule severity string to the ESLint equivalent.
*/
const convertTSLintRuleSeverity = (tslintSeverity) => {
return tslintSeverity === "warning" ? "warn" : tslintSeverity;
};
exports.convertTSLintRuleSeverity = convertTSLintRuleSeverity;
//# sourceMappingURL=convertTSLintRuleSeverity.js.map