From 323067d5b561263df203b94e51f44c493b6df0a7 Mon Sep 17 00:00:00 2001 From: Arthur Deierlein Date: Wed, 17 Jan 2024 15:19:39 +0100 Subject: [PATCH] chore(lint): enforce strict types --- .github/workflows/ci.yml | 2 +- package.json | 3 ++- tsconfig.json | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30dce4d..2b45743 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,5 +80,5 @@ jobs: - name: Install dependencies run: pnpm install - - name: Lint with eslint 🧹 + - name: Lint 🧹 run: pnpm lint \ No newline at end of file diff --git a/package.json b/package.json index e74b27a..ddf6317 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", "lint:js": "eslint .", "lint:js:fix": "eslint . --fix", + "lint:ts": "tsc", "lint:css": "stylelint \"./src/**/*.css\"", "lint:css:fix": "stylelint \"./src/**/*.css\" -- --fix" }, @@ -54,4 +55,4 @@ "solid-js": "1.8.11", "solid-toast": "^0.5.0" } -} +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 37497a5..b22fc25 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "strict": true, "target": "ES2022", "module": "ES2022", "moduleResolution": "node",