chore(.eslintrc.cjs): 🔨 根据官方文档配置解决 `eslint` 和 `prettier` 的冲突问题
This commit is contained in:
parent
c64a8ba9fe
commit
e818c395b7
|
|
@ -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",
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue