Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <[email protected]>
  • Loading branch information
mcansh committed Jan 30, 2023
1 parent 98c3a8b commit d4b327c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dataloader/app/loaders/userLoader.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DataFunctionArgs } from "@remix-run/node";
import type { DataFunctionArgs } from "@remix-run/node";
import DataLoader from "dataloader";

import { db } from "~/data.server";
Expand Down
5 changes: 3 additions & 2 deletions dataloader/app/routes/users.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { json } from "@remix-run/node";
import { Outlet, useLoaderData } from "@remix-run/react";
import { User } from "~/data.server";
import { DataLoaderArgs } from "~/loaders/userLoader";

import type { User } from "~/data.server";
import type { DataLoaderArgs } from "~/loaders/userLoader";

export const loader = async ({ context }: DataLoaderArgs) => {
const users = await context.loaders.usersById.loadMany([
Expand Down
3 changes: 2 additions & 1 deletion dataloader/app/routes/users/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { json } from "@remix-run/node";
import { useLoaderData } from "@remix-run/react";
import { DataLoaderArgs } from "~/loaders/userLoader";

import type { DataLoaderArgs } from "~/loaders/userLoader";

export const loader = async ({ context }: DataLoaderArgs) => {
/*
Expand Down
3 changes: 2 additions & 1 deletion file-and-cloudinary-upload/app/utils/utils.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import cloudinary, { UploadApiResponse } from "cloudinary";
import type { UploadApiResponse } from "cloudinary";
import cloudinary from "cloudinary";
import { writeAsyncIterableToWritable } from "@remix-run/node";

cloudinary.v2.config({
Expand Down
6 changes: 3 additions & 3 deletions pm-app/app/routes/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ export const action = async ({ request }: ActionArgs) => {

export default function Register() {
const actionData = useActionData<typeof action>();
let fieldErrors =
const fieldErrors =
actionData && "fieldErrors" in actionData
? actionData.fieldErrors
: undefined;
let formError =
const formError =
actionData && "formError" in actionData ? actionData.formError : undefined;
let fields =
const fields =
actionData && "fields" in actionData ? actionData.fields : undefined;
const [searchParams] = useSearchParams();

Expand Down

0 comments on commit d4b327c

Please sign in to comment.