UNPKG

tslint-to-eslint-config

Version:

Converts your TSLint configuration to the closest reasonable ESLint equivalent.

12 lines (11 loc) 440 B
"use strict"; 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