chore(.eslintrc.cjs): 🔨 根据官方文档配置解决 eslint 和 prettier 的冲突问题
Former-commit-id: e818c395b7c19bc98dd993ca6c6068f1d4974f42
This commit is contained in:
@@ -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",
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user