Skip to content

Commit

Permalink
📦️ chore: Add tsconfig package
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Sep 18, 2023
1 parent b9fc404 commit 1e85063
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/tsconfig/README.md
Original file line number Diff line number Diff line change
@@ -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)
31 changes: 31 additions & 0 deletions packages/tsconfig/base.json
Original file line number Diff line number Diff line change
@@ -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
}
}

8 changes: 8 additions & 0 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "tsconfig",
"version": "0.0.0",
"private": true,
"files": [
"base.json"
]
}

0 comments on commit 1e85063

Please sign in to comment.