From 59780207bd053ea09e16a73533f5a7a611811dbd Mon Sep 17 00:00:00 2001 From: Joakim Carlstein Date: Thu, 9 Nov 2023 08:37:37 +0100 Subject: [PATCH] feat(tsconfig): stricten up the default TypeScript config some more --- .changeset/new-rules-hunt.md | 5 +++++ packages/tsconfig/base.json | 8 ++++++++ packages/tsconfig/package.json | 4 +++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .changeset/new-rules-hunt.md diff --git a/.changeset/new-rules-hunt.md b/.changeset/new-rules-hunt.md new file mode 100644 index 0000000..6f75d97 --- /dev/null +++ b/.changeset/new-rules-hunt.md @@ -0,0 +1,5 @@ +--- +'@emigrate/tsconfig': major +--- + +First release and it's considered stable as it has been in use in other projects for a while. diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json index d34890a..73df33f 100644 --- a/packages/tsconfig/base.json +++ b/packages/tsconfig/base.json @@ -2,6 +2,8 @@ "$schema": "https://json.schemastore.org/tsconfig", "display": "Default", "compilerOptions": { + "allowUnreachableCode": false, + "allowUnusedLabels": false, "allowSyntheticDefaultImports": true, "declaration": true, "declarationMap": true, @@ -13,8 +15,14 @@ "module": "NodeNext", "moduleResolution": "NodeNext", "noEmit": true, + "noFallthroughCasesInSwitch": true, "noImplicitOverride": true, "noImplicitReturns": true, + "noImplicitAny": true, + "noPropertyAccessFromIndexSignature": true, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, "preserveWatchOutput": true, "resolveJsonModule": false, "skipLibCheck": true, diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index 66befd9..25a53b6 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -7,5 +7,7 @@ "files": [ "base.json", "build.json" - ] + ], + "author": "Aboviq AB (https://www.aboviq.com)", + "license": "MIT" }