u
This commit is contained in:
1 parent
0f1604c709
commit
4e42a01b97
18 files changed
+1371
-47
No files matched your search
@@ -0,0 +1,27 @@
|
||||
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',
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user