- Building Enterprise JavaScript Applications
- Daniel Li
- 52字
- 2021-07-23 16:31:14
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.