/** @typedef {import("prettier").Config} PrettierConfig */ /** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig */ /** @type { PrettierConfig | SortImportsConfig } */ const config = { plugins: ['@ianvs/prettier-plugin-sort-imports'], importOrder: [ '^(react/(.*)$)|^(react$)', '^(next/(.*)$)|^(next$)', '<THIRD_PARTY_MODULES>', '', '~([a-zA-Z0-9]+)/(.*)$', '', '^~/utils/(.*)$', '^~/components/(.*)$', '^~/(.*)$', '^src/(.*)$', '^[./]', ], importOrderParserPlugins: [ 'typescript', 'jsx', 'decorators-legacy', 'explicitResourceManagement', ], importOrderTypeScriptVersion: '5.2.2', singleQuote: true, semi: false, } module.exports = config