chore: config vscode eslint

This commit is contained in:
Fu Diwei
2024-10-15 18:03:38 +08:00
parent 2c97fa929a
commit b0923d54ee
11 changed files with 249 additions and 48 deletions

20
ui/.prettierrc.cjs Normal file
View File

@@ -0,0 +1,20 @@
/**
* @type {import("prettier").Config}
*/
module.exports = {
arrowParens: "always",
bracketSpacing: true,
editorconfig: true,
htmlWhitespaceSensitivity: "ignore",
jsxSingleQuote: false,
endOfLine: "crlf",
printWidth: 160,
proseWrap: "preserve",
quoteProps: "as-needed",
semi: true,
singleQuote: false,
tabs: false,
tabWidth: 2,
trailingComma: "es5",
useTabs: false,
};