add eslint and prettier

This commit is contained in:
2025-09-25 02:39:54 +02:00
parent cb32af203d
commit f62cdacb7d
4 changed files with 1312 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint/eslint-plugin"],
"root": true
}
+7
View File
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": false,
"tabWidth": 4,
"trailingComma": "es5",
"printWidth": 120
}
+1286 -1
View File
File diff suppressed because it is too large Load Diff
+9 -2
View File
@@ -9,7 +9,10 @@
"build": "tsc --project tsconfig.json",
"test": "vitest run",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage"
"test:coverage": "vitest run --coverage",
"format": "prettier --write \"src/**/*.ts\"",
"lint": "eslint \"src/**/*.ts\"",
"lint:fix": "eslint \"src/**/*.ts\" --fix"
},
"keywords": [],
"author": "",
@@ -44,9 +47,13 @@
"@types/cors": "^2.8.17",
"@types/multer": "^2.0.0",
"@types/supertest": "^6.0.3",
"@typescript-eslint/eslint-plugin": "^8.44.1",
"@typescript-eslint/parser": "^8.44.1",
"@vitest/coverage-v8": "^3.2.4",
"cross-env": "^7.0.3",
"prettier": "^3.2.5",
"eslint": "^9.36.0",
"eslint-config-prettier": "^10.1.8",
"prettier": "^3.6.2",
"supertest": "^7.1.4",
"ts-node-dev": "^2.0.0",
"vite": "^7.1.7",