test: add eslint and prettier configuration with pre-commit hook

This commit is contained in:
Ember
2025-11-05 11:05:07 +08:00
parent 8350c31406
commit 6f760c3b0f
6 changed files with 183 additions and 1 deletions

13
web/.prettierrc.json Normal file
View File

@@ -0,0 +1,13 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"endOfLine": "lf",
"arrowParens": "always",
"bracketSpacing": true,
"jsxSingleQuote": false,
"quoteProps": "as-needed"
}