Skip to content

Commit

Permalink
eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Jan 3, 2025
1 parent eace6bf commit 1e7ca1b
Show file tree
Hide file tree
Showing 81 changed files with 2,022 additions and 1,907 deletions.
1 change: 0 additions & 1 deletion .github/replace-workspace-protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ for (const dep in workspacePkg.peerDependencies) {
}

// Remove unnecessary fields
workspacePkg.eslintConfig = undefined;
workspacePkg.devDependencies = undefined;
workspacePkg.scripts = undefined;

Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"eslint.workingDirectories": [
"docs",
{ "pattern": "./packages/**" },
{ "pattern": "./examples/**" }
{ "pattern": "./examples/**" },
{ "pattern": "./tooling/**" },
{ "pattern": "./playground/**" },
{ "pattern": "./playground-v6/**" }
],
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"shiki": "^1.17.5",
"simple-functional-loader": "^1.2.1",
"tailwindcss": "^3.4.16",
"typescript": "^5.5.2",
"typescript": "5.7.2",
"unified": "^11.0.5",
"unist-util-filter": "^5.0.1",
"unist-util-visit": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/backend-adapters/client-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react-swc": "^3.6.0",
"typescript": "^5.5.2",
"typescript": "5.7.2",
"vite": "^5.4.8"
}
}
2 changes: 1 addition & 1 deletion examples/backend-adapters/client-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"uploadthing": "7.4.4"
},
"devDependencies": {
"typescript": "^5.5.2",
"typescript": "5.7.2",
"vite": "^5.4.8"
}
}
2 changes: 1 addition & 1 deletion examples/backend-adapters/client-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "^5.5.2",
"typescript": "5.7.2",
"vite": "^5.4.8",
"vue-tsc": "^2.0.6"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/backend-adapters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@playwright/test": "1.49.1",
"@uploadthing/react": "7.1.5",
"concurrently": "^8.2.2",
"typescript": "^5.5.2",
"typescript": "5.7.2",
"uploadthing": "7.4.4"
}
}
2 changes: 1 addition & 1 deletion examples/backend-adapters/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"tsx": "^4.7.1",
"typescript": "^5.5.2",
"typescript": "5.7.2",
"wrangler": "^3.62.0"
}
}
2 changes: 1 addition & 1 deletion examples/minimal-appdir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@types/node": "^20.14.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"typescript": "^5.5.2"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion examples/minimal-expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"@babel/runtime": "^7.24.4",
"@types/react": "18.3.3",
"tailwindcss": "^3.4.16",
"typescript": "^5.5.2"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion examples/minimal-pagedir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"@types/node": "^20.14.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"typescript": "^5.5.2"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion examples/minimal-sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"svelte": "^4.2.12",
"svelte-check": "^3.6.7",
"tslib": "^2.6.2",
"typescript": "^5.5.2",
"typescript": "5.7.2",
"vite": "^5.4.8"
},
"type": "module"
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal-tanstack-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react": "^4.3.2",
"typescript": "^5.5.2"
"typescript": "5.7.2"
}
}
6 changes: 3 additions & 3 deletions examples/profile-picture/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"drizzle-kit": "^0.20.18",
"eslint": "^8.57.0",
"eslint": "9.17.0",
"postcss": "8.4.49",
"tailwindcss": "^3.4.16",
"typescript": "^5.5.2",
"typescript-eslint": "^7.4.0"
"typescript": "5.7.2",
"typescript-eslint": "8.19.0"
}
}
10 changes: 5 additions & 5 deletions examples/with-clerk-appdir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@types/eslint": "^8.56.4",
"@types/eslint": "9.6.1",
"@types/node": "^20.14.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"eslint": "^8.57.0",
"@typescript-eslint/eslint-plugin": "8.19.0",
"@typescript-eslint/parser": "8.19.0",
"eslint": "9.17.0",
"eslint-config-next": "^14.2.1",
"typescript": "^5.5.2"
"typescript": "5.7.2"
},
"ct3aMetadata": {
"initVersion": "7.20.0"
Expand Down
10 changes: 5 additions & 5 deletions examples/with-clerk-pagesdir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@types/eslint": "^8.56.4",
"@types/eslint": "9.6.1",
"@types/node": "^20.14.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"eslint": "^8.57.0",
"@typescript-eslint/eslint-plugin": "8.19.0",
"@typescript-eslint/parser": "8.19.0",
"eslint": "9.17.0",
"eslint-config-next": "^14.2.1",
"typescript": "^5.5.2"
"typescript": "5.7.2"
},
"ct3aMetadata": {
"initVersion": "7.20.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-clerk-remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"autoprefixer": "^10.4.20",
"postcss": "8.4.49",
"tailwindcss": "^3.4.16",
"typescript": "^5.5.2",
"typescript": "5.7.2",
"vite": "^5.4.8",
"vite-tsconfig-paths": "^4.3.2"
},
Expand Down
10 changes: 5 additions & 5 deletions examples/with-drizzle-appdir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@types/eslint": "^8.56.4",
"@types/eslint": "9.6.1",
"@types/node": "^20.14.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@typescript-eslint/eslint-plugin": "8.19.0",
"@typescript-eslint/parser": "8.19.0",
"drizzle-kit": "^0.20.18",
"eslint": "^8.57.0",
"eslint": "9.17.0",
"eslint-config-next": "^14.2.1",
"typescript": "^5.5.2"
"typescript": "5.7.2"
},
"ct3aMetadata": {
"initVersion": "7.20.1"
Expand Down
10 changes: 5 additions & 5 deletions examples/with-drizzle-pagesdir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@types/eslint": "^8.56.4",
"@types/eslint": "9.6.1",
"@types/node": "^20.14.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@typescript-eslint/eslint-plugin": "8.19.0",
"@typescript-eslint/parser": "8.19.0",
"drizzle-kit": "^0.20.18",
"eslint": "^8.57.0",
"eslint": "9.17.0",
"eslint-config-next": "^14.2.1",
"typescript": "^5.5.2"
"typescript": "5.7.2"
},
"ct3aMetadata": {
"initVersion": "7.20.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-novel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"@types/react-dom": "18.3.0",
"tailwindcss": "^3.4.16",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.5.2"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion examples/with-react-image-crop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@types/node": "^20.14.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"typescript": "^5.5.2"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion examples/with-serveractions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@types/node": "^20.14.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"typescript": "^5.5.2"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"@types/react-dom": "18.3.0",
"postcss": "8.4.49",
"tailwindcss": "^3.4.16",
"typescript": "^5.5.2"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"msw": "2.7.0",
"playwright": "1.49.1",
"turbo": "2.3.3",
"typescript": "^5.5.2",
"typescript": "5.7.2",
"uploadthing": "workspace:*",
"vitest": "^2.1.8"
},
Expand Down
24 changes: 24 additions & 0 deletions packages/expo/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import baseConfig from "@uploadthing/eslint-config/base";

/** @type {import('typescript-eslint').Config} */
export default [
{
ignores: ["dist/**"],
},
...baseConfig,
{
rules: {
"no-restricted-imports": [
"error",
{
patterns: [
{
group: ["@uploadthing/expo", "@uploadthing/expo/*"],
message: "Use relative src imports instead",
},
],
},
],
},
},
];
21 changes: 2 additions & 19 deletions packages/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
"@uploadthing/eslint-config": "workspace:*",
"@uploadthing/tsconfig": "workspace:*",
"bunchee": "^6.2.0",
"eslint": "^8.57.0",
"eslint": "9.17.0",
"expo-constants": "^15.4.5",
"expo-document-picker": "^12.0.1",
"expo-image-picker": "^15.0.4",
"react": "18.3.1",
"react-native": "^0.74.1",
"typescript": "^5.5.2",
"typescript": "5.7.2",
"uploadthing": "workspace:*",
"wait-on": "^7.2.0"
},
Expand All @@ -63,22 +63,5 @@
"@uploadthing/mime-types": {
"optional": true
}
},
"eslintConfig": {
"root": true,
"rules": {
"no-restricted-imports": [
"error",
{
"patterns": [
"@uploadthing/expo",
"@uploadthing/expo/*"
]
}
]
},
"extends": [
"@uploadthing/eslint-config/base"
]
}
}
24 changes: 24 additions & 0 deletions packages/mime-types/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import baseConfig from "@uploadthing/eslint-config/base";

/** @type {import('typescript-eslint').Config} */
export default [
{
ignores: ["dist/**"],
},
...baseConfig,
{
rules: {
"no-restricted-imports": [
"error",
{
patterns: [
{
group: ["@uploadthing/mime-types", "@uploadthing/mime-types/*"],
message: "Use relative src imports instead",
},
],
},
],
},
},
];
32 changes: 2 additions & 30 deletions packages/mime-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,38 +90,10 @@
"@uploadthing/eslint-config": "workspace:*",
"@uploadthing/tsconfig": "workspace:*",
"bunchee": "^6.2.0",
"eslint": "^8.57.0",
"typescript": "^5.5.2"
"eslint": "9.17.0",
"typescript": "5.7.2"
},
"publishConfig": {
"access": "public"
},
"eslintConfig": {
"root": true,
"rules": {
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": [
"@uploadthing/mime-types",
"@uploadthing/mime-types/*"
],
"message": "Use relative src imports instead"
}
],
"paths": [
{
"name": "effect",
"message": "Use alias imports instead (import * as X from \"effect/X\")"
}
]
}
]
},
"extends": [
"@uploadthing/eslint-config/base"
]
}
}
Loading

0 comments on commit 1e7ca1b

Please sign in to comment.