eslint生成报告
首先安装eslintnpm i -g eslint然后在终端输入以下命令eslint -f compact "src"> results.txt这是将src下的文件检查后导出到results.txt文件中。如果有如下这样的报错,就检查一下.eslintignore文件。You are linting "src", but all of the files matching the glob pattern "src" are ignored.If you don't want to
原创
2020-08-12 17:01:40 ·
4471 阅读 ·
0 评论