UNPKG

@resolid/config

Version:

Oxlint and Typescript config

29 lines (27 loc) 644 B
/** * @template {import('oxfmt').OxfmtConfig} T * @param {T} config * @returns {T} */ export function oxfmtConfig(config) { const { sortImports, ...rest } = config; return { ...rest, sortImports: { newlinesBetween: false, groups: [ "type-import", ["value-builtin", "value-external"], "type-internal", "value-internal", ["type-parent", "type-sibling", "type-index"], ["value-parent", "value-sibling", "value-index"], { newlinesBetween: true }, "style", { newlinesBetween: true }, "unknown", ], ...sortImports, }, }; }