Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Linting refactor (#771)

Leendert de Borst93040e23777f
diff --git a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
index 523319983..d832d1531 100644
--- a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
+++ b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
@@ -277,7 +277,7 @@ export default function AddEditCredentialScreen() : React.ReactNode {
setIsLoading(false);
}
- }, [isEditMode, id, serviceUrl, router, executeVaultMutation, dbContext.sqliteClient, mode, generateRandomAlias, webApi]);
+ }, [isEditMode, id, serviceUrl, router, executeVaultMutation, dbContext.sqliteClient, mode, generateRandomAlias, webApi, watch]);
/**
* Extract the service name from the service URL.
diff --git a/apps/mobile-app/app/(tabs)/credentials/autofill-credential-created.tsx b/apps/mobile-app/app/(tabs)/credentials/autofill-credential-created.tsx
index d3d85049a..68603de89 100644
--- a/apps/mobile-app/app/(tabs)/credentials/autofill-credential-created.tsx
+++ b/apps/mobile-app/app/(tabs)/credentials/autofill-credential-created.tsx
@@ -1,7 +1,7 @@
import { StyleSheet, View, TouchableOpacity, AppState } from 'react-native';
import { useNavigation, useRouter } from 'expo-router';
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
-import { useCallback, useEffect, useRef } from 'react';
+import { useCallback, useEffect } from 'react';
import { ThemedText } from '@/components/themed/ThemedText';
import { ThemedView } from '@/components/themed/ThemedView';
diff --git a/apps/mobile-app/app/(tabs)/settings/index.tsx b/apps/mobile-app/app/(tabs)/settings/index.tsx
index 5aaba1ca4..bfe8727c3 100644
--- a/apps/mobile-app/app/(tabs)/settings/index.tsx
+++ b/apps/mobile-app/app/(tabs)/settings/index.tsx
@@ -1,7 +1,7 @@
import { StyleSheet, View, ScrollView, TouchableOpacity, Image, Animated, Platform } from 'react-native';
import { router, useFocusEffect } from 'expo-router';
import { Ionicons } from '@expo/vector-icons';
-import { useRef, useState, useEffect, useCallback } from 'react';
+import { useRef, useState, useCallback } from 'react';
import { ThemedText } from '@/components/themed/ThemedText';
import { ThemedView } from '@/components/themed/ThemedView';
@@ -20,7 +20,7 @@ import avatarImage from '@/assets/images/avatar.webp';
export default function SettingsScreen() : React.ReactNode {
const webApi = useWebApi();
const colors = useColors();
- const { username, getAuthMethodDisplay, shouldShowIosAutofillReminder, getBiometricDisplayName } = useAuth();
+ const { username, getAuthMethodDisplay, shouldShowIosAutofillReminder } = useAuth();
const { getAutoLockTimeout } = useAuth();
const scrollY = useRef(new Animated.Value(0)).current;
const scrollViewRef = useRef<ScrollView>(null);
diff --git a/apps/mobile-app/components/__tests__/ThemedText-test.tsx b/apps/mobile-app/components/__tests__/ThemedText-test.tsx
deleted file mode 100644
index f381eabeb..000000000
--- a/apps/mobile-app/components/__tests__/ThemedText-test.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import * as React from 'react';
-import renderer from 'react-test-renderer';
-
-import { ThemedText } from '../themed/ThemedText';
-
-it(`renders correctly`, () => {
- const tree = renderer.create(<ThemedText>Snapshot test!</ThemedText>).toJSON();
-
- expect(tree).toMatchSnapshot();
-});
diff --git a/apps/mobile-app/components/__tests__/__snapshots__/ThemedText-test.tsx.snap b/apps/mobile-app/components/__tests__/__snapshots__/ThemedText-test.tsx.snap
deleted file mode 100644
index b68e53e9c..000000000
--- a/apps/mobile-app/components/__tests__/__snapshots__/ThemedText-test.tsx.snap
+++ /dev/null
@@ -1,24 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-<Text
- style={
- [
- {
- "color": "#11181C",
- },
- {
- "fontSize": 16,
- "lineHeight": 24,
- },
- undefined,
- undefined,
- undefined,
- undefined,
- undefined,
- ]
- }
->
- Snapshot test!
-</Text>
-`;