UNPKG

tslint-to-eslint-config

Version:

Converts your TSLint configuration to the closest reasonable ESLint equivalent.

19 lines (18 loc) 675 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mergeConsistentTypeAssertions = void 0; const mergeConsistentTypeAssertions = (existingOptions, newOptions) => { var _a; return [ (_a = existingOptions === null || existingOptions === void 0 ? void 0 : existingOptions[0]) !== null && _a !== void 0 ? _a : newOptions === null || newOptions === void 0 ? void 0 : newOptions[0], ].filter(Boolean); }; exports.mergeConsistentTypeAssertions = mergeConsistentTypeAssertions; //# sourceMappingURL=consistent-type-assertions.js.map