Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
odinr committed May 28, 2023
1 parent 7d114b4 commit 7c0a475
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
6 changes: 1 addition & 5 deletions cookbooks/app-react-bookmark-advanced/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import Router from './Router';

export const App = () => {
return (
<Router />
);
};
export const App = () => <Router />;

export default App;
4 changes: 1 addition & 3 deletions cookbooks/app-react/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export const App = () => (
<h1>🚀 Hello Fusion😎</h1>
);
export const App = () => <h1>🚀 Hello Fusion😎</h1>;

export default App;
1 change: 1 addition & 0 deletions packages/modules/app/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type ModuleDeps = [HttpModule, ServiceDiscoveryModule, EventModule];

export type AppType = 'standalone' | 'report' | 'launcher';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type CurrentApp<TModules extends Array<AnyModule> = [], TEnv = any> =
| App<TEnv, TModules>
| null
Expand Down
12 changes: 5 additions & 7 deletions packages/modules/context/src/configurator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ export interface ContextModuleConfig {
item: ContextItem | null
) => ReturnType<IContextProvider['validateContext']>;

resolveInitialContext?: (
args: {
ref?: AnyModuleInstance | any;
modules: ModuleInstance;
}
// ...args: Parameters<ContextModule['postInitialize']>
) => ObservableInput<ContextItem | void>;
resolveInitialContext?: (args: {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
ref?: AnyModuleInstance | any;
modules: ModuleInstance;
}) => ObservableInput<ContextItem | void>;
}

export interface IContextModuleConfigurator {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const AppWrapper = (
break;
}
});
}, [appKey, framework]);
}, [appKey, basename, framework, history]);
return (
<HistoryContext.Provider value={{ history }}>
<Router key={appKey} history={history}>
Expand Down

0 comments on commit 7c0a475

Please sign in to comment.