Skip to content

Commit 9bcc2f9

Browse files
committed
disable stricter rules for now
1 parent a0053c9 commit 9bcc2f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configs/testing-library-compass/src/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ function createWrapper(
328328
const StoreGetter: React.FunctionComponent = ({ children }) => {
329329
const store = useStore();
330330
const actions = useConnectionActions();
331+
// eslint-disable-next-line react-hooks/immutability
331332
wrapperState.connectionsStore.getState = store.getState.bind(store);
333+
// eslint-disable-next-line react-hooks/immutability
332334
wrapperState.connectionsStore.actions = actions;
333335
return <>{children}</>;
334336
};
@@ -599,6 +601,7 @@ function createPluginWrapper<
599601
) {
600602
const ref: { current: PluginContext } = { current: {} as any };
601603
function ComponentWithProvider({ children, ...props }: any) {
604+
// eslint-disable-next-line react-hooks/immutability
602605
const plugin = (ref.current = Plugin.useActivate(
603606
initialPluginProps ?? ({} as any)
604607
));

0 commit comments

Comments
 (0)