diff --git a/.eslintrc.json b/.eslintrc.json index 26d4bd55..949a80a0 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,6 +1,12 @@ { "extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"], - "ignorePatterns": ["node_modules/", "__tests__/"], + "ignorePatterns": [ + "node_modules/", + "__tests__/", + "coverage/", + ".next/", + "public" + ], "rules": { "@typescript-eslint/no-unused-vars": "error", "@typescript-eslint/no-explicit-any": "error" diff --git a/src/app/(drift)/(posts)/components/document-tabs/index.tsx b/src/app/(drift)/(posts)/components/document-tabs/index.tsx index 1a7a8bd4..c810d863 100644 --- a/src/app/(drift)/(posts)/components/document-tabs/index.tsx +++ b/src/app/(drift)/(posts)/components/document-tabs/index.tsx @@ -42,11 +42,9 @@ export default function DocumentTabs({ setActiveTab(newTab as "preview" | "edit") } - const formattingIconsVisibilityClass = - activeTab === "preview" ? "hidden" : "block" return ( - +
{isEditing ? "Edit" : "Raw"} @@ -56,7 +54,9 @@ export default function DocumentTabs({ {isEditing && ( )} @@ -68,6 +68,14 @@ export default function DocumentTabs({ flexDirection: "column" }} > +