-
Notifications
You must be signed in to change notification settings - Fork 0
/
prettier.config.js
38 lines (30 loc) · 1.24 KB
/
prettier.config.js
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
33
34
35
36
37
38
module.exports = {
plugins: ["prettier-plugin-tailwindcss"],
// Indent lines with tabs instead of spaces.
// https://prettier.io/docs/en/options.html#tabs
useTabs: false,
// Specify the line length that the printer will wrap on
// https://prettier.io/docs/en/options.html#print-width
printWidth: 120,
// Specify the number of spaces per indentation-level.
// https://prettier.io/docs/en/options.html#tab-width
tabWidth: 2,
// Use single quotes instead of double quotes.
// https://prettier.io/docs/en/options.html#quotes
singleQuote: false,
// Print trailing commas wherever possible
// https://prettier.io/docs/en/options.html#trailing-commas
trailingComma: "es5",
// Enforce single attribute per line in HTML and JSX.
// https://prettier.io/docs/en/options.html#single-attribute-per-line
singleAttributePerLine: true,
// Print semicolons at the ends of statements.
// https://prettier.io/docs/en/options.html#semicolons
semi: true,
// Print spaces between brackets in object literals.
// https://prettier.io/docs/en/options.html#bracket-spacing
bracketSpacing: true,
// Put the `>` of a multi-line JSX element at the eol.
// https://prettier.io/docs/en/options.html#bracket-line
bracketSameLine: false,
};