起因 项目添加了eslint和husky后,提交代码git报错: 解决 .eslintrc.cjs配置配置文件中添加规则: rules: { 'jest/no-deprecated-functions': 'off' }