Skip to content

Commit

Permalink
fix: issues with linting
Browse files Browse the repository at this point in the history
Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
  • Loading branch information
iamnewton committed Nov 6, 2024
1 parent 3bf64c6 commit 1d9938b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .storybook/decorators.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type Decorator } from "@storybook/react";
import { Layout } from "../app/layout";

export function PageDecorator (Story): Decorator => {
export function PageDecorator (Story): Decorator {
return <Layout><Story /></Layout>;
}
10 changes: 5 additions & 5 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ initialize({ onUnhandledRequest: "bypass" });
const preview: Preview = {
layout: "centered",
loaders: [mswLoader],
nextjs: { appDirectory: true },
nextjs: { appDirectory: true },
parameters: {
controls: {
matchers: {
Expand All @@ -31,10 +31,10 @@ const preview: Preview = {
},
tags: ["autodocs"],
test: {
// This is needed until Next will update to the React 19 beta: https://github.com/vercel/next.js/pull/65058
// In the React 19 beta ErrorBoundary errors (such as redirect) are only logged, and not thrown.
dangerouslyIgnoreUnhandledErrors: true,
},
// This is needed until Next will update to the React 19 beta: https://github.com/vercel/next.js/pull/65058
// In the React 19 beta ErrorBoundary errors (such as redirect) are only logged, and not thrown.
dangerouslyIgnoreUnhandledErrors: true,
},
};

export default preview;
1 change: 0 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

import * as React from "react";
import { Index } from "../pages/";

export default function IndexPage () {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,5 @@
"react": "^18",
"react-dom": "^18"
}
}
}

1 change: 0 additions & 1 deletion pages/inbox/inbox.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

import * as React from "react";
import { Inbox, Login, useAuth } from "../../src/";

export function InboxPage () {
Expand Down
2 changes: 0 additions & 2 deletions src/inbox/inbox.story.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { expect, userEvent, findByRole, within } from "@storybook/test";
import { http, HttpResponse } from "msw";
import { Default as TaskListDefault } from "../tasks/task-list.story";
import { taskListHandler, taskListErrorHandler } from "../tasks/handlers";
import { Inbox } from "./inbox";

Expand Down

0 comments on commit 1d9938b

Please sign in to comment.