diff --git a/.eslintrc.js b/.eslintrc.js index f523d8f0..4adf6887 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -39,7 +39,7 @@ module.exports = { 'react/prop-types': 'off', 'space-before-function-paren': 0, 'react-hooks/rules-of-hooks': 'error', // Checks rules of Hooks - '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], // 确保未使用的变量报错 + '@typescript-eslint/no-unused-vars': 'off', // 关闭未使用的变量报错 '@typescript-eslint/explicit-function-return-type': 'off' // 关闭强制函数返回类型声明 }, overrides: [