Skip to content

Conversation

@Priveetee
Copy link
Owner

This pull request introduces several improvements and updates across the codebase, focusing on ESLint configuration modernization, API route refactoring for tRPC endpoints, and increased code quality through stricter linting and conventions. The most significant changes are the migration to the new ESLint flat config, enhanced error logging and context creation in tRPC API routes, and the addition of new ESLint plugins and rules. Minor improvements include consistent code style, explicit ESLint disables, and updated import paths.

ESLint Configuration Modernization and Linting Improvements:

  • Migrated from legacy ESLint config to the new flat config format in eslint.config.mjs, added support for TypeScript, React Hooks, and Next.js plugins, and updated rules for stricter linting and improved compatibility. Also, expanded ignored files and set up proper global variables.
  • Updated package.json to include new ESLint plugins and parser dependencies: @typescript-eslint/eslint-plugin, @typescript-eslint/parser, and eslint-plugin-react-hooks.

API Route Refactoring and Logging Enhancements:

Code Quality and Consistency:

  • Applied consistent code style in FaultyTerminal.tsx (e.g., double quotes, formatting, and minor refactoring). [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • Updated import paths and minor logic in related files for tRPC and background components. [1] [2]

Explicit ESLint Disables for React Hooks:

  • Added targeted eslint-disable-next-line comments for React Hooks rules in several files to suppress false positives or intentional violations (e.g., set-state-in-effect, purity, static-components). [1] [2] [3] [4] [5]

Summary of Most Important Changes:

ESLint and Linting:

  • Migrated to the new ESLint flat config, added TypeScript, React Hooks, and Next.js plugin support, and updated rules for stricter linting in eslint.config.mjs.
  • Added new ESLint plugins and parser dependencies in package.json.

API/tRPC Refactoring:

Code Style and Quality:

  • Standardized code style and improved formatting in FaultyTerminal.tsx and related files. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • Added explicit ESLint disables for React Hooks rules where necessary. [1] [2] [3] [4] [5]

@Priveetee Priveetee merged commit 9eb1b91 into main Jan 29, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant