fix: 修复eslint报错

This commit is contained in:
SpiderMan
2024-09-28 09:55:01 +08:00
parent f010ef07ac
commit 52c2538a66
6 changed files with 108 additions and 93 deletions

20
web/prettier.config.cjs Normal file
View File

@@ -0,0 +1,20 @@
module.exports = {
printWidth: 100,
tabWidth: 2,
useTabs: false,
semi: true,
vueIndentScriptAndStyle: true,
singleQuote: true,
quoteProps: 'as-needed',
bracketSpacing: true,
trailingComma: 'es5',
jsxBracketSameLine: false,
jsxSingleQuote: false,
arrowParens: 'always',
insertPragma: false,
requirePragma: false,
proseWrap: 'never',
htmlWhitespaceSensitivity: 'strict',
endOfLine: 'auto',
rangeStart: 0,
};