UNPKG

tslint-to-eslint-config

Version:

Converts your TSLint configuration to the closest reasonable ESLint equivalent.

18 lines 671 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertOneVariablePerDeclaration = void 0; const convertOneVariablePerDeclaration = (tslintRule) => { return { rules: [ { ...(!tslintRule.ruleArguments.includes("ignore-for-loop") && { notices: ["Variables declared in for loops will no longer be checked."], }), ruleArguments: ["never"], ruleName: "one-var", }, ], }; }; exports.convertOneVariablePerDeclaration = convertOneVariablePerDeclaration; //# sourceMappingURL=one-variable-per-declaration.js.map