2024-06-06 13:16:59 +00:00
|
|
|
import { readFile } from 'node:fs/promises';
|
|
|
|
|
2024-10-05 13:37:00 +00:00
|
|
|
// eslint-disable-next-line antfu/no-top-level-await
|
2024-06-06 13:16:59 +00:00
|
|
|
const config = JSON.parse(await readFile(new URL('../.prettierrc.json', import.meta.url)));
|
|
|
|
|
|
|
|
export default {
|
|
|
|
...config,
|
2024-12-31 13:03:21 +00:00
|
|
|
plugins: ['@ianvs/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss'],
|
2024-06-06 13:16:59 +00:00
|
|
|
importOrder: [
|
|
|
|
'<THIRD_PARTY_MODULES>', // Imports not matched by other special words or groups.
|
|
|
|
'', // Empty string will match any import not matched by other special words or groups.
|
|
|
|
'^(#|@|~|\\$)(/.*)$',
|
|
|
|
'',
|
|
|
|
'^[./]',
|
|
|
|
],
|
|
|
|
};
|