問題描述:項目中使用debugger/console報錯
error Unexpected ‘debugger’ statement no-debugger
error Unexpected ‘debugger’ statement no-debugger
解決辦法:
1. 找到項目中的 package.json 文件
2. 找到 eslintConfig 配置參數
3. 在 eslintConfig 下的 rules 添加 “no-debugger”: “off”, “no-console”: “off”,如果off不行,可以把它改成0 ,因為我之前試了一下設置為off時,編譯還是會報錯
更多配置信息可以參考https://blog.csdn.net/tianxintiandisheng/article/details/102855926