Skip to content

Commit 0d17faf

Browse files
committed
feat: add tsconfig
1 parent 9c011eb commit 0d17faf

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

packages/tsconfig/package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "@dotmh/tsconfig",
3+
"version": "1.0.0",
4+
"description": "A Shared config for Typescript",
5+
"exports": "./tsconfig.json",
6+
"files": [
7+
"tsconfig.json"
8+
],
9+
"scripts": {
10+
"test": "echo \"Error: no test specified\" && exit 1"
11+
},
12+
"keywords": [
13+
"Typescript",
14+
"TS",
15+
"tsconfig",
16+
"Config",
17+
"DotMH",
18+
"CodeStyle"
19+
],
20+
"author": "",
21+
"license": "ISC"
22+
}

packages/tsconfig/tsconfig.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"compilerOptions": {
3+
"module": "node16",
4+
"moduleResolution": "node16",
5+
"moduleDetection": "force",
6+
"target": "ES2022", // Node.js 18
7+
"lib": [
8+
"DOM",
9+
"DOM.Iterable",
10+
"ES2022"
11+
],
12+
"resolveJsonModule": false, // ESM doesn't yet support JSON modules.
13+
"jsx": "react",
14+
"declaration": true,
15+
"newLine": "lf",
16+
"stripInternal": true,
17+
"strict": true,
18+
"noImplicitReturns": true,
19+
"noImplicitOverride": true,
20+
"noUnusedLocals": true,
21+
"noUnusedParameters": true,
22+
"noFallthroughCasesInSwitch": true,
23+
"noUncheckedIndexedAccess": true,
24+
"noPropertyAccessFromIndexSignature": true,
25+
"noEmitOnError": true,
26+
"useDefineForClassFields": true,
27+
"forceConsistentCasingInFileNames": true,
28+
"skipLibCheck": true
29+
}
30+
}

0 commit comments

Comments
 (0)