Skip to content

Commit

Permalink
chore: 🤖 使用lint-staged来做lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeLittlePrince committed Dec 20, 2021
1 parent 4b0fef1 commit 71c38d3
Show file tree
Hide file tree
Showing 3 changed files with 273 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.js": "eslint"
}
268 changes: 268 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"prepare": "husky install",
"demo": "webpack-dev-server --open --config ./demo/webpack.config",
"commit": "git-cz",
"lint": "eslint --ext .js ./",
"lint": "lint-staged",
"release": "np --yolo",
"test": "jest test"
},
Expand Down Expand Up @@ -43,6 +43,7 @@
"html-webpack-plugin": "^3.2.0",
"husky": "^7.0.4",
"jest": "^27.3.1",
"lint-staged": "^12.1.3",
"mockjs": "^1.1.0",
"nodemon": "^2.0.14",
"np": "^7.5.0",
Expand Down

0 comments on commit 71c38d3

Please sign in to comment.