- Building Enterprise JavaScript Applications
- Daniel Li
- 52字
- 2025-04-04 16:09:32
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.