tslint-to-eslint-config
Version:
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
9 lines • 563 B
JavaScript
;
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