Skip to content

Commit

Permalink
Apply type-checking per file during pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus21337 committed Jun 25, 2024
1 parent 0a1e52e commit 9f2f014
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"*.ts": ["prettier --write", "eslint", "tsc"],
"*.ts": ["prettier --write", "eslint", "tsc-files"],
"*.{js,mjs,cjs}": ["prettier --write", "eslint"],
"*.{json,md}": ["prettier --write"]
}
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"prettier": "^3.3.2",
"prettier-plugin-astro": "^0.14.0",
"prettier-plugin-sort-json": "^4.0.0",
"prettier-plugin-tailwindcss": "^0.6.5"
"prettier-plugin-tailwindcss": "^0.6.5",
"tsc-files": "^1.1.4"
}
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"baseUrl": ".",
"noEmit": true,
"paths": {
"@/*": ["src/*"]
}
Expand Down

0 comments on commit 9f2f014

Please sign in to comment.