Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module.exports = {
},
],
'max-params': ['error', 3], // Limit the number of parameters in a function to use object instead
'max-lines-per-function': ['error', 70],
'react/display-name': 'off',
'react/no-inline-styles': 'off',
'react/destructuring-assignment': 'off', // Vscode doesn't support automatically destructuring, it's a pain to add a new variable
Expand Down
1 change: 0 additions & 1 deletion app.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import type { ConfigContext, ExpoConfig } from '@expo/config';

import { ClientEnv, Env } from './env';
Expand Down
1 change: 0 additions & 1 deletion src/api/habits/use-modify-entry.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import { createMutation } from 'react-query-kit';

import { addTestDelay, queryClient } from '../common';
Expand Down
1 change: 0 additions & 1 deletion src/api/habits/use-press-habit-button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import { createMutation } from 'react-query-kit';

import { addTestDelay, queryClient } from '../common';
Expand Down
1 change: 0 additions & 1 deletion src/api/notifications/use-respond-to-notification.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import { showMessage } from 'react-native-flash-message';
import { createMutation } from 'react-query-kit';

Expand Down
1 change: 0 additions & 1 deletion src/app/(tabs)/notifications.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import { useQueries } from '@tanstack/react-query';
import React from 'react';

Expand Down
1 change: 0 additions & 1 deletion src/app/(tabs)/settings.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
/* eslint-disable react/react-in-jsx-scope */
import { Env } from '@env';
import { Linking } from 'react-native';
Expand Down
1 change: 0 additions & 1 deletion src/app/auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const emailSchema = z.object({

type EmailFormType = z.infer<typeof emailSchema>;

// eslint-disable-next-line max-lines-per-function
export default function Auth() {
const router = useRouter();
const { handleSubmit, control } = useForm<EmailFormType>({
Expand Down
1 change: 0 additions & 1 deletion src/app/habits/edit-habit.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import { BottomSheetScrollView } from '@gorhom/bottom-sheet';
import { zodResolver } from '@hookform/resolvers/zod';
import { router } from 'expo-router';
Expand Down
1 change: 0 additions & 1 deletion src/app/habits/view-habit.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import { BottomSheetScrollView } from '@gorhom/bottom-sheet';
import { Link, useLocalSearchParams } from 'expo-router';
import {
Expand Down
1 change: 0 additions & 1 deletion src/components/habit-card.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import { Link, router } from 'expo-router';
import { ActivityIcon, CheckIcon, EllipsisIcon } from 'lucide-react-native';
import { useColorScheme } from 'nativewind';
Expand Down
1 change: 0 additions & 1 deletion src/components/modify-habit-entry/image-section.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import * as ImagePicker from 'expo-image-picker';
import { CameraIcon, ImageIcon, Trash2Icon } from 'lucide-react-native';
import { useColorScheme } from 'nativewind';
Expand Down
1 change: 0 additions & 1 deletion src/components/modify-habit-entry/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import { PenIcon } from 'lucide-react-native';
import React, { useState } from 'react';

Expand Down
1 change: 0 additions & 1 deletion src/components/modify-habit-entry/modify-entry-modal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import { zodResolver } from '@hookform/resolvers/zod';
import { SaveIcon, XIcon } from 'lucide-react-native';
import { useColorScheme } from 'nativewind';
Expand Down
1 change: 0 additions & 1 deletion src/components/notification-card.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import { BottomSheetScrollView } from '@gorhom/bottom-sheet';
import { CheckIcon, Trash2Icon } from 'lucide-react-native';
import { useColorScheme } from 'nativewind';
Expand Down
1 change: 0 additions & 1 deletion src/core/hooks/use-habit-order.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import { useCallback, useMemo } from 'react';
import { MMKV, useMMKVString } from 'react-native-mmkv';

Expand Down
1 change: 0 additions & 1 deletion src/ui/select.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import {
BottomSheetFlatList,
type BottomSheetModal,
Expand Down
Loading