Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
fix: fix eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrisnl committed Oct 26, 2023
1 parent f0cdba8 commit f3c8281
Show file tree
Hide file tree
Showing 40 changed files with 74 additions and 64 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
root: true,
parserOptions: {
tsconfigRootDir: __dirname,
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/app/components/error-page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Link} from '@remix-run/react';
import {buttonVariants} from '@white-label/ui-core/button';
import {
Card,
CardContent,
Expand All @@ -9,7 +10,6 @@ import {
} from '@white-label/ui-core/card';

import {GuestLayout} from './guest-layout.tsx';
import {buttonVariants} from '@white-label/ui-core/button';

export function ErrorPage({
statusCode = 500,
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/app/components/user-nav.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import {PlusCircleIcon, UserIcon} from '@heroicons/react/24/outline';
import {
ArrowRightOnRectangleIcon,
UserCircleIcon,
} from '@heroicons/react/24/solid';
import {PlusCircleIcon, UserIcon} from '@heroicons/react/24/outline';
import {Link} from '@remix-run/react';
import {Button} from '@white-label/ui-core/button';
import {
DropdownMenu,
DropdownMenuContent,
Expand All @@ -14,7 +15,6 @@ import {
} from '@white-label/ui-core/dropdown-menu';

import type {User} from '@/modules/domain/index.server.ts';
import {Button} from '@white-label/ui-core/button';

export function UserNav({user}: {user: User.User}) {
return (
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/app/queues/register-queue.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export function registerQueue<T>(name: string, processor: Processor<T>) {
}

// noUncheckedIndexedAccess strikes back. It's initialized above, but TS doesn't know that
// @ts-ignore
// @ts-expect-error
const queue = registeredQueues[name].queue as AugmentedQueue<T>;
// @ts-ignore
// @ts-expect-error
queue.events = registeredQueues[name].queueEvents;
return queue;
}
2 changes: 1 addition & 1 deletion apps/dashboard/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
ScrollRestoration,
useNavigation,
} from '@remix-run/react';
import {Toaster} from '@white-label/ui-core/toast';
import tailwindStyles from '@white-label/ui-core/tailwind.css';
import {Toaster} from '@white-label/ui-core/toast';
import NProgress from 'nprogress';
import {useEffect} from 'react';

Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/app/routes/$.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {json} from '@remix-run/node';
import {Link} from '@remix-run/react';
import {buttonVariants} from '@white-label/ui-core/button';
import {
Card,
CardContent,
Expand All @@ -10,7 +11,6 @@ import {
} from '@white-label/ui-core/card';

import {GuestLayout} from '@/components/guest-layout.tsx';
import {buttonVariants} from '@white-label/ui-core/button';

export default function FourOhFour() {
return (
Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/app/routes/_dashboard/account/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {Outlet} from '@remix-run/react';

import {BaseLayout} from '@/components/base-layout.tsx';
import {BaseErrorBoundary} from '@/components/error-boundary.tsx';

import {useCurrentUserData} from '../use-current-user';

const navigationMenu = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {Button} from '@white-label/ui-core/button';
import {
Card,
CardContent,
Expand All @@ -6,16 +7,15 @@ import {
CardHeader,
CardTitle,
} from '@white-label/ui-core/card';
import {Input} from '@white-label/ui-core/input';
import {Label} from '@white-label/ui-core/label';
import {toast} from '@white-label/ui-core/toast';
import React from 'react';
import {useTypedFetcher} from 'remix-typedjson';

import {ErrorMessage} from '@/components/error-feedback.tsx';

import type {Action} from './_action.server.ts';
import {Label} from '@white-label/ui-core/label';
import {Input} from '@white-label/ui-core/input';
import {Button} from '@white-label/ui-core/button';
import {toast} from '@white-label/ui-core/toast';

export function ChangeNameForm({initialName}: {initialName: string}) {
const {Form, state, data} = useTypedFetcher<Action | undefined>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {Button} from '@white-label/ui-core/button';
import {
Card,
CardContent,
Expand All @@ -12,7 +13,6 @@ import {ErrorMessage} from '@/components/error-feedback.tsx';
import {MembershipInvitation} from '@/modules/domain/index.server.ts';

import type {Action} from './_action.server.ts';
import {Button} from '@white-label/ui-core/button';

export function JoinTeamForm({
invitation,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {Button} from '@white-label/ui-core/button';
import {
Card,
CardContent,
Expand All @@ -6,16 +7,15 @@ import {
CardHeader,
CardTitle,
} from '@white-label/ui-core/card';
import {Label} from '@white-label/ui-core/label';
import {toast} from '@white-label/ui-core/toast';
import React from 'react';
import {useTypedFetcher} from 'remix-typedjson';

import {ErrorMessage} from '@/components/error-feedback.tsx';
import {PasswordInput} from '@/components/password-input.tsx';

import type {Action} from './_action.server.ts';
import {toast} from '@white-label/ui-core/toast';
import {Label} from '@white-label/ui-core/label';
import {Button} from '@white-label/ui-core/button';

export function ChangePasswordForm() {
const {Form, data, state} = useTypedFetcher<Action | undefined>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Link} from '@remix-run/react';
import {Button, buttonVariants} from '@white-label/ui-core/button';
import {
Card,
CardContent,
Expand All @@ -7,14 +8,13 @@ import {
CardHeader,
CardTitle,
} from '@white-label/ui-core/card';
import {Input} from '@white-label/ui-core/input';
import {Label} from '@white-label/ui-core/label';
import {useTypedFetcher} from 'remix-typedjson';

import {ErrorMessage} from '@/components/error-feedback.tsx';

import type {Action} from './_action.server.ts';
import {Button, buttonVariants} from '@white-label/ui-core/button';
import {Label} from '@white-label/ui-core/label';
import {Input} from '@white-label/ui-core/input';

export function TeamInfo() {
const {Form, state, data} = useTypedFetcher<Action | undefined>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {Button} from '@white-label/ui-core/button';
import {
Card,
CardContent,
Expand All @@ -12,7 +13,6 @@ import {ErrorMessage} from '@/components/error-feedback.tsx';
import {MembershipInvitation} from '@/modules/domain/index.server.ts';

import type {Action} from './_action.server.ts';
import {Button} from '@white-label/ui-core/button';

export function JoinTeamForm({
invitation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
HomeIcon,
PresentationChartBarIcon,
} from '@heroicons/react/24/outline';

import {useCurrentUserData} from '../../use-current-user.ts';

export default function OrgLayout() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as Effect from 'effect/Effect';

import {
getCurrentUserDetails,
getCurrentUserId,
identifyOrgByParams,
} from '@/modules/helpers.server.ts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {Button} from '@white-label/ui-core/button';
import {
Card,
CardContent,
Expand All @@ -6,16 +7,15 @@ import {
CardHeader,
CardTitle,
} from '@white-label/ui-core/card';
import {Label} from '@white-label/ui-core/label';
import {Input} from '@white-label/ui-core/input';
import {Label} from '@white-label/ui-core/label';
import {toast} from '@white-label/ui-core/toast';
import React from 'react';
import {useTypedFetcher} from 'remix-typedjson';

import {ErrorMessage} from '@/components/error-feedback.tsx';

import type {Action} from './_action.server.ts';
import {Button} from '@white-label/ui-core/button';
import {toast} from '@white-label/ui-core/toast';

export function TeamInfo({initialName}: {initialName: string}) {
const {Form, state, data} = useTypedFetcher<Action | undefined>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ function handleInvitationDeletion({

export const action = withAction(
Effect.gen(function* (_) {
yield* _(Effect.log('Action(_dashboard/teams/$slug/settings/invitations): Init'));
yield* _(
Effect.log('Action(_dashboard/teams/$slug/settings/invitations): Init')
);
const {request, params} = yield* _(ActionArgs);

const userId = yield* _(getCurrentUserId(request));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import {LoaderArgs, withLoader} from '@/modules/with-loader.server.ts';

export const loader = withLoader(
Effect.gen(function* (_) {
yield* _(Effect.log('Loader(_dashboard/teams/$slug/settings/invitations): Init'));
yield* _(
Effect.log('Loader(_dashboard/teams/$slug/settings/invitations): Init')
);
const {request, params} = yield* _(LoaderArgs);

const userId = yield* _(getCurrentUserId(request));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import {Button} from '@white-label/ui-core/button';
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from '@white-label/ui-core/card';
import {Input} from '@white-label/ui-core/input';
import {Label} from '@white-label/ui-core/label';
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '@white-label/ui-core/select';
import {toast} from '@white-label/ui-core/toast';
import {useEffect, useRef} from 'react';
import {useTypedFetcher} from 'remix-typedjson';
import {toast} from '@white-label/ui-core/toast';
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from '@white-label/ui-core/card';

import type {Action} from './_action.server.ts';
import {Label} from '@white-label/ui-core/label';
import {Input} from '@white-label/ui-core/input';
import {Button} from '@white-label/ui-core/button';

export function CreateInvitationForm() {
const {Form, state, data} = useTypedFetcher<Action | undefined>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Badge} from '@white-label/ui-core/badge';
import {Button} from '@white-label/ui-core/button';
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from '@white-label/ui-core/card';
import {Button} from '@white-label/ui-core/button';
import {Badge} from '@white-label/ui-core/badge';
import {toast} from '@white-label/ui-core/toast';
import {useEffect} from 'react';
import {useTypedFetcher} from 'remix-typedjson';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import {LoaderArgs, withLoader} from '@/modules/with-loader.server.ts';

export const loader = withLoader(
Effect.gen(function* (_) {
yield* _(Effect.log('Loader(_dashboard/teams/$slug/settings/members): Init'));
yield* _(
Effect.log('Loader(_dashboard/teams/$slug/settings/members): Init')
);
const {request, params} = yield* _(LoaderArgs);

const userId = yield* _(getCurrentUserId(request));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {Badge} from '@white-label/ui-core/badge';
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from '@white-label/ui-core/card';
import {Badge} from '@white-label/ui-core/badge';

import type {Membership} from '@/modules/domain/index.server.ts';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import type {BaseOrgLoader} from './_loader.server.ts';
export function useOrgData() {
const {
data: {org},
} = useTypedRouteLoaderData<BaseOrgLoader>('routes/_dashboard/teams/$slug/_layout')!;
} = useTypedRouteLoaderData<BaseOrgLoader>(
'routes/_dashboard/teams/$slug/_layout'
)!;

return {
org,
Expand Down
6 changes: 3 additions & 3 deletions apps/dashboard/app/routes/_guest/_auth/login/login-form.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Link} from '@remix-run/react';
import {Button, buttonVariants} from '@white-label/ui-core/button';
import {
Card,
CardContent,
Expand All @@ -7,16 +8,15 @@ import {
CardHeader,
CardTitle,
} from '@white-label/ui-core/card';
import {useTypedFetcher} from 'remix-typedjson';
import {Button, buttonVariants} from '@white-label/ui-core/button';
import {Input} from '@white-label/ui-core/input';
import {Label} from '@white-label/ui-core/label';
import {cn} from '@white-label/ui-core/utils';
import {useTypedFetcher} from 'remix-typedjson';

import {ErrorMessage} from '@/components/error-feedback.tsx';
import {PasswordInput} from '@/components/password-input.tsx';

import type {LoginRequestAction} from './_action.server.ts';
import {cn} from '@white-label/ui-core/utils';

export function LoginForm() {
const {Form, data, state} = useTypedFetcher<LoginRequestAction | undefined>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Link} from '@remix-run/react';
import {Button, buttonVariants} from '@white-label/ui-core/button';
import {
Card,
CardContent,
Expand All @@ -7,15 +8,14 @@ import {
CardHeader,
CardTitle,
} from '@white-label/ui-core/card';
import {Input} from '@white-label/ui-core/input';
import {Label} from '@white-label/ui-core/label';
import {useTypedFetcher} from 'remix-typedjson';

import {ErrorMessage} from '@/components/error-feedback.tsx';
import {PasswordInput} from '@/components/password-input.tsx';

import type {RegisterRequestAction} from './_action.server.ts';
import {Label} from '@white-label/ui-core/label';
import {Input} from '@white-label/ui-core/input';
import {Button, buttonVariants} from '@white-label/ui-core/button';

export function RegisterForm() {
const {Form, data, state} = useTypedFetcher<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {ExclamationTriangleIcon} from '@heroicons/react/24/outline';
import {Link} from '@remix-run/react';
import {buttonVariants} from '@white-label/ui-core/button';
import {
Card,
CardContent,
Expand All @@ -9,7 +10,6 @@ import {
} from '@white-label/ui-core/card';

import {GuestLayout} from '@/components/guest-layout.tsx';
import {buttonVariants} from '@white-label/ui-core/button';

export function InvalidTokenErrorMessage() {
return (
Expand Down
Loading

0 comments on commit f3c8281

Please sign in to comment.