chore(.eslintrc.cjs): 🔨 根据官方文档配置解决 `eslint` 和 `prettier` 的冲突问题
This commit is contained in:
parent
c64a8ba9fe
commit
e818c395b7
|
|
@ -5,12 +5,11 @@ module.exports = {
|
||||||
node: true,
|
node: true,
|
||||||
},
|
},
|
||||||
parser: "vue-eslint-parser",
|
parser: "vue-eslint-parser",
|
||||||
// https://eslint.vuejs.org/user-guide/#bundle-configurations
|
|
||||||
extends: [
|
extends: [
|
||||||
"eslint:recommended",
|
// 参考vuejs官方的eslint配置: https://eslint.vuejs.org/user-guide/#usage
|
||||||
"plugin:vue/vue3-essential",
|
"plugin:vue/vue3-recommended",
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
"./.eslintrc-auto-import.json",
|
"./.eslintrc-auto-import.json",
|
||||||
|
"prettier",
|
||||||
],
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: "latest",
|
ecmaVersion: "latest",
|
||||||
|
|
@ -29,6 +28,5 @@ module.exports = {
|
||||||
globals: {
|
globals: {
|
||||||
DialogOption: "readonly",
|
DialogOption: "readonly",
|
||||||
OptionType: "readonly",
|
OptionType: "readonly",
|
||||||
defineOptions: "readonly",
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue