From c7302740e1284bfca700c60d164c8bc388d0c876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Wed, 4 May 2022 14:40:12 +0800 Subject: [PATCH] =?UTF-8?q?chore(.eslintrc.js):=20=E4=BF=AE=E6=94=B9eslint?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: bbe6b5913e6e9cf264509981434c1849cb1e19a9 --- .eslintrc.js | 61 +++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 4ea6d1f0..1ee72aed 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,33 +1,30 @@ module.exports = { - "env": { - "browser": true, - "es2021": true, - "node": true - }, - globals: { - defineProps: "readonly", - defineEmits: "readonly", - defineExpose: "readonly" - }, - "parser": "vue-eslint-parser", - "extends": [ - "eslint:recommended", - "plugin:vue/essential", - "plugin:@typescript-eslint/recommended" - ], - "parserOptions": { - "ecmaVersion": "latest", - "parser": "@typescript-eslint/parser", - "sourceType": "module" - }, - "plugins": [ - "vue", - "@typescript-eslint" - ], - "rules": { - "vue/multi-word-component-names": "off", - "@typescript-eslint/no-empty-function": "off", // 关闭空方法 - "@typescript-eslint/no-explicit-any": "off", // 关闭any类型的警告 - "vue/no-v-model-argument": "off" - } -} + env: { + browser: true, + es2021: true, + node: true + }, + globals: { + defineProps: 'readonly', + defineEmits: 'readonly', + defineExpose: 'readonly' + }, + parser: 'vue-eslint-parser', + extends: [ + 'eslint:recommended', + 'plugin:vue/vue3-essential', + 'plugin:@typescript-eslint/recommended' + ], + parserOptions: { + ecmaVersion: 'latest', + parser: '@typescript-eslint/parser', + sourceType: 'module' + }, + plugins: ['vue', '@typescript-eslint'], + rules: { + 'vue/multi-word-component-names': 'off', + '@typescript-eslint/no-empty-function': 'off', // 关闭空方法检查 + '@typescript-eslint/no-explicit-any': 'off', // 关闭any类型的警告 + 'vue/no-v-model-argument': 'off' + } +};