Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed Mar 29, 2024
1 parent ea7d71e commit ee14962
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/rax-compat/src/create-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function collateMixins(mixins: any) {
}

for (let key in mixin) {
// eslint-disable-next-line no-prototype-builtins
if (mixin.hasOwnProperty(key) && key !== 'mixins') {
(keyed[key] || (keyed[key] = [])).push(mixin[key]);
}
Expand All @@ -46,7 +47,7 @@ function flattenHooks(key: string, hooks: Array<any>) {
let ret;
for (let i = 0; i < hooks.length; i++) {
// @ts-ignore
let r = hooks[i].apply(this, arguments);
let r = hooks[i].apply(this, arguments); // eslint-disable-line prefer-rest-params
if (r) {
if (!ret) ret = {};
Object.assign(ret, r);
Expand Down
7 changes: 6 additions & 1 deletion packages/runtime/src/singleRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,12 @@ export const useRevalidator = () => {
throw new Error('useRevalidator is not supported in single router mode');
};

export const getSingleRoute = async (routes: RouteItem[], basename: string, location: Partial<Location> | string, routeModuleCache = {}) => {
export const getSingleRoute = async (
routes: RouteItem[],
basename: string,
location: Partial<Location> | string,
routeModuleCache = {},
) => {
const matchedRoutes = matchRoutes(routes, location, basename);
const routeModules = await loadRouteModules(matchedRoutes.map(({ route }) => route), routeModuleCache);
let loaders = [];
Expand Down

0 comments on commit ee14962

Please sign in to comment.