Skip to content

Commit a149aed

Browse files
author
Teodor C.
committed
chore: fix lint
1 parent 727db31 commit a149aed

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ bazel-*
3333
build-cmake
3434
node_modules/
3535
.dart_tool/
36+
3637
# Claude settings
37-
.claude/settings.local.json
38+
**/.claude/settings.local.json

react-native/App.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const App = () => {
123123
const existingInstance = getDittoInstance();
124124
if (existingInstance) {
125125
ditto.current = existingInstance;
126-
126+
127127
// Re-register observers for this component
128128
taskObserver.current = ditto.current.store.registerObserver(
129129
'SELECT * FROM tasks WHERE NOT deleted',
@@ -139,12 +139,12 @@ const App = () => {
139139
);
140140
return;
141141
}
142-
142+
143143
// Prevent multiple Ditto instances
144144
if (ditto.current) {
145145
return;
146146
}
147-
147+
148148
try {
149149
// https://docs.ditto.live/sdk/latest/install-guides/react-native#onlineplayground
150150
const databaseId = DITTO_APP_ID;
@@ -212,7 +212,7 @@ const App = () => {
212212

213213
useEffect(() => {
214214
let mounted = true;
215-
215+
216216
(async () => {
217217
const granted =
218218
Platform.OS === 'android' ? await requestPermissions() : true;
@@ -225,7 +225,7 @@ const App = () => {
225225
);
226226
}
227227
})();
228-
228+
229229
// Cleanup function
230230
return () => {
231231
mounted = false;

react-native/components/NewTaskModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const NewTaskModal: React.FC<NewTaskModalProps> = ({visible, onSubmit, onClose})
2626
}
2727
};
2828

29-
if (!visible) return null;
29+
if (!visible) {return null;}
3030

3131
// For Windows, render as an absolute positioned overlay within the app
3232
if (Platform.OS === 'windows') {
@@ -165,4 +165,4 @@ const styles = StyleSheet.create({
165165
},
166166
});
167167

168-
export default NewTaskModal;
168+
export default NewTaskModal;

react-native/dittoSingleton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ export const clearDittoInstance = (): void => {
2828
}
2929
globalDittoInstance = null;
3030
}
31-
};
31+
};

0 commit comments

Comments
 (0)