在.eslintrc.js中,我尝试过:
rules: {
"object-shorthand": "off", //tried 0 aswell
}但我还是得到了
error Expected method shorthand object-shorthand我想使用箭头和常规函数的组合,但eslint一直在抱怨。
发布于 2021-02-08 15:23:47
我想我已经弄明白了..。编辑.eslintrc.jc规则会触发热重新加载,并重新构建应用程序,但似乎并未实际应用eslintrc中的设置。如果我完全杀死服务器并重新启动,那么设置就会按预期工作。
https://stackoverflow.com/questions/66063961
复制相似问题