Files
simple-element-plus-template/.eslintrc.js
gary.fu 71689ad7ea 升级依赖到最新稳定版本,支持 Node 20+
- 升级核心依赖:vue 3.5.41、vue-router 5.2.0、vue-i18n 11.4.2、element-plus 2.14.4
- 升级工具依赖:@vueuse/core 14.4.0、pinia 3.0.4、vue-virtual-scroller 2.0.1(正式版)
- 升级图表依赖:echarts 6.1.0、vue-echarts 8.1.0
- 升级 axios 1.19.0、dayjs 1.11.23、lodash-es 4.18.1、monaco-editor 0.56.0
- 升级构建工具:vite 7.3.6、@vitejs/plugin-vue 6.0.8、@vitejs/plugin-vue-jsx 5.1.6
- 升级 @typescript-eslint 8.67.0、@rushstack/eslint-patch 1.16.1
- package.json 新增 engines 字段声明 Node >= 20.0.0
- 优化 vite.config.mjs:eslint 和 mock 插件仅在 dev 模式启用,避免构建阻塞
- 构建分包策略:monaco-editor 独立拆包 monaco chunk
- 修复 monaco-editor 0.56.0 worker 导入路径(适配新版 exports 字段)
- 新增 acorn ^8.14.0 dev 依赖修复 ESLint 模块解析问题
- .eslintrc.js 关闭 vue/no-v-html 规则以支持动态内容渲染
- README.md 补充 Node.js >= 20.0.0 环境要求说明
2026-08-19 10:09:32 +08:00

25 lines
622 B
JavaScript

/* eslint-env node */
module.exports = {
root: true,
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/eslint-config-standard',
'plugin:@typescript-eslint/recommended'
],
parser: 'vue-eslint-parser',
plugins: ['@typescript-eslint'],
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser'
},
rules: {
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'vue/no-v-html': 'off'
}
}