From b06f6a316b6a8293bb8aba6bfff33336b66c032a Mon Sep 17 00:00:00 2001 From: ahaos <8406649+lhailgl@user.noreply.gitee.com> Date: 星期三, 13 十二月 2023 09:01:52 +0800 Subject: [PATCH] !64 版本升级 * Merge branch 'dev' of gitee.com:JavaLionLi/plus-ui into ts * 升级依赖 * !61 fix: 删除重复环境变量ElUploadInstance * fix: 删除重复环境变量ElUploadInstance --- .eslintrc.js | 86 +++++++++++++++++++++++------------------- 1 files changed, 47 insertions(+), 39 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 518d476..3fab2db 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,41 +1,49 @@ module.exports = { - env: { - browser: true, - es2021: true, - node: true - }, - parser: 'vue-eslint-parser', - extends: [ - 'eslint:recommended', - 'plugin:vue/vue3-essential', - 'plugin:@typescript-eslint/recommended', - './.eslintrc-auto-import.json', - 'plugin:prettier/recommended' - ], - parserOptions: { - ecmaVersion: '2020', - sourceType: 'module', - parser: '@typescript-eslint/parser' - }, - plugins: ['vue', '@typescript-eslint'], - rules: { - 'vue/multi-word-component-names': 'off', - '@typescript-eslint/no-empty-function': 'off', - '@typescript-eslint/no-explicit-any': 'off', - 'vue/no-v-model-argument': 'off', - '@typescript-eslint/ban-types': [ - 'error', - { - // 鍏抽棴绌虹被鍨嬫鏌� {} - extendDefaults: true, - types: { - '{}': false - } - } - ] - }, - globals: { - DialogOption: 'readonly', - OptionType: 'readonly' - } + env: { + browser: true, + node: true, + es6: true + }, + parser: 'vue-eslint-parser', + extends: [ + 'plugin:vue/vue3-recommended', + './.eslintrc-auto-import.json', + 'plugin:@typescript-eslint/recommended', + "prettier", + 'plugin:prettier/recommended', + ], + parserOptions: { + ecmaVersion: '2020', + sourceType: 'module', + project: "./tsconfig.*?.json", + parser: '@typescript-eslint/parser' + }, + plugins: ['vue', '@typescript-eslint', 'import', 'promise', 'node', 'prettier'], + rules: { + '@typescript-eslint/no-empty-function': 'off', + '@typescript-eslint/no-explicit-any': 'off', + + // vue + 'vue/multi-word-component-names': 'off', + 'vue/valid-define-props': 'off', + 'vue/no-v-model-argument': 'off', + 'prefer-rest-params': 'off', + // prettier + 'prettier/prettier': 'error', + '@typescript-eslint/ban-types': [ + 'error', + { + // 鍏抽棴绌虹被鍨嬫鏌� {} + extendDefaults: true, + types: { + '{}': false, + Function: false + } + } + ] + }, + globals: { + DialogOption: 'readonly', + OptionType: 'readonly' + } }; -- Gitblit v1.9.3