-
Notifications
You must be signed in to change notification settings - Fork 0
/
prettier.config.mjs
30 lines (26 loc) · 1.07 KB
/
prettier.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { dirname, resolve } from 'path';
import { fileURLToPath } from 'url';
const __dirname = dirname(fileURLToPath(import.meta.url));
export default {
arrowParens: 'always', // Default 'always'
bracketSameLine: false, // Default false
bracketSpacing: true, // Default true
embeddedLanguageFormatting: 'auto', // Default 'auto'
endOfLine: 'lf', // Default 'lf'
htmlWhitespaceSensitivity: 'css', // Default 'css'
jsxSingleQuote: false, // Default false
semi: true, // Default true
singleAttributePerLine: false, // Default false
singleQuote: true, // Default false
printWidth: 120, // Default 80
proseWrap: 'preserve', // Default 'preserve'
quoteProps: 'as-needed', // Default 'as-needed'
trailingComma: 'all', // Default 'all'
useTabs: true, // Default false
plugins: ['prettier-plugin-organize-imports', 'prettier-plugin-tailwindcss'],
// prettier-plugin-organize-imports
organizeImportsSkipDestructiveCodeActions: true,
// prettier-plugin-tailwindcss
tailwindConfig: resolve(__dirname, './packages/modal/tailwind.config.ts'),
tailwindFunctions: ['clsx', 'tw'],
};