vue中debugger报错 unexpected ‘debugger’ statement-QUI-Notes

报错描述:

http://eslink.org/docs/rules/no-debugger Unexpected ‘debugger’ statement no-debugger

原因分析:

eslink规则没有开启'debugger' ,被规则屏蔽了,需要手动放开

规则参考:

https://cn.eslint.org/docs/rules/no-debugger

解决办法(主要看你项目是哪一个文件)

方案一:
找到.eslintrc.js 的“rules",将”no-debugger的值‘2’改为‘0’

方案二:
1. 找到项目中的 package.json 文件
2. 找到 eslintConfig 配置参数
3. 在 eslintConfig 下的 rules 添加 “no-debugger”: “off”