Skip to content

Commit

Permalink
fix: use lint-staged correctly (#1226)
Browse files Browse the repository at this point in the history
It was previously running prettier against the entire codebase on commit, instead of just the files that are being committed.
  • Loading branch information
pepopowitz authored Sep 2, 2022
1 parent 0fc9611 commit fab1123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
"prettier": "2.7.1"
},
"lint-staged": {
"*.{css,js,json,MD,md,mdx,yaml,yml}": "npm run format"
"*.{css,js,json,MD,md,mdx,yaml,yml}": "prettier --write"
}
}

0 comments on commit fab1123

Please sign in to comment.