Skip to content

Commit a3af0ab

Browse files
committed
chore: implement max linting rules
1 parent 5e59783 commit a3af0ab

10 files changed

Lines changed: 40 additions & 30 deletions

File tree

apps/web/src/components/IdentificationForm/IdentificationForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type IdentificationFormProps = {
1313
onSubmit: (data: { id: string }) => Promisable<void>;
1414
};
1515

16+
// eslint-disable-next-line max-lines-per-function
1617
export const IdentificationForm = ({ onSubmit }: IdentificationFormProps) => {
1718
const currentGroup = useAppStore((store) => store.currentGroup);
1819
const { t } = useTranslation();

apps/web/src/components/Sidebar/Sidebar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { useAppStore } from '@/store';
1313
import { NavButton } from '../NavButton';
1414
import { UserDropup } from '../UserDropup';
1515

16+
// eslint-disable-next-line max-lines-per-function
1617
export const Sidebar = () => {
1718
const navItems = useNavItems();
1819
const currentSession = useAppStore((store) => store.currentSession);

apps/web/src/features/admin/pages/CreateUserPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { PageHeader } from '@/components/PageHeader';
1111
import { useCreateUserMutation } from '../hooks/useCreateUserMutation';
1212
import { useGroupsQuery } from '../hooks/useGroupsQuery';
1313

14+
// eslint-disable-next-line max-lines-per-function
1415
export const CreateUserPage = () => {
1516
const { t } = useTranslation();
1617
const navigate = useNavigate();

apps/web/src/features/admin/pages/ManageUsersPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { useAppStore } from '@/store';
1212
import { useDeleteUserMutation } from '../hooks/useDeleteUserMutation';
1313
import { useUsersQuery } from '../hooks/useUsersQuery';
1414

15+
// eslint-disable-next-line max-lines-per-function
1516
export const ManageUsersPage = () => {
1617
const currentUser = useAppStore((store) => store.currentUser);
1718
const { t } = useTranslation();

apps/web/src/features/datahub/pages/DataHubPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { downloadExcel } from '@/utils/excel';
1818
import { MasterDataTable } from '../components/MasterDataTable';
1919
import { useSubjectsQuery } from '../hooks/useSubjectsQuery';
2020

21+
// eslint-disable-next-line max-lines-per-function
2122
export const DataHubPage = () => {
2223
const [isLookupOpen, setIsLookupOpen] = useState(false);
2324

apps/web/src/features/datahub/pages/SubjectGraphPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { useInstrumentVisualization } from '../hooks/useInstrumentVisualization'
2323
import { useLinearModelQuery } from '../hooks/useLinearModelQuery';
2424
import { useMeasureOptions } from '../hooks/useMeasureOptions';
2525

26+
// eslint-disable-next-line max-lines-per-function
2627
export const SubjectGraphPage = () => {
2728
const downloadCanvas = useDownload();
2829
const currentGroup = useAppStore((store) => store.currentGroup);

apps/web/src/features/session/components/StartSessionForm/StartSessionForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export type StartSessionFormProps = {
3838
readOnly: boolean;
3939
};
4040

41+
// eslint-disable-next-line max-lines-per-function
4142
export const StartSessionForm = ({ currentGroup, initialValues, readOnly, onSubmit }: StartSessionFormProps) => {
4243
const { t } = useTranslation();
4344
return (

apps/web/src/features/setup/pages/SetupPage/SetupPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export type SetupPageProps = {
2020
onSubmit: (data: SetupData) => void;
2121
};
2222

23+
// eslint-disable-next-line max-lines-per-function
2324
export const SetupPage = ({ onSubmit }: SetupPageProps) => {
2425
const { t } = useTranslation();
2526
return (

apps/web/src/providers/WalkthroughProvider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ type WalkthroughStep = {
4949
url: `/${string}`;
5050
};
5151

52+
// eslint-disable-next-line max-lines-per-function
5253
const Walkthrough = () => {
5354
const setIsWalkthroughComplete = useAppStore((store) => store.setIsWalkthroughComplete);
5455
const startSession = useAppStore((store) => store.startSession);
@@ -63,6 +64,7 @@ const Walkthrough = () => {
6364

6465
useEventListener('resize', () => setIsWalkthroughOpen(false), undefined, { once: true });
6566

67+
// eslint-disable-next-line max-lines-per-function
6668
const steps = useMemo<WalkthroughStep[]>(() => {
6769
return [
6870
{

pnpm-lock.yaml

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)