Add Eslint and Prettier

This commit is contained in:
2026-03-01 13:21:58 +01:00
parent 89e7e914f6
commit 5d9d26d22c
5 changed files with 923 additions and 123 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;