From 0e7f882c993e4ef7a9cbac99a3fb1d3f82bff331 Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Sun, 28 Aug 2022 17:10:23 +1000 Subject: [PATCH] Update TS configs --- internal/tsconfig/base.json | 13 ++++++++++--- internal/tsconfig/nextjs.json | 13 ++++--------- packages/button/tsconfig.json | 2 +- plop-templates/component/tsconfig.json.hbs | 2 +- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/internal/tsconfig/base.json b/internal/tsconfig/base.json index a2fbc164..f7792978 100644 --- a/internal/tsconfig/base.json +++ b/internal/tsconfig/base.json @@ -10,12 +10,19 @@ "forceConsistentCasingInFileNames": true, "inlineSources": false, "isolatedModules": true, + "module": "ES2020", "moduleResolution": "node", - "noUnusedLocals": false, - "noUnusedParameters": false, + "noImplicitAny": true, + "noImplicitReturns": false, + "noImplicitThis": true, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, "preserveWatchOutput": true, "skipLibCheck": true, - "strict": true + "strict": true, + "strictNullChecks": true, + "target": "ES2020" }, "exclude": ["node_modules"] } diff --git a/internal/tsconfig/nextjs.json b/internal/tsconfig/nextjs.json index 16b2d30c..1a818724 100644 --- a/internal/tsconfig/nextjs.json +++ b/internal/tsconfig/nextjs.json @@ -3,19 +3,14 @@ "display": "Next.js", "extends": "./base.json", "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, - "skipLibCheck": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noEmit": true, "incremental": true, - "esModuleInterop": true, + "jsx": "preserve", + "lib": ["dom", "dom.iterable", "esnext"], "module": "esnext", + "noEmit": true, "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve" + "target": "ES2015" }, "include": ["src", "next-env.d.ts"], "exclude": ["node_modules"] diff --git a/packages/button/tsconfig.json b/packages/button/tsconfig.json index ea13fee0..aadc60fb 100644 --- a/packages/button/tsconfig.json +++ b/packages/button/tsconfig.json @@ -1,5 +1,5 @@ { "extends": "@luke-ui-internal/tsconfig/react-library.json", "include": ["."], - "exclude": ["dist", "build", "node_modules"] + "exclude": [".turbo", "dist", "node_modules"] } diff --git a/plop-templates/component/tsconfig.json.hbs b/plop-templates/component/tsconfig.json.hbs index ea13fee0..aadc60fb 100644 --- a/plop-templates/component/tsconfig.json.hbs +++ b/plop-templates/component/tsconfig.json.hbs @@ -1,5 +1,5 @@ { "extends": "@luke-ui-internal/tsconfig/react-library.json", "include": ["."], - "exclude": ["dist", "build", "node_modules"] + "exclude": [".turbo", "dist", "node_modules"] } -- 2.51.2