From 072621cee0f858236163ce11d42eca5adb84d205 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sat, 27 Aug 2022 13:02:22 +0200 Subject: refactor(frontend): add eslint-plugin-mobx --- subprojects/frontend/src/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'subprojects/frontend/src/index.tsx') diff --git a/subprojects/frontend/src/index.tsx b/subprojects/frontend/src/index.tsx index 3f06b332..8436c7ae 100644 --- a/subprojects/frontend/src/index.tsx +++ b/subprojects/frontend/src/index.tsx @@ -1,5 +1,6 @@ import Box from '@mui/material/Box'; import CssBaseline from '@mui/material/CssBaseline'; +import { configure } from 'mobx'; import { SnackbarProvider } from 'notistack'; import React, { Suspense, lazy } from 'react'; import { createRoot } from 'react-dom/client'; @@ -60,6 +61,11 @@ age(bob, bobAge). scope Family = 1, Person += 5..10. `; +configure({ + enforceActions: 'always', + reactionRequiresObservable: true, +}); + const rootStore = new RootStore(initialValue); const App = lazy(() => import('./App.js')); -- cgit v1.2.3-54-g00ecf