Skip to content

Commit

Permalink
chore: rename build-types to check-types for better semantic
Browse files Browse the repository at this point in the history
  • Loading branch information
ixartz committed May 26, 2022
1 parent bf3e4d4 commit 0d2ef90
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Disable concurent to run build-types after ESLint in lint-staged
# Disable concurent to run `check-types` after ESLint in lint-staged
npx lint-staged --concurrent false
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"label": "Project wide type checking with TypeScript",
"type": "npm",
"script": "build-types",
"script": "check-types",
"problemMatcher": ["$tsc"],
"group": {
"kind": "build",
Expand Down
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
'*.{js,jsx,ts,tsx}': ['eslint --fix', 'eslint'],
'**/*.ts?(x)': () => 'npm run build-types',
'**/*.ts?(x)': () => 'npm run check-types',
'*.json': ['prettier --write'],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build-prod": "run-s clean build export",
"clean": "rimraf .next out",
"lint": "next lint",
"build-types": "tsc --noEmit --pretty",
"check-types": "tsc --noEmit --pretty",
"test": "jest --watch",
"prepare": "husky install"
},
Expand Down

0 comments on commit 0d2ef90

Please sign in to comment.