Skip to content

Commit 3dec9b6

Browse files
committed
lint: fixes
1 parent f17db10 commit 3dec9b6

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

packages/eslint-config/base.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ export const config = [
2727
},
2828
},
2929
{
30-
ignores: ["dist/**"],
30+
ignores: [
31+
"dist/**",
32+
"**/__tests__/**",
33+
"**/*.test.ts",
34+
"**/*.test.tsx",
35+
"**/*.spec.ts",
36+
"**/*.spec.tsx",
37+
"**/*.config.ts"
38+
],
3139
},
3240
]

packages/todo-plugin/src/client/overrides.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
import type { ComponentType, ReactNode } from "react";
23
import type { TodosLocalization } from "../localization";
34

packages/todo-plugin/src/client/shared/use-route-lifecycle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ export function useRouteLifecycle<TRouteName extends string>({
3838
// Handle Promise if returned
3939
if (result instanceof Promise) {
4040
result.catch((error) => {
41-
console.error("Error in beforeRenderHook:", error);
41+
console.error(`Error in beforeRenderHook in ${routeName}:`, error);
4242
});
4343
}
4444
}
45-
}, [beforeRenderHook, context, overrides]);
45+
}, [beforeRenderHook, context, overrides, routeName]);
4646

4747
return { overrides };
4848
}

0 commit comments

Comments
 (0)