
上QQ阅读APP看书,第一时间看更新
Adding lint script to package.json
Just as we did with the build, serve, and watch npm scripts, we can add a fix and lint script into our package.json:
"scripts": {
...
"fix": "eslint src --fix",
"lint": "eslint src",
...
Now, we can run yarn run lint to lint our entire project.