Skip to content

fix: resolve ESLint & TypeScript issues (replace any catches, remove unused, config fixes) - #6

Merged
MEECHAIN1 merged 1 commit into
mainfrom
codex/fix-typescript-linting-errors
Aug 30, 2026
Merged

fix: resolve ESLint & TypeScript issues (replace any catches, remove unused, config fixes)#6
MEECHAIN1 merged 1 commit into
mainfrom
codex/fix-typescript-linting-errors

Conversation

@MEECHAIN1

Copy link
Copy Markdown
Member

Motivation

  • Eliminate ESLint @typescript-eslint/no-explicit-any and related TypeScript complaints by making error handling safe and removing unused or permissive types.
  • Fix lint/format complaints caused by empty interfaces, unused imports/args, and forbidden require() usage in configuration files.

Description

  • Replaced unsafe catch (err: any) bindings with catch (err: unknown) and use err instanceof Error ? err.message : <fallback> across RPC proxy, Live panel, Magic views, JSON-RPC terminal, Stats monitor, Verification runner, and page fetch logic.
  • Removed or simplified unused symbols and props (unused icon imports, unused chaosMode param renamed to _chaosMode), and converted empty UI prop interfaces into type aliases for InputProps, TextareaProps, and CommandDialogProps to satisfy @typescript-eslint/no-empty-object-type.
  • Adjusted parsing/initialization in JsonRpcTerminal to avoid unnecessary initial assignments for parsedParams.
  • Declared CommonJS globals in next.config.js/postcss.config.js and replaced Tailwind require('tailwindcss-animate') with an ESM import import tailwindcssAnimate from 'tailwindcss-animate' in tailwind.config.ts.
  • Minor robustness fixes in ProductionCodeHub error handling and other small cleanups to address ESLint warnings.

Testing

  • Ran npm run lint and linting passed after the changes.
  • Ran npm run typecheck (tsc --noEmit) and TypeScript checks passed.
  • Built the app with npm run build and the Next.js production build completed successfully.

Codex Task

@MEECHAIN1
MEECHAIN1 merged commit 9ef58b0 into main Aug 30, 2026
9 checks passed

@MEECHAIN1 MEECHAIN1 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@MEECHAIN1
MEECHAIN1 deleted the codex/fix-typescript-linting-errors branch September 2, 2026 11:00
@MEECHAIN1
MEECHAIN1 restored the codex/fix-typescript-linting-errors branch September 2, 2026 11:00
@MEECHAIN1
MEECHAIN1 deleted the codex/fix-typescript-linting-errors branch September 2, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant