2023-03-11 20:44:42 +08:00
|
|
|
|
2022-04-15 00:39:41 +08:00
|
|
|
module.exports = {
|
2022-05-08 13:06:12 +08:00
|
|
|
env: {
|
|
|
|
|
browser: true,
|
|
|
|
|
es2021: true,
|
2023-03-11 20:44:42 +08:00
|
|
|
node: true,
|
2022-05-08 13:06:12 +08:00
|
|
|
},
|
|
|
|
|
parser: 'vue-eslint-parser',
|
2023-03-11 20:44:42 +08:00
|
|
|
// https://eslint.vuejs.org/user-guide/#bundle-configurations
|
2022-05-08 13:06:12 +08:00
|
|
|
extends: [
|
|
|
|
|
'eslint:recommended',
|
|
|
|
|
'plugin:vue/vue3-essential',
|
2023-01-15 10:36:14 +08:00
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
|
"./.eslintrc-auto-import.json"
|
2022-05-08 13:06:12 +08:00
|
|
|
],
|
|
|
|
|
parserOptions: {
|
|
|
|
|
ecmaVersion: 'latest',
|
2023-03-11 20:44:42 +08:00
|
|
|
sourceType: 'module',
|
2022-05-08 13:06:12 +08:00
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
|
},
|
|
|
|
|
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'
|
2023-03-11 20:44:42 +08:00
|
|
|
},
|
|
|
|
|
// https://eslint.org/docs/latest/use/configure/language-options#specifying-globals
|
|
|
|
|
globals: {
|
|
|
|
|
DialogOption: 'readonly',
|
|
|
|
|
OptionType:'readonly'
|
2022-05-08 13:06:12 +08:00
|
|
|
}
|
2022-05-04 14:40:12 +08:00
|
|
|
};
|