Skip to content

Commit b711b8d

Browse files
committed
style(demo): organize imports and fix quote consistency
1 parent 62222e4 commit b711b8d

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

examples/demo/src/screens/HomeScreen.tsx

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1+
import { useNavigation } from "@react-navigation/native";
12
import React, { useEffect, useState } from "react";
23
import { ScrollView, StyleSheet, View } from "react-native";
3-
import { useNavigation } from "@react-navigation/native";
4-
import { useAppContext } from "../context/AppContext";
5-
import { InAppMessageType } from "../models/InAppMessageType";
6-
import TooltipHelper, { TooltipData } from "../services/TooltipHelper";
7-
import LogView from "../components/LogView";
8-
import LoadingOverlay from "../components/LoadingOverlay";
94
import ActionButton from "../components/ActionButton";
5+
import LoadingOverlay from "../components/LoadingOverlay";
6+
import LogView from "../components/LogView";
107
import TooltipModal from "../components/modals/TooltipModal";
8+
import AliasesSection from "../components/sections/AliasesSection";
119
import AppSection from "../components/sections/AppSection";
12-
import UserSection from "../components/sections/UserSection";
13-
import PushSection from "../components/sections/PushSection";
14-
import SendPushSection from "../components/sections/SendPushSection";
10+
import EmailsSection from "../components/sections/EmailsSection";
1511
import InAppSection from "../components/sections/InAppSection";
12+
import LocationSection from "../components/sections/LocationSection";
13+
import OutcomesSection from "../components/sections/OutcomesSection";
14+
import PushSection from "../components/sections/PushSection";
1615
import SendIamSection from "../components/sections/SendIamSection";
17-
import AliasesSection from "../components/sections/AliasesSection";
18-
import EmailsSection from "../components/sections/EmailsSection";
16+
import SendPushSection from "../components/sections/SendPushSection";
1917
import SmsSection from "../components/sections/SmsSection";
2018
import TagsSection from "../components/sections/TagsSection";
21-
import OutcomesSection from "../components/sections/OutcomesSection";
22-
import TriggersSection from "../components/sections/TriggersSection";
2319
import TrackEventSection from "../components/sections/TrackEventSection";
24-
import LocationSection from "../components/sections/LocationSection";
20+
import TriggersSection from "../components/sections/TriggersSection";
21+
import UserSection from "../components/sections/UserSection";
22+
import { useAppContext } from "../context/AppContext";
23+
import { InAppMessageType } from "../models/InAppMessageType";
24+
import TooltipHelper, { TooltipData } from "../services/TooltipHelper";
2525
import { AppColors } from "../theme";
2626

2727
export default function HomeScreen() {
@@ -35,7 +35,6 @@ export default function HomeScreen() {
3535
// Auto-request push permission on load
3636
useEffect(() => {
3737
void app.promptPush();
38-
// eslint-disable-next-line react-hooks/exhaustive-deps
3938
}, []);
4039

4140
const showTooltipModal = (key: string) => {

vite.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@ export default defineConfig({
44
staged: {
55
"*": "vp check --fix",
66
},
7-
lint: { options: { typeAware: true, typeCheck: true } },
7+
lint: {
8+
plugins: ["react"],
9+
options: { typeAware: true, typeCheck: true },
10+
rules: {
11+
"react/exhaustive-deps": "warn",
12+
},
13+
},
814
});

0 commit comments

Comments
 (0)