/
githubmirror
/
trpc
Обзор
Документация
Войти
/
githubmirror
/
trpc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v11.7.2
prettier.config.js
28 строк
911 B
Alex / KATT
chore: move test helpers to corresponding package (#6383)
22 фев 2025, 01:31
Не верифицирован
22 фев 2025, 01:31
5cf2f3e
Код
Авторство
О чём код?
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig*/ /** @typedef {import("prettier").Config} PrettierConfig*/ /** @typedef {{ tailwindConfig: string }} TailwindConfig*/ /** @type { PrettierConfig | SortImportsConfig | TailwindConfig } */ export default { printWidth: 80, trailingComma: 'all', endOfLine: 'auto', singleQuote: true, importOrder: [ // Ensure test helpers are sorted first so that polyfills are loaded '___', '__', '^@trpc/(server|client|react-query|tanstack-react-query|next)/src/__tests__(.*)$', '<THIRD_PARTY_MODULES>', '^[./]', ], importOrderParserPlugins: ['typescript', 'jsx', 'explicitResourceManagement'], tailwindConfig: './www/tailwind.config.ts', plugins: [ '@ianvs/prettier-plugin-sort-imports', /** * Tailwind plugin must come last! */ 'prettier-plugin-tailwindcss', ], };