-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
prettier.config.cjs
42 lines (39 loc) · 891 Bytes
/
prettier.config.cjs
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
39
40
41
42
// prettier.config.js, .prettierrc.js, prettier.config.mjs, or .prettierrc.mjs
/** @type {import("prettier").Config} */
const config = {
printWidth: 120,
trailingComma: 'all',
tabWidth: 4,
semi: true,
singleQuote: true,
useTabs: false,
bracketSpacing: true,
bracketSameLine: true,
arrowParens: 'always',
endOfLine: 'lf',
singleAttributePerLine: true,
overrides: [
{
files: ['*.md'],
options: {
tabWidth: 2,
},
},
{
files: ['*.yml'],
options: {
tabWidth: 2,
},
},
{
files: ['.hintrc'],
options: {
trailingComma: 'none',
},
},
],
plugins: [
'prettier-plugin-tailwindcss', //must be last
],
};
module.exports = config;