From 0d2ef90c29c580ee4732e37302969d8cd33350e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Weng?= Date: Thu, 26 May 2022 15:27:07 +0200 Subject: [PATCH] chore: rename build-types to check-types for better semantic --- .husky/pre-commit | 2 +- .vscode/tasks.json | 2 +- lint-staged.config.js | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index c798d48..c39a0a4 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -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 diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 8e7ad16..f02b913 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,7 +6,7 @@ { "label": "Project wide type checking with TypeScript", "type": "npm", - "script": "build-types", + "script": "check-types", "problemMatcher": ["$tsc"], "group": { "kind": "build", diff --git a/lint-staged.config.js b/lint-staged.config.js index e897579..9b7922a 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -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'], }; diff --git a/package.json b/package.json index 6adfd81..a91c76e 100644 --- a/package.json +++ b/package.json @@ -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" },