-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprettier.config.mjs
More file actions
32 lines (28 loc) · 915 Bytes
/
prettier.config.mjs
File metadata and controls
32 lines (28 loc) · 915 Bytes
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
31
32
/** @type {import("prettier").Config} */
export default {
// --------------------------------------------------
// Core formatting
// --------------------------------------------------
printWidth: 90,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: true,
trailingComma: 'es5',
bracketSpacing: true,
bracketSameLine: false,
arrowParens: 'avoid',
// --------------------------------------------------
// React / JSX
// --------------------------------------------------
jsxSingleQuote: false,
// --------------------------------------------------
// Line endings
// --------------------------------------------------
endOfLine: 'lf',
// --------------------------------------------------
// Tailwind CSS class sorting
// --------------------------------------------------
plugins: ['prettier-plugin-tailwindcss'],
tailwindConfig: './tailwind.config.ts',
}