generated from redte-ch/redte.ch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprettier.config.mjs
38 lines (37 loc) · 933 Bytes
/
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
31
32
33
34
35
36
37
38
/** @type {import('prettier').Config} */
import sortedImports from './src/config/imports-order.mjs'
/** @type {import('prettier').Config} */
export default {
// StandardJS
arrowParens: 'always',
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: 'auto',
endOfLine: 'lf',
htmlWhitespaceSensitivity: 'css',
insertPragma: false,
jsxSingleQuote: true,
printWidth: 80,
proseWrap: 'preserve',
quoteProps: 'as-needed',
requirePragma: false,
semi: false,
singleAttributePerLine: false,
singleQuote: true,
tabWidth: 2,
trailingComma: 'none',
useTabs: false,
vueIndentScriptAndStyle: false,
// Astro
plugins: [
'@ianvs/prettier-plugin-sort-imports',
'prettier-plugin-astro',
'prettier-plugin-jsdoc',
'prettier-plugin-pkg',
'prettier-plugin-sh',
'prettier-plugin-svelte',
'prettier-plugin-tailwindcss'
],
// Sorted imports
...sortedImports
}