Files
workspace/code/iibta/iibta-vue/.eslintrc.cjs
T
2025-08-14 19:33:38 +08:00

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',
},
}