From 48daa810d3ca2cc8527ffe7f415336d785ffa5c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Fri, 15 Apr 2022 00:39:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(eslintrc.js):=20=E6=B7=BB=E5=8A=A0eslint?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A3=80=E6=9F=A5=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 35d8ed2fdd67511679cf30a2da35410477eca5cc --- .eslintrc.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..4ea6d1f0 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,33 @@ +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" + } +}