
有 npm script eslint
eslint --ext .js,.vue --format unix -o eslint.report src/** 但是 eslint 检测到有 eslint error 最后整个脚本npm scrpit eslint的输出为 exit 1;
导致我npm script posteslint脚本没有办法执行;
请问有什么办法让 eslint 只输出检测结果,不抛出错误。好让我的posteslint 可以执行?
1 yangg 2017-02-14 11:43:57 +08:00 后面分号加 echo 试试 eslint --ext .js,.vue --format unix -o eslint.report src/**; echo |