tslint-to-eslint-config
Version:
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
14 lines (13 loc) • 417 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.withKeysSorted = void 0;
const withKeysSorted = (input) => {
const output = {};
const keys = Object.keys(input).sort((a, b) => a.localeCompare(b));
for (const key of keys) {
output[key] = input[key];
}
return output;
};
exports.withKeysSorted = withKeysSorted;
//# sourceMappingURL=withKeysSorted.js.map