vscode打开前端页面出现很多错误提示

发布于 2024-11-13 16:51:42

如图,vscode打开前端部分的代码,出现很多这样的错误提示,请问你们是怎么处理的呢?是需要更换eslint版本吗?
image.png
下面是package.json:
{

"name": "django-vue3-admin",
"version": "3.0.4",
"description": "是一套全部开源的快速开发平台,毫无保留给个人免费使用、团体授权使用。\n    django-vue3-admin 基于RBAC模型的权限控制的一整套基础开发平台,权限粒度达到列级别,前后端分离,后端采用django + django-rest-framework,前端采用基于 vue3 + CompositionAPI + typescript + vite + element plus",
"license": "MIT",
"scripts": {
    "dev": "vite --force",
    "build": "vite build",
    "build:local": "vite build --mode local_prod",
    "lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/"
},
"dependencies": {
    "@element-plus/icons-vue": "^2.3.1",
    "@fast-crud/fast-crud": "^1.21.2",
    "@fast-crud/fast-extends": "^1.21.2",
    "@fast-crud/ui-element": "^1.21.2",
    "@fast-crud/ui-interface": "^1.21.2",
    "@iconify/vue": "^4.1.2",
    "@types/lodash": "^4.17.7",
    "@vitejs/plugin-vue-jsx": "^4.0.1",
    "@wangeditor/editor": "^5.1.23",
    "@wangeditor/editor-for-vue": "^5.1.12",
    "autoprefixer": "^10.4.20",
    "axios": "^1.7.4",
    "countup.js": "^2.8.0",
    "cropperjs": "^1.6.2",
    "e-icon-picker": "2.1.1",
    "echarts": "^5.5.1",
    "echarts-gl": "^2.0.9",
    "echarts-wordcloud": "^2.1.0",
    "element-plus": "^2.8.0",
    "element-tree-line": "^0.2.1",
    "font-awesome": "^4.7.0",
    "js-cookie": "^3.0.5",
    "js-table2excel": "^1.1.2",
    "jsplumb": "^2.15.6",
    "lodash-es": "^4.17.21",
    "mitt": "^3.0.1",
    "nprogress": "^0.2.0",
    "pinia": "^2.0.28",
    "pinia-plugin-persist": "^1.0.0",
    "postcss": "^8.4.21",
    "print-js": "^1.6.0",
    "qrcodejs2-fixes": "^0.0.2",
    "qs": "^6.11.0",
    "screenfull": "^6.0.2",
    "sortablejs": "^1.15.0",
    "splitpanes": "^3.1.5",
    "tailwindcss": "^3.2.7",
    "ts-md5": "^1.3.1",
    "upgrade": "^1.1.0",
    "vue": "^3.4.38",
    "vue-clipboard3": "^2.0.0",
    "vue-cropper": "^1.0.8",
    "vue-grid-layout": "^3.0.0-beta1",
    "vue-i18n": "^9.14.0",
    "vue-router": "^4.4.3",
    "vxe-table": "^4.6.18",
    "xe-utils": "^3.5.30"
},
"devDependencies": {
    "@types/node": "^18.19.42",
    "@types/nprogress": "^0.2.3",
    "@types/sortablejs": "^1.15.8",
    "@typescript-eslint/eslint-plugin": "^5.46.0",
    "@typescript-eslint/parser": "^5.46.0",
    "@vitejs/plugin-vue": "^5.1.2",
    "@vue/compiler-sfc": "^3.4.38",
    "eslint": "^9.9.0",
    "eslint-plugin-vue": "^9.27.0",
    "prettier": "^2.8.1",
    "sass": "^1.56.2",
    "typescript": "^4.9.4",
    "vite": "^5.4.1",
    "vite-plugin-vue-setup-extend": "^0.4.0",
    "vue-eslint-parser": "^9.4.3"
},
"browserslist": [
    "> 1%",
    "last 2 versions",
    "not dead"
],
"engines": {
    "node": ">=16.0.0",
    "npm": ">= 7.0.0"
},
"keywords": [
    "vue",
    "vue3",
    "element-ui",
    "element-plus",
    "django-vue3-admin",
    "django",
    "django-restframework"
],
"repository": {
    "type": "git",
    "url": "https://gitee.com/huge-dream/django-vue3-admin.git"
}

}

查看更多

关注者
1
被浏览
122
0 个回答
暂无答案,快来添加答案吧

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览