From 29c23ee99b42b87eaf8bdd852a6bceb21328b91d Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Sun, 13 Oct 2024 10:20:46 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20:hammer:=20=E6=B7=BB=E5=8A=A0eslint?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 11 ++++++----- pnpm-lock.yaml | 8 -------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index d1ed7366..e13ac713 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "preview": "vite preview", "build-only": "vite build", "type-check": "vue-tsc --noEmit", - "lint:eslint": "eslint --fix --ext .ts,.js,.vue ./src ", + "lint:eslint": "eslint --fix ./src", "lint:prettier": "prettier --write \"**/*.{js,cjs,ts,json,tsx,css,less,scss,vue,html,md}\"", "lint:stylelint": "stylelint \"**/*.{css,scss,vue}\" --fix", "lint:lint-staged": "lint-staged", @@ -70,7 +70,7 @@ "devDependencies": { "@commitlint/cli": "^19.5.0", "@commitlint/config-conventional": "^19.5.0", - "@iconify-json/ep": "^1.2.1", + "@eslint/js": "^9.12.0", "@types/codemirror": "^5.60.15", "@types/lodash": "^4.17.10", "@types/node": "^22.7.5", @@ -81,16 +81,15 @@ "@typescript-eslint/eslint-plugin": "^8.8.1", "@typescript-eslint/parser": "^8.8.1", "@vitejs/plugin-vue": "^5.1.4", - "@vitejs/plugin-vue-jsx": "^3.1.0", "autoprefixer": "^10.4.20", "commitizen": "^4.3.1", "cz-git": "1.9.4", "eslint": "^9.12.0", "eslint-config-prettier": "^9.1.0", - "eslint-plugin-import": "^2.31.0", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-vue": "^9.29.0", "fast-glob": "^3.3.2", + "globals": "^15.11.0", "husky": "^9.1.6", "lint-staged": "^15.2.10", "postcss": "^8.4.47", @@ -105,7 +104,8 @@ "stylelint-config-recommended-vue": "^1.5.0", "stylelint-config-standard": "^36.0.1", "terser": "^5.34.1", - "typescript": "^5.6.3", + "typescript": "5.5.4", + "typescript-eslint": "^8.8.1", "unocss": "^0.63.4", "unplugin-auto-import": "^0.18.3", "unplugin-vue-components": "^0.27.4", @@ -113,6 +113,7 @@ "vite-plugin-mock-dev-server": "^1.8.0", "vite-plugin-svg-icons": "^2.0.1", "vite-plugin-vue-devtools": "^7.4.6", + "vue-eslint-parser": "^9.4.3", "vue-tsc": "^2.1.6" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 59b238cb..11a2fb0a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -127,9 +127,6 @@ devDependencies: eslint-config-prettier: specifier: ^9.1.0 version: 9.1.0(eslint@9.12.0) - eslint-define-config: - specifier: ^2.1.0 - version: 2.1.0 eslint-plugin-prettier: specifier: ^5.2.1 version: 5.2.1(eslint-config-prettier@9.1.0)(eslint@9.12.0)(prettier@3.3.3) @@ -4168,11 +4165,6 @@ packages: eslint: 9.12.0 dev: true - /eslint-define-config@2.1.0: - resolution: {integrity: sha512-QUp6pM9pjKEVannNAbSJNeRuYwW3LshejfyBBpjeMGaJjaDUpVps4C6KVR8R7dWZnD3i0synmrE36znjTkJvdQ==} - engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'} - dev: true - /eslint-plugin-prettier@5.2.1(eslint-config-prettier@9.1.0)(eslint@9.12.0)(prettier@3.3.3): resolution: {integrity: sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==} engines: {node: ^14.18.0 || >=16.0.0}