UNPKG

tslint-to-eslint-config

Version:

Converts your TSLint configuration to the closest reasonable ESLint equivalent.

17 lines 529 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeRawESLintRuleSeverity = void 0; const normalizeRawESLintRuleSeverity = (rawSeverity) => { switch (rawSeverity) { case 0: return "off"; case 1: return "warn"; case 2: return "error"; default: return rawSeverity; } }; exports.normalizeRawESLintRuleSeverity = normalizeRawESLintRuleSeverity; //# sourceMappingURL=normalizeRawESLintRuleSeverity.js.map