Skip to content

Commit a405793

Browse files
committed
fixup: add tailwind config to readme
1 parent d16e201 commit a405793

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: packages/prettier-config-svelte/README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,19 @@ pnpm add --save-dev prettier @viamrobotics/prettier-config-svelte
1919
export default '@viamrobotics/prettier-config-svelte';
2020
```
2121

22-
You can also extend the configuration:
22+
If the project is inside a monorepo, you'll need to specify the path to your Tailwind config.
2323

2424
```js
2525
// prettier.config.js
26+
import path from 'node:path';
27+
2628
import baseConfig from '@viamrobotics/prettier-config-svelte';
2729

28-
export default {
30+
/** @satisfies {import('prettier').Config} */
31+
const config = {
2932
...baseConfig,
30-
// other options here
33+
tailwindConfig: path.join(import.meta.dirname, 'tailwind.config.ts'),
3134
};
35+
36+
export default config;
3237
```

0 commit comments

Comments
 (0)