Skip to content

Commit

Permalink
chore: use @total-typescript/tsconfig/bundler/dom/app for examples
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Nov 17, 2024
1 parent 48b268d commit ee4592b
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 56 deletions.
1 change: 1 addition & 0 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"devDependencies": {
"@remix-run/dev": "*",
"@remix-run/eslint-config": "*",
"@total-typescript/tsconfig": "^1.0.4",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"chokidar": "^4.0.1",
Expand Down
12 changes: 2 additions & 10 deletions examples/basic/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
{
"include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"],
"extends": "@total-typescript/tsconfig/bundler/dom/app",
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"isolatedModules": true,
"esModuleInterop": true,
"types": ["@react-router/node", "vite/client"],
"jsx": "react-jsx",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"target": "ES2022",
"strict": true,
"allowJs": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"~/*": ["./app/*"]
},

// Remix takes care of building everything in `remix build`.
"noEmit": true
}
}
1 change: 1 addition & 0 deletions examples/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@remix-run/dev": "*",
"@remix-run/eslint-config": "*",
"@tailwindcss/vite": "4.0.0-alpha.28",
"@total-typescript/tsconfig": "^1.0.4",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"chokidar": "^4.0.1",
Expand Down
15 changes: 3 additions & 12 deletions examples/playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
{
"extends": "@total-typescript/tsconfig/bundler/dom/app",
"include": [
"**/*.ts",
"**/*.tsx",
"**/.server/**/*.ts",
"**/.server/**/*.tsx",
"**/.client/**/*.ts",
"**/.client/**/*.tsx"
"**/.client/**/*.tsx",
".react-router/types/**/*"
],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"types": ["@remix-run/node", "vite/client"],
"isolatedModules": true,
"esModuleInterop": true,
"jsx": "react-jsx",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"target": "ES2022",
"skipLibCheck": true,
"strict": true,
"allowJs": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"~/*": ["./app/*"]
},

// Remix takes care of building everything in `remix build`.
"noEmit": true
}
}
1 change: 1 addition & 0 deletions examples/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"devDependencies": {
"@react-router/dev": "7.0.0-pre.4",
"@total-typescript/tsconfig": "^1.0.4",
"@types/react": "^18.3.9",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
Expand Down
11 changes: 1 addition & 10 deletions examples/react-router/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "@total-typescript/tsconfig/bundler/dom/app",
"include": [
"**/*.ts",
"**/*.tsx",
Expand All @@ -9,18 +10,8 @@
".react-router/types/**/*"
],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"types": ["@react-router/node", "vite/client"],
"isolatedModules": true,
"esModuleInterop": true,
"jsx": "react-jsx",
"module": "ESNext",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"target": "ES2022",
"strict": true,
"allowJs": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
Expand Down
1 change: 1 addition & 0 deletions examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"devDependencies": {
"@remix-run/dev": "*",
"@remix-run/eslint-config": "*",
"@total-typescript/tsconfig": "^1.0.4",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"@types/source-map-support": "^0.5.10",
Expand Down
23 changes: 7 additions & 16 deletions examples/vite/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,24 @@
{
"extends": "@total-typescript/tsconfig/bundler/dom/app",
"include": [
"**/*.ts",
"**/*.tsx",
"**/.server/**/*.ts",
"**/.server/**/*.tsx",
"**/.client/**/*.ts",
"**/.client/**/*.tsx"
"**/.client/**/*.tsx",
".react-router/types/**/*"
],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"types": ["@remix-run/node", "vite/client"],
"isolatedModules": true,
"esModuleInterop": true,
"module": "ESNext",
"types": ["@react-router/node", "vite/client"],
"jsx": "react-jsx",
"moduleResolution": "Bundler",
"moduleDetection": "force",
"resolveJsonModule": true,
"target": "ES2022",
"skipLibCheck": true,
"strict": true,
"allowJs": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"~/*": ["./app/*"]
},

// Remix takes care of building everything in `remix build`.
"noEmit": true
"noEmit": true,
"rootDirs": [".", "./.react-router/types"],
"plugins": [{ "name": "@react-router/dev" }]
}
}
28 changes: 20 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ee4592b

Please sign in to comment.