@storm-software/eslint
Version:
A package containing the base ESLint configuration used by Storm Software across many projects.
21 lines (18 loc) • 465 B
JavaScript
;
// src/utils/format-config.ts
var formatConfig = (name, config = []) => {
return config.map((config2, index) => {
if (!config2 || config2.name) {
return config2 ?? {};
}
return {
...config2,
name: `Storm Software (${config2.name ? config2.name : name}) #${index + 1}`,
settings: {
"import/resolver": "node",
...config2.settings ?? {}
}
};
});
};
exports.formatConfig = formatConfig;