forked from compsci-adl/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.cjs
47 lines (47 loc) · 1.28 KB
/
.prettierrc.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
43
44
45
46
47
/**
* @type {import('prettier').Config &
* import('prettier-plugin-tailwindcss').PluginOptions &
* import('@trivago/prettier-plugin-sort-imports').PluginConfig &
* import('prettier-plugin-jsdoc').Options}
*/
module.exports = {
plugins: [
'@trivago/prettier-plugin-sort-imports',
'prettier-plugin-jsdoc',
'prettier-plugin-tailwindcss',
],
trailingComma: 'es5',
bracketSpacing: true,
bracketSameLine: false,
singleQuote: true,
quoteProps: 'as-needed',
arrowParens: 'always',
useTabs: false,
tabWidth: 4,
printWidth: 100,
semi: true,
requirePragma: false,
insertPragma: false,
proseWrap: 'preserve',
endOfLine: 'lf',
jsxSingleQuote: false,
singleAttributePerLine: false,
htmlWhitespaceSensitivity: 'css',
embeddedLanguageFormatting: 'auto',
importOrderSeparation: false,
importOrder: ['<THIRD_PARTY_MODULES>', '^[./]', '<THIRD_PARTY_TYPES>', '<TYPE>^[./]'],
overrides: [
{
files: ['*.yaml', '*.yml', '*.json', '*.config.{js,ts}', '*rc', '*rc.{js,ts}'],
options: {
tabWidth: 2,
},
},
{
files: '*.html',
options: {
singleQuote: false,
},
},
],
};