diff --git a/eslint.config.mjs b/eslint.config.mjs index f109723b..82c02a04 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -16,4 +16,18 @@ export default tseslint.config({ }, }, ], + rules: { + "@typescript-eslint/no-floating-promises": [ + "error", + { + allowForKnownSafeCalls: [ + { + from: "package", + name: "NavigateFunction", + package: "react-router", + }, + ], + }, + ], + }, }); diff --git a/package.json b/package.json index 315b258f..79b829be 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "react": "^19.0.0", "react-dom": "^19.0.0", "react-i18next": "^15.0.1", - "react-router-dom": "^6.22.3" + "react-router-dom": "^7.1.5" }, "devDependencies": { "@types/react": "^19.0.1",