Skip to content

Commit cd05eb8

Browse files
committed
feat: add codemod tsconfig file
1 parent 5207d59 commit cd05eb8

File tree

2 files changed

+49
-5
lines changed

2 files changed

+49
-5
lines changed

tsconfig.codemod.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"composite": true,
5+
"moduleResolution": "node",
6+
"module": "NodeNext",
7+
"target": "ES2015",
8+
"lib": ["ESNext", "DOM"],
9+
"skipLibCheck": true,
10+
"esModuleInterop": true,
11+
"resolveJsonModule": true,
12+
"allowSyntheticDefaultImports": true,
13+
"isolatedModules": true,
14+
"jsx": "react-jsx",
15+
"useDefineForClassFields": true,
16+
"noFallthroughCasesInSwitch": true,
17+
"noUnusedLocals": false,
18+
"noUnusedParameters": false,
19+
"preserveWatchOutput": true,
20+
"strict": true,
21+
"strictNullChecks": true,
22+
"incremental": true,
23+
"noUncheckedIndexedAccess": true,
24+
"noPropertyAccessFromIndexSignature": false,
25+
"allowJs": true,
26+
"outDir": "./dist",
27+
"rootDir": "./transforms",
28+
"moduleDetection": "auto"
29+
},
30+
"include": [
31+
"./transforms/**/*.codemod.ts",
32+
"./transforms/**/*.codemod.js",
33+
"./transforms/**/*.codemod.tsx",
34+
"./transforms/**/*.codemod.jsx",
35+
],
36+
"exclude": ["node_modules", "./dist/**/*"],
37+
"ts-node": {
38+
"transpileOnly": true
39+
}
40+
}
41+

tsconfig.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"compilerOptions": {
3-
"moduleDetection": "force",
4-
"target": "ES2015"
5-
}
6-
}
2+
"compilerOptions": {
3+
"moduleDetection": "force",
4+
"target": "ES2015"
5+
},
6+
"references": [
7+
{ "path": "./tsconfig.codemod.json" }
8+
]
9+
}

0 commit comments

Comments
 (0)