Skip to content

Commit 21e887e

Browse files
committed
Use shareable tsconfig.json files
1 parent 414a60b commit 21e887e

File tree

63 files changed

+196
-592
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+196
-592
lines changed

docs/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "docs",
33
"devDependencies": {
44
"@manaflair/redux-batch": "^1.0.0",
5+
"@reduxjs/tsconfig": "workspace:^",
56
"@types/nanoid": "^2.1.0",
67
"@types/react": "^19.0.1",
78
"async-mutex": "^0.3.2",
@@ -12,6 +13,7 @@
1213
"nanoid": "^3.1.23",
1314
"next-redux-wrapper": "^7.0.5",
1415
"redux-persist": "^6.0.0",
15-
"rxjs": "^6.6.2"
16+
"rxjs": "^6.6.2",
17+
"typescript": "^5.8.2"
1618
}
1719
}

docs/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "@reduxjs/tsconfig/base",
23
"compilerOptions": {
34
"allowSyntheticDefaultImports": true,
45
"esModuleInterop": true,

examples/action-listener/counter/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
]
4242
},
4343
"devDependencies": {
44+
"@reduxjs/tsconfig": "workspace:^",
4445
"jest-watch-typeahead": "^1.1.0"
4546
}
4647
}
Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
{
2-
"compilerOptions": {
3-
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
6-
"skipLibCheck": true,
7-
"esModuleInterop": true,
8-
"allowSyntheticDefaultImports": true,
9-
"strict": true,
10-
"forceConsistentCasingInFileNames": true,
11-
"noFallthroughCasesInSwitch": true,
12-
"module": "esnext",
13-
"moduleResolution": "node",
14-
"resolveJsonModule": true,
15-
"isolatedModules": true,
16-
"noEmit": true,
17-
"jsx": "react-jsx"
18-
},
2+
"extends": "@reduxjs/tsconfig/create-react-app",
3+
"compilerOptions": {},
194
"include": ["src"]
205
}

examples/query/react/advanced/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"react-scripts": "5.0.1"
1414
},
1515
"devDependencies": {
16+
"@reduxjs/tsconfig": "workspace:^",
1617
"@types/react": "^19.0.1",
1718
"@types/react-dom": "^19.0.1",
1819
"typescript": "^5.8.2"
Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
{
2-
"include": ["./src/**/*"],
3-
"compilerOptions": {
4-
"strict": true,
5-
"esModuleInterop": true,
6-
"lib": ["dom", "es2015"],
7-
"jsx": "react-jsx",
8-
"target": "es5",
9-
"allowJs": true,
10-
"skipLibCheck": true,
11-
"allowSyntheticDefaultImports": true,
12-
"forceConsistentCasingInFileNames": true,
13-
"noFallthroughCasesInSwitch": true,
14-
"module": "esnext",
15-
"moduleResolution": "node",
16-
"resolveJsonModule": true,
17-
"isolatedModules": true,
18-
"noEmit": true
19-
}
2+
"extends": "@reduxjs/tsconfig/create-react-app",
3+
"compilerOptions": {},
4+
"include": ["src"]
205
}

examples/query/react/authentication-with-extrareducers/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"react-scripts": "5.0.1"
2121
},
2222
"devDependencies": {
23+
"@reduxjs/tsconfig": "workspace:^",
2324
"@types/react": "^19.0.1",
2425
"@types/react-dom": "^19.0.1",
2526
"typescript": "^5.8.2"
Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
{
2-
"include": ["./src/**/*"],
3-
"compilerOptions": {
4-
"strict": true,
5-
"esModuleInterop": true,
6-
"lib": ["dom", "es2015"],
7-
"jsx": "react-jsx",
8-
"target": "es5",
9-
"allowJs": true,
10-
"skipLibCheck": true,
11-
"allowSyntheticDefaultImports": true,
12-
"forceConsistentCasingInFileNames": true,
13-
"noFallthroughCasesInSwitch": true,
14-
"module": "esnext",
15-
"moduleResolution": "node",
16-
"resolveJsonModule": true,
17-
"isolatedModules": true,
18-
"noEmit": true
19-
}
2+
"extends": "@reduxjs/tsconfig/create-react-app",
3+
"compilerOptions": {},
4+
"include": ["src"]
205
}

examples/query/react/authentication/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"react-scripts": "5.0.1"
2121
},
2222
"devDependencies": {
23+
"@reduxjs/tsconfig": "workspace:^",
2324
"@types/react": "^19.0.1",
2425
"@types/react-dom": "^19.0.1",
2526
"typescript": "^5.8.2"
Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
{
2-
"include": ["./src/**/*"],
3-
"compilerOptions": {
4-
"strict": true,
5-
"esModuleInterop": true,
6-
"lib": ["dom", "es2015"],
7-
"jsx": "react-jsx",
8-
"target": "es5",
9-
"allowJs": true,
10-
"skipLibCheck": true,
11-
"allowSyntheticDefaultImports": true,
12-
"forceConsistentCasingInFileNames": true,
13-
"noFallthroughCasesInSwitch": true,
14-
"module": "esnext",
15-
"moduleResolution": "node",
16-
"resolveJsonModule": true,
17-
"isolatedModules": true,
18-
"noEmit": true
19-
}
2+
"extends": "@reduxjs/tsconfig/create-react-app",
3+
"compilerOptions": {},
4+
"include": ["src"]
205
}

0 commit comments

Comments
 (0)