UNPKG

tslint-to-eslint-config

Version:

Converts your TSLint configuration to the closest reasonable ESLint equivalent.

18 lines (17 loc) 575 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertObjectLiteralShorthand = void 0; const convertObjectLiteralShorthand = (tslintRule) => { return { rules: [ { ...(tslintRule.ruleArguments.length !== 0 && { ruleArguments: tslintRule.ruleArguments, }), ruleName: "object-shorthand", }, ], }; }; exports.convertObjectLiteralShorthand = convertObjectLiteralShorthand; //# sourceMappingURL=object-literal-shorthand.js.map