Skip to content

Commit 25300ee

Browse files
Fix linting
1 parent 9c5aa0b commit 25300ee

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
"simple-import-sort"
4646
],
4747
"rules": {
48+
"react-hooks/preserve-manual-memoization": "off",
49+
"react-hooks/set-state-in-effect": "off",
4850
"import/no-named-as-default-member": "off",
4951
"import/no-named-as-default": "off",
5052
"import/first": "error",

src/views/navigation/screens/GraphsGroup/ConfigureGraphsScreen.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const ConfigureGraphsScreen: FC<PropsWithNavigation> = ({ navigation }) => {
5555

5656
if (startDateState instanceof Date) return startDateState;
5757

58+
// eslint-disable-next-line react-hooks/purity
5859
return new Date(Date.now() - startDateState.seconds * 1000);
5960
}, [startDateState]);
6061

0 commit comments

Comments
 (0)