From a4460b5cbb221e1848d72a6ce7b572ff9cb77ddf Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Mon, 18 Sep 2023 23:36:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=EF=B8=8F=20chore:=20Add=20`tsconfi?= =?UTF-8?q?g`=20package=20(#875)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/tsconfig/README.md | 7 +++++++ packages/tsconfig/base.json | 31 +++++++++++++++++++++++++++++++ packages/tsconfig/package.json | 8 ++++++++ 3 files changed, 46 insertions(+) create mode 100644 packages/tsconfig/README.md create mode 100644 packages/tsconfig/base.json create mode 100644 packages/tsconfig/package.json diff --git a/packages/tsconfig/README.md b/packages/tsconfig/README.md new file mode 100644 index 000000000..675686d8f --- /dev/null +++ b/packages/tsconfig/README.md @@ -0,0 +1,7 @@ +# `tsconfig` + +This package contains the base `tsconfig.json`s files that all other packages inherit from in this repository. + +Based on: +- [Total TypeScript - The TSConfig Cheat Sheet](https://www.totaltypescript.com/tsconfig-cheat-sheet) +- [Strictest config from tsconfig/bases](https://github.com/tsconfig/bases/blob/031273b815ff7f672c7c9057fb7d19ef363054b1/bases/strictest.json) diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json new file mode 100644 index 000000000..2d77aa4b6 --- /dev/null +++ b/packages/tsconfig/base.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2022"], + "moduleResolution": "bundler", + "module": "ES2022", + "verbatimModuleSyntax": true, + "moduleDetection": "force", + + "isolatedModules": true, + + "strict": true, + "allowUnusedLabels": false, + "allowUnreachableCode": false, + "allowSyntheticDefaultImports": true, + "exactOptionalPropertyTypes": true, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true + } +} + diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json new file mode 100644 index 000000000..00010618d --- /dev/null +++ b/packages/tsconfig/package.json @@ -0,0 +1,8 @@ +{ + "name": "tsconfig", + "version": "0.0.0", + "private": true, + "files": [ + "base.json" + ] +}