chore: 统一并强化ESLint配置规则

This commit is contained in:
YHH
2025-11-02 12:45:47 +08:00
parent 793aad0a5e
commit 50a01d9dd3
3 changed files with 26 additions and 77 deletions

View File

@@ -35,7 +35,9 @@
"build:npm": "npm run build && node build-rollup.cjs",
"test": "jest --config jest.config.cjs",
"test:watch": "jest --watch --config jest.config.cjs",
"test:coverage": "jest --coverage --config jest.config.cjs"
"test:coverage": "jest --coverage --config jest.config.cjs",
"lint": "eslint \"src/**/*.{ts,tsx}\"",
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix"
},
"author": "yhh",
"license": "MIT",
@@ -50,6 +52,9 @@
"@rollup/plugin-terser": "^0.4.4",
"@types/jest": "^29.5.14",
"@types/node": "^20.19.17",
"@eslint/js": "^9.37.0",
"eslint": "^9.37.0",
"typescript-eslint": "^8.46.1",
"jest": "^29.7.0",
"rimraf": "^5.0.0",
"rollup": "^4.42.0",