woodpecker/web/.prettierrc.js
Patrick Schratz 5b0d788737
Add vscode tailwind extensions & prettier tailwind linter, sort tailwind classes (#4622)
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-12-31 14:03:21 +01:00

16 lines
555 B
JavaScript

import { readFile } from 'node:fs/promises';
// eslint-disable-next-line antfu/no-top-level-await
const config = JSON.parse(await readFile(new URL('../.prettierrc.json', import.meta.url)));
export default {
...config,
plugins: ['@ianvs/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss'],
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.
'^(#|@|~|\\$)(/.*)$',
'',
'^[./]',
],
};