aboutsummaryrefslogtreecommitdiffstats
path: root/tooling/typescript
diff options
context:
space:
mode:
Diffstat (limited to 'tooling/typescript')
-rw-r--r--tooling/typescript/base.json21
-rw-r--r--tooling/typescript/node.json14
-rw-r--r--tooling/typescript/package.json9
3 files changed, 44 insertions, 0 deletions
diff --git a/tooling/typescript/base.json b/tooling/typescript/base.json
new file mode 100644
index 00000000..2708b280
--- /dev/null
+++ b/tooling/typescript/base.json
@@ -0,0 +1,21 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "compilerOptions": {
+ "target": "ES2022",
+ "lib": ["dom", "dom.iterable", "ES2022"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "Bundler",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "moduleDetection": "force",
+ "jsx": "preserve",
+ "incremental": true,
+ "noUncheckedIndexedAccess": false
+ },
+ "exclude": ["node_modules", "build", "dist", ".next", ".expo"]
+}
diff --git a/tooling/typescript/node.json b/tooling/typescript/node.json
new file mode 100644
index 00000000..aeda1ffd
--- /dev/null
+++ b/tooling/typescript/node.json
@@ -0,0 +1,14 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "extends": "@tsconfig/node21/tsconfig.json",
+ "include": ["**/*.ts"],
+ "exclude": ["node_modules", "build", "dist", ".next", ".expo"],
+ "compilerOptions": {
+ "module": "ESNext",
+ "moduleResolution": "node",
+ "incremental": true,
+ "isolatedModules": true,
+ "strict": true,
+ "esModuleInterop": true
+ }
+}
diff --git a/tooling/typescript/package.json b/tooling/typescript/package.json
new file mode 100644
index 00000000..e2961b9f
--- /dev/null
+++ b/tooling/typescript/package.json
@@ -0,0 +1,9 @@
+{
+ "name": "@hoarder/tsconfig",
+ "private": true,
+ "version": "0.1.0",
+ "files": [
+ "base.json",
+ "node.json"
+ ]
+}