Skip to content

Commit

Permalink
Setup pre commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
amit548 committed Dec 29, 2021
1 parent 0d33110 commit 2d186cb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint:fix
npx lint-staged
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
"dev": "nodemon",
"prepare": "husky install"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"yarn lint:fix",
Expand Down
2 changes: 0 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { join } from 'path';
import { cwd, exit } from 'process';



import express from 'express';
import mongoose from 'mongoose';
import Handlebars from 'handlebars';
Expand Down

0 comments on commit 2d186cb

Please sign in to comment.