28 lines
703 B
JavaScript
28 lines
703 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
browser: true,
|
|
es2021: true,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:vue/vue3-recommended',
|
|
'plugin:prettier/recommended',
|
|
'./.eslintrc-auto-import.json',
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
parser: '@typescript-eslint/parser',
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['@typescript-eslint', 'prettier', 'vue'],
|
|
rules: {
|
|
'no-undef': 'off', // 在 Vue 文件中关闭 `no-undef` 规则
|
|
'vue/multi-word-component-names': 'off', // 禁用该规则
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'vue/no-reserved-props': 'off',
|
|
},
|
|
}
|