Skip to content

Commit

Permalink
chore: Add Sherif and Knip tests, bump Vite to v5 (#671)
Browse files Browse the repository at this point in the history
* chore: Add sherif

* Fix knip warnings

* Update vite

* Dedupe
  • Loading branch information
lachlancollins authored Feb 17, 2024
1 parent 64bd79d commit 02ae304
Show file tree
Hide file tree
Showing 32 changed files with 1,695 additions and 896 deletions.
10 changes: 5 additions & 5 deletions examples/react/dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
"serve": "vite preview"
},
"dependencies": {
"@faker-js/faker": "7.6.0",
"@faker-js/faker": "^7.6.0",
"@tanstack/react-virtual": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^5.0.2",
"@types/node": "18.x",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@types/node": "^18.19.3",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "5.2.2",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
8 changes: 4 additions & 4 deletions examples/react/fixed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
},
"devDependencies": {
"@rollup/plugin-replace": "^5.0.2",
"@types/node": "18.x",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@types/node": "^18.19.3",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "5.2.2",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
9 changes: 5 additions & 4 deletions examples/react/infinite-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
},
"dependencies": {
"@tanstack/react-virtual": "^3.1.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"axios": "^0.26.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-query": "^3.39.1"
},
"devDependencies": {
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-replace": "^5.0.2",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
8 changes: 4 additions & 4 deletions examples/react/padding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"start": "vite"
},
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@tanstack/react-virtual": "^3.1.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-replace": "^5.0.2",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
8 changes: 4 additions & 4 deletions examples/react/scroll-padding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dependencies": {
"@react-hookz/web": "^14.2.2",
"@tanstack/react-virtual": "^3.1.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-replace": "^5.0.2",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
8 changes: 4 additions & 4 deletions examples/react/smooth-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"start": "vite"
},
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@tanstack/react-virtual": "^3.1.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-replace": "^5.0.2",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
10 changes: 5 additions & 5 deletions examples/react/sticky/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"start": "vite"
},
"dependencies": {
"@faker-js/faker": "^7.1.0",
"@faker-js/faker": "^7.6.0",
"@tanstack/react-virtual": "^3.1.0",
"lodash": "^4.17.21",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-replace": "^5.0.2",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
8 changes: 4 additions & 4 deletions examples/react/table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"start": "vite"
},
"dependencies": {
"@faker-js/faker": "7.6.0",
"@faker-js/faker": "^7.6.0",
"@tanstack/react-table": "^8.7.9",
"@tanstack/react-virtual": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
8 changes: 4 additions & 4 deletions examples/react/variable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"start": "vite"
},
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@tanstack/react-virtual": "^3.1.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-replace": "^5.0.2",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
10 changes: 5 additions & 5 deletions examples/react/window/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
},
"devDependencies": {
"@rollup/plugin-replace": "^5.0.2",
"@types/node": "18.x",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@vitejs/plugin-react": "^3.0.1",
"@types/node": "^18.19.3",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "5.2.2",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
6 changes: 3 additions & 3 deletions examples/svelte/dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"@tanstack/svelte-virtual": "3.0.4"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@tsconfig/svelte": "^5.0.0",
"svelte": "^4.0.5",
"svelte": "^4.2.2",
"svelte-check": "^3.4.6",
"tslib": "^2.6.0",
"typescript": "5.2.2",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
6 changes: 3 additions & 3 deletions examples/svelte/fixed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"@tanstack/svelte-virtual": "3.0.4"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@tsconfig/svelte": "^5.0.0",
"svelte": "^4.0.5",
"svelte": "^4.2.2",
"svelte-check": "^3.4.6",
"tslib": "^2.6.0",
"typescript": "5.2.2",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
6 changes: 3 additions & 3 deletions examples/svelte/infinite-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"@tanstack/svelte-virtual": "3.0.4"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@tsconfig/svelte": "^5.0.0",
"svelte": "^4.0.5",
"svelte": "^4.2.2",
"svelte-check": "^3.4.6",
"tslib": "^2.6.0",
"typescript": "5.2.2",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
8 changes: 4 additions & 4 deletions examples/svelte/smooth-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@faker-js/faker": "^7.1.0",
"@faker-js/faker": "^7.6.0",
"@tanstack/svelte-virtual": "3.0.4",
"lodash": "^4.17.21"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@tsconfig/svelte": "^5.0.0",
"svelte": "^4.0.5",
"svelte": "^4.2.2",
"svelte-check": "^3.4.6",
"tslib": "^2.6.0",
"typescript": "5.2.2",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
6 changes: 3 additions & 3 deletions examples/svelte/sticky/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"@tanstack/svelte-virtual": "3.0.4"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@tsconfig/svelte": "^5.0.0",
"svelte": "^4.0.5",
"svelte": "^4.2.2",
"svelte-check": "^3.4.6",
"tslib": "^2.6.0",
"typescript": "5.2.2",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
6 changes: 3 additions & 3 deletions examples/svelte/table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"@tanstack/svelte-virtual": "3.0.4"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@tsconfig/svelte": "^5.0.0",
"svelte": "^4.0.5",
"svelte": "^4.2.2",
"svelte-check": "^3.4.6",
"tslib": "^2.6.0",
"typescript": "5.2.2",
"vite": "^4.4.5"
"vite": "^5.1.3"
}
}
4 changes: 2 additions & 2 deletions examples/vue/dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
},
"devDependencies": {
"@codesandbox/vue-preview": "^0.1.1-alpha.16",
"@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "5.2.2",
"vite": "^4.4.11",
"vite": "^5.1.3",
"vue-tsc": "^1.8.19"
}
}
4 changes: 2 additions & 2 deletions examples/vue/fixed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"devDependencies": {
"@codesandbox/vue-preview": "^0.1.1-alpha.16",
"@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "5.2.2",
"vite": "^4.4.11",
"vite": "^5.1.3",
"vue-tsc": "^1.8.19"
}
}
4 changes: 2 additions & 2 deletions examples/vue/infinite-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
},
"devDependencies": {
"@codesandbox/vue-preview": "^0.1.1-alpha.16",
"@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "5.2.2",
"vite": "^4.4.11",
"vite": "^5.1.3",
"vue-tsc": "^1.8.19"
}
}
4 changes: 2 additions & 2 deletions examples/vue/padding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"devDependencies": {
"@codesandbox/vue-preview": "^0.1.1-alpha.16",
"@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "5.2.2",
"vite": "^4.4.11",
"vite": "^5.1.3",
"vue-tsc": "^1.8.19"
}
}
4 changes: 2 additions & 2 deletions examples/vue/scroll-padding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
},
"devDependencies": {
"@codesandbox/vue-preview": "^0.1.1-alpha.16",
"@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "5.2.2",
"vite": "^4.4.11",
"vite": "^5.1.3",
"vue-tsc": "^1.8.19"
}
}
4 changes: 2 additions & 2 deletions examples/vue/smooth-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"devDependencies": {
"@codesandbox/vue-preview": "^0.1.1-alpha.16",
"@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "5.2.2",
"vite": "^4.4.11",
"vite": "^5.1.3",
"vue-tsc": "^1.8.19"
}
}
4 changes: 2 additions & 2 deletions examples/vue/sticky/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
},
"devDependencies": {
"@codesandbox/vue-preview": "^0.1.1-alpha.16",
"@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "5.2.2",
"vite": "^4.4.11",
"vite": "^5.1.3",
"vue-tsc": "^1.8.19"
}
}
4 changes: 2 additions & 2 deletions examples/vue/table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
},
"devDependencies": {
"@codesandbox/vue-preview": "^0.1.1-alpha.16",
"@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "5.2.2",
"vite": "^4.4.11",
"vite": "^5.1.3",
"vue-tsc": "^1.8.19"
}
}
4 changes: 2 additions & 2 deletions examples/vue/variable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"devDependencies": {
"@codesandbox/vue-preview": "^0.1.1-alpha.16",
"@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "5.2.2",
"vite": "^4.4.11",
"vite": "^5.1.3",
"vue-tsc": "^1.8.19"
}
}
Loading

0 comments on commit 02ae304

Please sign in to comment.