diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-13 23:05:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-13 23:07:26 +0900 |
| commit | 6c30f383a65cb000d66a85cadc96253ce7061942 (patch) | |
| tree | 60ffe938a4051255ea0d6b35001be50c28b76497 /frontend | |
| parent | 373dbf12f6797497656565e9baa7ac69e1f005f5 (diff) | |
| download | phperkaigi-2026-albatross-6c30f383a65cb000d66a85cadc96253ce7061942.tar.gz phperkaigi-2026-albatross-6c30f383a65cb000d66a85cadc96253ce7061942.tar.zst phperkaigi-2026-albatross-6c30f383a65cb000d66a85cadc96253ce7061942.zip | |
refactor(frontend): remove React Router remnants from config files
Clean up old React Router references after migration to Vite + Wouter:
- Replace build/ and .react-router/ with dist/ in ESLint globalIgnores
- Replace ./build with ./dist in Biome ignore list
- Remove formComponents and NavLink from ESLint settings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/.dockerignore | 1 | ||||
| -rw-r--r-- | frontend/app/api/client.ts | 5 | ||||
| -rw-r--r-- | frontend/biome.json | 4 | ||||
| -rw-r--r-- | frontend/eslint.config.js | 8 |
4 files changed, 7 insertions, 11 deletions
diff --git a/frontend/.dockerignore b/frontend/.dockerignore index c0b2358..de4d1f0 100644 --- a/frontend/.dockerignore +++ b/frontend/.dockerignore @@ -1,3 +1,2 @@ -build dist node_modules diff --git a/frontend/app/api/client.ts b/frontend/app/api/client.ts index c26f1c6..86f2506 100644 --- a/frontend/app/api/client.ts +++ b/frontend/app/api/client.ts @@ -3,8 +3,9 @@ import { createContext } from "react"; import { API_BASE_PATH } from "../config"; import type { paths } from "./schema"; -const apiOrigin = import.meta.env.VITE_API_BASE_URL - ?? (import.meta.env.DEV ? "http://localhost:8004" : ""); +const apiOrigin = + import.meta.env.VITE_API_BASE_URL ?? + (import.meta.env.DEV ? "http://localhost:8004" : ""); const client = createClient<paths>({ baseUrl: `${apiOrigin}${API_BASE_PATH}`, diff --git a/frontend/biome.json b/frontend/biome.json index 54c8856..6da4a7a 100644 --- a/frontend/biome.json +++ b/frontend/biome.json @@ -9,9 +9,9 @@ "ignoreUnknown": false, "ignore": [ "./.cache", - "./build", "./app/api/schema.d.ts", - "./app/shiki.bundle.ts" + "./app/shiki.bundle.ts", + "./dist" ] }, "formatter": { diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js index 538fb12..0fe10e9 100644 --- a/frontend/eslint.config.js +++ b/frontend/eslint.config.js @@ -7,7 +7,7 @@ import globals from "globals"; import ts from "typescript-eslint"; export default defineConfig( - globalIgnores(["node_modules/", ".react-router/", "build/"]), + globalIgnores(["node_modules/", "dist/"]), js.configs.recommended, ts.configs.recommended, react.configs.flat.recommended, @@ -27,11 +27,7 @@ export default defineConfig( react: { version: "detect", }, - formComponents: ["Form"], - linkComponents: [ - { name: "Link", linkAttribute: "to" }, - { name: "NavLink", linkAttribute: "to" }, - ], + linkComponents: [{ name: "Link", linkAttribute: "to" }], }, }, ); |
