From 8e5ddc1365c6e35f57b3d32315738df653ad1290 Mon Sep 17 00:00:00 2001 From: Ziga Cernigoj Date: Tue, 5 Aug 2025 14:42:14 +0200 Subject: [PATCH 1/2] add tsc to lint script in package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 08719ba5..699eb7e4 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "build": "rollup -c", "dev": "rollup -c -w", "test": "TZ=Europe/Ljubljana jest", - "lint": "eslint --max-warnings 0 --ext .ts,js src/", + "lint": "tsc && eslint --max-warnings 0 --ext .ts,js src/", "prettier": "prettier --write \"{src,example,stories}/**/*.{ts,js}\"", "storybook": "concurrently --kill-others \"rollup -c -w\" \"start-storybook -p 6006 --quiet\"", "build-storybook": "build-storybook", From ea1ed1abdd9c4f9484169326d3920a7e0b7f81c4 Mon Sep 17 00:00:00 2001 From: Ziga Cernigoj Date: Tue, 5 Aug 2025 14:43:03 +0200 Subject: [PATCH 2/2] set 'strict' compile option in tsconfig to true --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 0bbd8578..f1636000 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,8 @@ "target": "es2016", "moduleResolution": "node", "esModuleInterop": true, - "skipLibCheck": true + "skipLibCheck": true, + "strict": true, }, "include": ["src/**/*"], }