UNPKG

tslint-to-eslint-config

Version:

Converts your TSLint configuration to the closest reasonable ESLint equivalent.

19 lines (18 loc) 655 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertIncrementDecrement = void 0; const convertIncrementDecrement = (tslintRule) => { return { rules: [ { ...(tslintRule.ruleArguments.length === 0 && { notices: ["++ and -- operators will now only be allowed in for loops."], ruleArguments: [{ allowForLoopAfterthoughts: true }], }), ruleName: "no-plusplus", }, ], }; }; exports.convertIncrementDecrement = convertIncrementDecrement; //# sourceMappingURL=increment-decrement.js.map