Skip to content

Commit

Permalink
fix(next): wrap up lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyr33x committed Feb 6, 2025
1 parent 63e2801 commit 1c9bf84
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/core/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
module.exports = {
extends: ["@rehooks/eslint-config/core.js"],
rules: {
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
},
};
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ export * from "./react/useUnmount";
export * from "./react/useWindowSize";

// Next
export * from "./next/useGetQueries";
export * from "./next/useActiveRoute";
export * from "./next/useGetQueries";
2 changes: 1 addition & 1 deletion packages/core/src/next/useActiveRoute/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Route<T = {}> = (
T;

type Props<T = {}> = {
routes: Array<Route<T>>;
routes: Route<T>[];
};

export function useActiveRoute<T = {}>({ routes }: Props<T>): boolean {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/next/useActiveRoute/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Route<T = {}> = (
T;

type Props<T = {}> = {
routes: Array<Route<T>>;
routes: Route<T>[];
pathname: string;
};

Expand Down

0 comments on commit 1c9bf84

Please sign in to comment.