Skip to content

Commit 6f16b88

Browse files
committed
🚨(frontend) @typescript-eslint/no-unused-vars as error
`@typescript-eslint/no-unused-vars` rules was only a warning but our code contains several unused imports. To prevent that in the future we now trigger an error for this rule to prevent to merge code with unused imports.
1 parent 6558bf8 commit 6f16b88

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

‎src/frontend/eslint.config.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const eslintConfig = [
1818
rules: {
1919
"react-hooks/exhaustive-deps": "off",
2020
"no-console": ["error", { allow: ["error", "warn"] }],
21+
"@typescript-eslint/no-unused-vars": "error",
2122
},
2223
},
2324
];

‎src/frontend/src/features/layouts/components/thread-panel/components/thread-item/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useTranslation } from "react-i18next"
22
import Link from "next/link"
33
import { useParams, useSearchParams } from "next/navigation"
4-
import { useEffect, useRef, useState } from "react"
4+
import { useRef, useState } from "react"
55
import { createPortal } from "react-dom"
66
import clsx from "clsx"
77
import { DateHelper } from "@/features/utils/date-helper"

‎src/frontend/src/features/layouts/components/thread-view/components/thread-message/message-body.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { UnquoteMessage } from '@/features/utils/unquote-message';
77
import { useTranslation } from "react-i18next";
88
import { tokens } from '@/styles/cunningham-tokens'
99
import { useTheme } from "@/features/providers/theme";
10-
import { C } from "vitest/dist/chunks/reporters.d.BFLkQcL6.js";
1110

1211
type MessageBodyProps = {
1312
rawHtmlBody?: string;

0 commit comments

Comments
 (0)