Skip to content

Commit 3a9f430

Browse files
committed
Lint
1 parent 2f261fa commit 3a9f430

File tree

11 files changed

+143
-68
lines changed

11 files changed

+143
-68
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/rpc/

bun.lock

Lines changed: 128 additions & 59 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,13 @@
5757
"@react-native/eslint-config": "0.77.0",
5858
"@react-native/metro-config": "0.77.0",
5959
"@react-native/typescript-config": "0.77.0",
60+
"@tanstack/eslint-plugin-query": "^5.66.0",
6061
"@types/jest": "^29.5.14",
6162
"@types/react": "^18.3.18",
6263
"@types/react-test-renderer": "^18.3.1",
6364
"babel-jest": "^29.7.0",
6465
"babel-plugin-module-resolver": "^5.0.2",
65-
"eslint": "^9.19.0",
66+
"eslint": "^8.19.0",
6667
"jest": "^29.7.0",
6768
"prettier": "^3.4.2",
6869
"prettier-plugin-tailwindcss": "^0.6.11",

src/assets/animations/animations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const Animations = {
22
'broken-clouds': require('./lottie/broken-clouds.lottie'),
33
'coming-soon': require('./lottie/coming-soon.lottie'),
44
welcome: require('./lottie/welcome.lottie'),
5-
lock : require('./lottie/lock.lottie'),
5+
lock: require('./lottie/lock.lottie'),
66
}
77

88
export default Animations

src/components/Search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function Search({ onChangeText, value, ...all }: TextInputProps)
3030
<TextInput
3131
ref={ref}
3232
className='flex-1 p-3 text-zinc-800 dark:text-zinc-200'
33-
style={[SEMIBOLD, { fontSize: 13, marginBottom: 1, height: 40 }]}
33+
style={[SEMIBOLD, { fontSize: 13, marginBottom: 3, height: 40 }]}
3434
placeholderTextColor={scheme === 'dark' ? Colors.zinc[500] : Colors.zinc[400]}
3535
cursorColor={Colors.accent}
3636
selectionColor={Colors.accent + '55'}

src/screens/Onboarding.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function Onboarding({ navigation }: NavProp) {
1414
return (
1515
<View className='gap-5-center flex-1 items-center justify-between'>
1616
<PaddingTop />
17-
<View className='flex-1 items-center justify-between px-8'>
17+
<View className='w-full flex-1 items-center justify-between px-8'>
1818
<View />
1919
<View>
2020
<Lottie source={Animations.welcome} style={{ width: W * 0.65, height: W * 0.65, marginTop: -50 }} />
@@ -26,7 +26,9 @@ export default function Onboarding({ navigation }: NavProp) {
2626
</SemiBold>
2727
</View>
2828
</View>
29-
<Btn title='Get Started' onPress={handlePress} />
29+
<View className='w-full'>
30+
<Btn title='Get Started' onPress={handlePress} />
31+
</View>
3032
</View>
3133
<View className='h-5'></View>
3234
<PaddingBottom />

src/screens/Settings/Settings/Settings.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export default function Settings({ navigation }: NavProp) {
8686
setTotalSize(getStartWithSize(''))
8787
setTotalCache(getStorageSize(Caches))
8888
})
89+
// eslint-disable-next-line react-hooks/exhaustive-deps
8990
}, [])
9091

9192
function clearCache() {

src/screens/Try/RandomPassword.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function RandomPassword({ navigation }: NavProp) {
5858
return (
5959
<SettWrapper navigation={navigation} title='Random Password'>
6060
<Gap12>
61-
<Lottie source={Animations['lock']} style={{ marginTop: 20, width: W * 0.5, height: W * 0.5 }} />
61+
<Lottie source={Animations.lock} style={{ marginTop: 20, width: W * 0.5, height: W * 0.5 }} />
6262
<SettText>Here you will set some options to generate a random password</SettText>
6363
<SettGroup title='Password Length'>
6464
<MemoRange setVal={setLen} initial={INITIAL} max={MAX} min={MIN} Bottom={BottomPart} />
@@ -84,7 +84,7 @@ export default function RandomPassword({ navigation }: NavProp) {
8484
</SettGroup>
8585
<SettGroup>
8686
{generatedPassword ? (
87-
<View className='flex-row items-center justify-between py-2 px-5'>
87+
<View className='flex-row items-center justify-between px-5 py-2'>
8888
<TouchableOpacity
8989
activeOpacity={0.7}
9090
onPress={() => {

src/screens/auth/Login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function Login({ navigation }: NavProp) {
8686
<PaddingTop />
8787
<View className='px-5 py-5 pb-8'>
8888
<Bold className='pb-3 text-3xl text-black dark:text-white'>Login to Tech Triangle</Bold>
89-
<Lottie source={Animations['welcome']} style={{ width: W * 0.6, height: W * 0.6 }} />
89+
<Lottie source={Animations.welcome} style={{ width: W * 0.6, height: W * 0.6 }} />
9090
</View>
9191
<Gap12>
9292
<SettGroup title='Email or Username'>

src/screens/auth/Verify.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default function Verify({ navigation, route }: { navigation: StackNav; ro
6060
<PaddingTop />
6161
<View className='px-5 py-5 pb-5'>
6262
<Bold className='pb-8 text-3xl text-black dark:text-white'>Please Verify your account</Bold>
63-
<Lottie source={Animations['lock']} />
63+
<Lottie source={Animations.lock} />
6464
</View>
6565
<Gap12>
6666
<SettText className='text-blue-500'>Please check also your spam folder for the OTP.</SettText>

0 commit comments

Comments
 (0)