Skip to content

Commit

Permalink
chore: redefine typescript configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jtiala committed Sep 30, 2023
1 parent 9047899 commit e4d5490
Show file tree
Hide file tree
Showing 5 changed files with 737 additions and 37 deletions.
12 changes: 5 additions & 7 deletions packages/typescript-config/base.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"composite": false,
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"inlineSources": false,
"incremental": true,
"isolatedModules": true,
"moduleResolution": "node",
"noUnusedLocals": false,
"noUnusedParameters": false,
"moduleResolution": "Node",
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"preserveWatchOutput": true,
"skipLibCheck": true,
"strict": true
Expand Down
3 changes: 1 addition & 2 deletions packages/typescript-config/nextjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"extends": "./base.json",
"compilerOptions": {
"allowJs": true,
"incremental": true,
"jsx": "preserve",
"lib": ["DOM", "DOM.iterable", "ESNext"],
"module": "ESNext",
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"noEmit": true,
"paths": {
"@/*": ["./*"]
Expand Down
3 changes: 3 additions & 0 deletions packages/typescript-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@
"packageManager": "[email protected]",
"scripts": {
"publish:npm": "pnpm publish --access public"
},
"devDependencies": {
"ts-lit-plugin": "1.2.1"
}
}
6 changes: 1 addition & 5 deletions packages/typescript-config/vite-react.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
"lib": ["ESNext", "DOM"],
"module": "ESNext",
"noEmit": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"sourceMap": true,
"target": "ESNext",
"useDefineForClassFields": true
"target": "ESNext"
}
}
Loading

0 comments on commit e4d5490

Please sign in to comment.