fmt: prettier

This commit is contained in:
马登山
2026-02-02 09:31:26 +08:00
parent 369a8e8945
commit 5dceb3382b
4 changed files with 32 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
node_modules
.next
build
out
coverage
.vercel
.pnp.*
pnpm-lock.yaml
yarn.lock
package-lock.json
.vscode
+13
View File
@@ -0,0 +1,13 @@
{
"semi": false,
"singleQuote": false,
"jsxSingleQuote": false,
"trailingComma": "all",
"printWidth": 90,
"tabWidth": 2,
"arrowParens": "always",
"bracketSpacing": true,
"quoteProps": "as-needed",
"bracketSameLine": false,
"endOfLine": "lf"
}
+2
View File
@@ -1,10 +1,12 @@
import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
import prettier from "eslint-config-prettier";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
...prettier,
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
+6 -1
View File
@@ -9,7 +9,10 @@
"start": "next start",
"lint": "eslint",
"lint:fix": "eslint --fix",
"type-check": "tsc --noEmit"
"type-check": "tsc --noEmit",
"prettier": "prettier",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"dependencies": {
"@aws-sdk/client-s3": "^3.980.0",
@@ -57,6 +60,8 @@
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.1.6",
"eslint-config-prettier": "^9.1.0",
"prettier": "^3.3.3",
"tailwindcss": "^4",
"typescript": "^5"
}