project: add prettier

This commit is contained in:
2025-09-25 14:36:11 +02:00
parent 9cd83bb6b9
commit b8d64f325b
5 changed files with 76 additions and 91 deletions

28
prettier.config.js Normal file
View File

@@ -0,0 +1,28 @@
// @ts-check
/** @type {import('prettier').Config} */
const config = {
arrowParens: 'always',
bracketSameLine: false,
objectWrap: 'preserve',
bracketSpacing: true,
semi: true,
experimentalOperatorPosition: 'end',
experimentalTernaries: true,
singleQuote: true,
jsxSingleQuote: true,
quoteProps: 'as-needed',
trailingComma: 'all',
singleAttributePerLine: false,
htmlWhitespaceSensitivity: 'css',
vueIndentScriptAndStyle: false,
proseWrap: 'preserve',
insertPragma: false,
printWidth: 100,
requirePragma: false,
tabWidth: 2,
useTabs: false,
embeddedLanguageFormatting: 'auto',
};
export default config;