tslint-to-eslint-config
Version:
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
19 lines • 551 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.findRawConfiguration = void 0;
const utils_1 = require("../utils");
const findRawConfiguration = async (fileImporter, filePath, defaults = {}) => {
let results;
try {
results = (await fileImporter(filePath));
}
catch (error) {
return (0, utils_1.asError)(error);
}
return {
...defaults,
...results,
};
};
exports.findRawConfiguration = findRawConfiguration;
//# sourceMappingURL=findRawConfiguration.js.map