From e00aef90dec9d290b63463524161be63a9f97bff Mon Sep 17 00:00:00 2001 From: Arvid Norlin Date: Wed, 21 Feb 2024 09:23:39 +0100 Subject: [PATCH] chore: add tsc check to lint-staged --- lint-staged.config.js | 6 ++++++ package.json | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 lint-staged.config.js diff --git a/lint-staged.config.js b/lint-staged.config.js new file mode 100644 index 000000000..1a3d57566 --- /dev/null +++ b/lint-staged.config.js @@ -0,0 +1,6 @@ +const config = { + "*.{ts,tsx}": () => "tsc -p tsconfig.json --noEmit", + "*": "prettier --write", +} + +export default config diff --git a/package.json b/package.json index f0916321d..2af9188bd 100644 --- a/package.json +++ b/package.json @@ -38,8 +38,5 @@ }, "engines": { "node": "18" - }, - "lint-staged": { - "*.{ts,tsx,cjs,mjs,css,md,json}": "prettier --write" } }