Skip to content

Commit 6c79808

Browse files
docs(examples): Clean-up example config (TanStack#6817)
* docs(examples): Clean-up example config * Add missing skipLibCheck * Quick fix * Add any * Use default vite tsconfig
1 parent da5f40e commit 6c79808

File tree

44 files changed

+176
-175
lines changed

Some content is hidden

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

44 files changed

+176
-175
lines changed

examples/angular/basic/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"start": "vite",
76
"dev": "vite",
87
"build": "vite build",
9-
"serve": "vite preview"
8+
"preview": "vite preview",
9+
"test:types": "tsc"
1010
},
11-
"license": "MIT",
1211
"dependencies": {
1312
"@angular/common": "^17.0.8",
1413
"@angular/compiler": "^17.0.8",

examples/angular/cli-standalone-17/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@tanstack/query-example-angular-cli-standalone-17",
33
"private": true,
44
"scripts": {
5-
"build": "ng build"
5+
"build": "ng build",
6+
"test:types": "tsc"
67
},
78
"dependencies": {
89
"@angular/animations": "^17.0.8",

examples/angular/default-query-function/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"start": "vite",
76
"dev": "vite",
87
"build": "vite build",
9-
"serve": "vite preview"
8+
"preview": "vite preview",
9+
"test:types": "tsc"
1010
},
11-
"license": "MIT",
1211
"dependencies": {
1312
"@angular/common": "^17.0.8",
1413
"@angular/compiler": "^17.0.8",

examples/angular/simple/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"start": "vite",
76
"dev": "vite",
87
"build": "vite build",
9-
"serve": "vite preview"
8+
"preview": "vite preview",
9+
"test:types": "tsc"
1010
},
11-
"license": "MIT",
1211
"dependencies": {
1312
"@angular/common": "^17.0.8",
1413
"@angular/compiler": "^17.0.8",
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
4+
"useDefineForClassFields": true,
5+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
6+
"module": "ESNext",
67
"skipLibCheck": true,
7-
"esModuleInterop": true,
8-
"allowSyntheticDefaultImports": true,
9-
"strict": true,
10-
"forceConsistentCasingInFileNames": true,
11-
"noFallthroughCasesInSwitch": true,
12-
"module": "esnext",
13-
"moduleResolution": "node",
8+
9+
/* Bundler mode */
10+
"moduleResolution": "bundler",
11+
"allowImportingTsExtensions": true,
1412
"resolveJsonModule": true,
1513
"isolatedModules": true,
1614
"noEmit": true,
17-
"jsx": "react-jsx"
15+
"jsx": "react-jsx",
16+
17+
/* Linting */
18+
"strict": true,
19+
"noUnusedLocals": true,
20+
"noUnusedParameters": true,
21+
"noFallthroughCasesInSwitch": true
1822
},
1923
"include": ["src"]
2024
}
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "@tanstack/query-example-react-auto-refetching",
33
"private": true,
4-
"main": "index.js",
5-
"license": "MIT",
4+
"scripts": {
5+
"dev": "next",
6+
"build": "next build",
7+
"start": "next start"
8+
},
69
"dependencies": {
710
"@tanstack/react-query": "^5.18.1",
811
"@tanstack/react-query-devtools": "^5.18.1",
@@ -11,10 +14,5 @@
1114
"next": "^14.0.0",
1215
"react": "^18.2.0",
1316
"react-dom": "^18.2.0"
14-
},
15-
"scripts": {
16-
"dev": "next",
17-
"start": "next start",
18-
"build": "next build"
1917
}
2018
}
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
4+
"useDefineForClassFields": true,
5+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
6+
"module": "ESNext",
67
"skipLibCheck": true,
7-
"esModuleInterop": true,
8-
"allowSyntheticDefaultImports": true,
9-
"strict": true,
10-
"forceConsistentCasingInFileNames": true,
11-
"noFallthroughCasesInSwitch": true,
12-
"module": "esnext",
13-
"moduleResolution": "node",
8+
9+
/* Bundler mode */
10+
"moduleResolution": "bundler",
11+
"allowImportingTsExtensions": true,
1412
"resolveJsonModule": true,
1513
"isolatedModules": true,
1614
"noEmit": true,
17-
"jsx": "react-jsx"
15+
"jsx": "react-jsx",
16+
17+
/* Linting */
18+
"strict": true,
19+
"noUnusedLocals": true,
20+
"noUnusedParameters": true,
21+
"noFallthroughCasesInSwitch": true
1822
},
1923
"include": ["src"]
2024
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
33

4-
// https://vitejs.dev/config/
54
export default defineConfig({
65
plugins: [react()],
76
})
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "@tanstack/query-example-react-infinite-query-with-max-pages",
33
"private": true,
4-
"main": "index.js",
5-
"license": "MIT",
4+
"scripts": {
5+
"dev": "next",
6+
"build": "next build",
7+
"start": "next start"
8+
},
69
"dependencies": {
710
"@tanstack/react-query": "^5.18.1",
811
"@tanstack/react-query-devtools": "^5.18.1",
@@ -12,10 +15,5 @@
1215
"react": "^18.2.0",
1316
"react-dom": "^18.2.0",
1417
"react-intersection-observer": "^8.34.0"
15-
},
16-
"scripts": {
17-
"dev": "next",
18-
"start": "next start",
19-
"build": "next build"
2018
}
2119
}

0 commit comments

Comments
 (0)