diff --git a/src/components/Terminal.tsx b/src/components/Terminal.tsx index ea55059..eeba42a 100644 --- a/src/components/Terminal.tsx +++ b/src/components/Terminal.tsx @@ -10,7 +10,9 @@ import unknownCommand from "../app/commands/unknown"; const Terminal: React.FC = () => { const [input, setInput] = useState(""); const [output, setOutput] = useState([]); + // eslint-disable-next-line @typescript-eslint/no-unused-vars const [history, setHistory] = useState([]); + // eslint-disable-next-line @typescript-eslint/no-unused-vars const [historyIndex, setHistoryIndex] = useState(null); const [suggestion, setSuggestion] = useState(null); const [inputDisabled, setInputDisabled] = useState(false); // Disable input after exit @@ -35,7 +37,7 @@ const Terminal: React.FC = () => { } const normalizedInput = input.toLowerCase(); - const commands: { [key: string]: (setInputDisabled: any, setOutput: any) => JSX.Element[] } = { + const commands: { [key: string]: (setInputDisabled: never, setOutput: never) => JSX.Element[] } = { help: helpCommand, socials: socialsCommand, exit: () => exitCommand(setInputDisabled, setOutput), // Pass control functions @@ -48,6 +50,8 @@ const Terminal: React.FC = () => { setOutput((prev) => [ ...prev,
$ {input}
, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore ...commandOutput(), ]); setHistory((prev) => [...prev, input]);