Skip to content

Commit

Permalink
chores: add pre-commit hook to catch ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Nov 15, 2023
1 parent c8a780a commit 08c4990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.ts|*.tsx": ["yarn prettier-format", "eslint"],
"*.ts|*.tsx": ["yarn prettier-format", "yarn eslint --quiet --fix", "bash -c tsc --noEmit"],
"*.scss|*.css": "yarn prettier-format"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"prettier": "prettier --check \"./**/**/*.{json,js,ts,tsx,scss}\"",
"prettier-format": "prettier --config .prettierrc \"./**/**/*.{json,js,ts,tsx,scss,md}\" --write",
"tslint": "tsc -p tsconfig.json --noEmit",
"bump": "bump",
"prepare": "husky install",
"test": "vitest run"
Expand Down

0 comments on commit 08c4990

Please sign in to comment.