refactor: standardize code formatting and linting configuration

- Replace .eslintrc.js with .eslintrc.cjs for better ES module compatibility
- Add .prettierrc configuration for consistent code formatting
- Update package.json with new lint and format scripts
- Add nodemon.json for development hot reloading configuration
- Standardize code formatting across all JavaScript and Vue files
- Update web admin SPA with improved linting rules and formatting
- Add prettier configuration to web admin SPA

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
千羽
2025-08-07 18:19:31 +09:00
parent 4a0eba117c
commit 8a74bf5afe
124 changed files with 20878 additions and 18757 deletions

View File

@@ -4,8 +4,8 @@
"description": "Claude Code API relay service with multi-account management, OpenAI compatibility, and API key authentication",
"main": "src/app.js",
"scripts": {
"start": "node src/app.js",
"dev": "nodemon src/app.js",
"start": "npm run lint && node src/app.js",
"dev": "nodemon",
"build:web": "cd web/admin-spa && npm run build",
"install:web": "cd web/admin-spa && npm install",
"update:pricing": "node scripts/update-model-pricing.js",
@@ -25,7 +25,10 @@
"service:status": "node scripts/manage.js status",
"service:logs": "node scripts/manage.js logs",
"test": "jest",
"lint": "eslint src/**/*.js",
"lint": "eslint src/**/*.js cli/**/*.js scripts/**/*.js --fix",
"lint:check": "eslint src/**/*.js cli/**/*.js scripts/**/*.js",
"format": "prettier --write \"src/**/*.js\" \"cli/**/*.js\" \"scripts/**/*.js\"",
"format:check": "prettier --check \"src/**/*.js\" \"cli/**/*.js\" \"scripts/**/*.js\"",
"docker:build": "docker build -t claude-relay-service .",
"docker:up": "docker-compose up -d",
"docker:down": "docker-compose down",
@@ -69,8 +72,11 @@
"devDependencies": {
"@types/node": "^20.8.9",
"eslint": "^8.53.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"nodemon": "^3.0.1",
"prettier": "^3.6.2",
"supertest": "^6.3.3"
},
"engines": {