Skip to content

Commit

Permalink
Setup husky pre-commit to run lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
alexilyaev committed Feb 15, 2023
1 parent ab1b6c0 commit a61d995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint-staged
npx lint-staged
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "runrun-cli",
"version": "1.4.0",
"description": "Delightful interactive npm scripts runner 123",
"description": "Delightful interactive npm scripts runner",
"main": "index.js",
"bin": {
"runrun": "src/bin/runrun.js",
Expand All @@ -11,7 +11,6 @@
},
"scripts": {
"prepare": "husky install",
"lint-staged": "lint-staged",
"start": "node index.js",
"start-basic": "node index.js --config tests/configs/basic/package.json",
"base-prettier": "prettier --ignore-path .gitignore",
Expand Down

0 comments on commit a61d995

Please sign in to comment.