UNPKG

@storm-software/eslint

Version:

A package containing the base ESLint configuration used by Storm Software across many projects.

22 lines (19 loc) 511 B
import { init_esm_shims } from './chunk-H2OHWXFL.js'; // src/utils/format-config.ts init_esm_shims(); 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 ?? {} } }; }); }; export { formatConfig };