chore(.eslintrc.cjs): 🔨 根据官方文档配置解决 `eslint` 和 `prettier` 的冲突问题

This commit is contained in:
haoxr 2023-05-16 01:04:07 +08:00
parent c64a8ba9fe
commit e818c395b7
1 changed files with 3 additions and 5 deletions

View File

@ -5,12 +5,11 @@ module.exports = {
node: true,
},
parser: "vue-eslint-parser",
// https://eslint.vuejs.org/user-guide/#bundle-configurations
extends: [
"eslint:recommended",
"plugin:vue/vue3-essential",
"plugin:@typescript-eslint/recommended",
// 参考vuejs官方的eslint配置 https://eslint.vuejs.org/user-guide/#usage
"plugin:vue/vue3-recommended",
"./.eslintrc-auto-import.json",
"prettier",
],
parserOptions: {
ecmaVersion: "latest",
@ -29,6 +28,5 @@ module.exports = {
globals: {
DialogOption: "readonly",
OptionType: "readonly",
defineOptions: "readonly",
},
};