Skip to content

Commit

Permalink
add lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
err53 committed Aug 22, 2023
1 parent c19a333 commit f7b3818
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 40 deletions.
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,20 @@
"devDependencies": {
"prettier": "^3.0.2",
"prettier-plugin-astro": "^0.12.0",
"prettier-plugin-tailwindcss": "^0.5.3"
"prettier-plugin-tailwindcss": "^0.5.3",
"husky": "^8.0.3",
"lint-staged": "^14.0.1"
},
"volta": {
"node": "18.17.1",
"pnpm": "8.6.12"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*": "prettier --ignore-unknown --write --plugin=prettier-plugin-tailwindcss --plugin=prettier-plugin-astro"
}
}
Loading

0 comments on commit f7b3818

Please sign in to comment.