From e82b552c67d98b29c565102326496e2e04b6f82c Mon Sep 17 00:00:00 2001 From: Leonardo Christino <leomilho@gmail.com> Date: Fri, 29 Mar 2024 13:40:41 +0100 Subject: [PATCH] chore: fix type check --- apps/web/tsconfig.json | 3 +++ libs/shared/package.json | 1 + libs/shared/tsconfig.json | 27 +++++++++++++-------------- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index 9e586538a..5b58d4e9d 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -26,6 +26,7 @@ "baseUrl": ".", "types": ["vite/client"], "paths": { + "@graphpolaris/shared/lib/*": ["./node_modules/@graphpolaris/shared/lib/*"], "redux": ["./node_modules/redux"], "@storybook/types": ["./node_modules/@storybook/types"], "redux-thunk": ["./node_modules/redux-thunk"], @@ -36,6 +37,8 @@ "dist", "build", "node_modules", + "node_modules/*", + "node_modules/**/*", "public", "vitest.setup.ts", // excludes Vitest setup file "tailwind.config.js", // excludes Tailwind CSS configuration file diff --git a/libs/shared/package.json b/libs/shared/package.json index 0a79af76f..bccd77823 100644 --- a/libs/shared/package.json +++ b/libs/shared/package.json @@ -6,6 +6,7 @@ "scripts": { "lint": "eslint lib/**/* --no-error-on-unmatched-pattern", "test": "vitest run", + "type-p": "tsc --noEmit --skipLibCheck", "coverage": "vitest run --coverage" }, "peerDependencies": { diff --git a/libs/shared/tsconfig.json b/libs/shared/tsconfig.json index e9b898136..c3c71fc29 100644 --- a/libs/shared/tsconfig.json +++ b/libs/shared/tsconfig.json @@ -2,31 +2,30 @@ "$schema": "https://json.schemastore.org/tsconfig", "display": "React Library", "compilerOptions": { - "target": "ESNext", - "composite": true, - "inlineSources": false, - "noUnusedLocals": false, - "noUnusedParameters": false, - "preserveWatchOutput": true, + "target": "ES2022", "jsx": "react-jsx", - "useDefineForClassFields": true, - "lib": ["ES2017", "DOM", "DOM.Iterable", "ESNext"], "allowJs": true, - "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, - "strict": true, "forceConsistentCasingInFileNames": true, - "module": "ESNext", + "strict": true, + "noImplicitOverride": false, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "useDefineForClassFields": true, + "lib": ["DOM", "DOM.Iterable", "ES2022"], + "skipLibCheck": true, + "module": "ES2022", "moduleResolution": "node", "resolveJsonModule": true, + "isolatedModules": true, "noEmit": true, - "baseUrl": ".", "incremental": true, - "noImplicitOverride": false, + "listFiles": false, + "composite": true, + "baseUrl": ".", "paths": { "@graphpolaris/shared/lib/*": ["./lib/*"], - "@graphpolaris/config/*": ["../../libs/config/src/*"], "redux": ["./node_modules/redux"], "@storybook/types": ["./node_modules/@storybook/types"], "redux-thunk": ["./node_modules/redux-thunk"], -- GitLab