UNPKG

tslint-to-eslint-config

Version:

Converts your TSLint configuration to the closest reasonable ESLint equivalent.

19 lines 716 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertUnderscoreConsistentInvocation = void 0; const convertUnderscoreConsistentInvocation = (tslintRule) => { return { plugins: ["eslint-plugin-lodash"], rules: [ { ruleArguments: tslintRule.ruleArguments.length === 0 || tslintRule.ruleArguments[0] === "instance" ? ["never"] : ["always", 0], ruleName: "lodash/chaining", }, ], }; }; exports.convertUnderscoreConsistentInvocation = convertUnderscoreConsistentInvocation; //# sourceMappingURL=underscore-consistent-invocation.js.map