Skip to content

chore: add lint/format script and fix eslint issues#13

Open
Mysh3ll wants to merge 4 commits into
digbenjamins:mainfrom
Mysh3ll:fix/eslint-errors
Open

chore: add lint/format script and fix eslint issues#13
Mysh3ll wants to merge 4 commits into
digbenjamins:mainfrom
Mysh3ll:fix/eslint-errors

Conversation

@Mysh3ll

@Mysh3ll Mysh3ll commented Oct 10, 2025

Copy link
Copy Markdown

This pull request introduces improvements to code quality and developer tooling, primarily by adding Prettier for code formatting and enhancing ESLint configuration. It also refactors TypeScript imports for better type safety and readability, and makes minor code style adjustments throughout the codebase.

Developer tooling improvements:

  • Added Prettier configuration (prettier.config.cjs), Prettier ignore file (.prettierignore), and related scripts (format, format:check) to package.json for consistent code formatting. [1] [2] [3]
  • Updated ESLint configuration (eslint.config.mjs) to integrate eslint-config-prettier, enhance TypeScript rules, and ignore the dist directory. Added new lint scripts to package.json. [1] [2] [3]

TypeScript and code style refactoring:

  • Changed several imports to use import type for type-only imports, improving type safety and reducing runtime overhead (e.g., in src/index.ts, src/tracker/db.ts, src/utils/handlers/rugCheckHandler.ts). [1] [2] [3]
  • Refactored function signatures and error handling to improve readability and maintainability, including better formatting of long function calls and error messages in multiple files. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]

Database and API improvements:

  • Improved type annotations and parameter formatting in database functions (src/tracker/db.ts) for clarity and correctness. [1] [2] [3] [4] [5] [6]
  • Enhanced error handling and API request formatting in handlers for external services (src/utils/handlers/rugCheckHandler.ts, src/utils/handlers/sniperooHandler.ts). [1] [2] [3] [4]

These changes collectively improve code consistency, reliability, and maintainability across the project.

@Mysh3ll Mysh3ll changed the title chore: add lint script and fix eslint issues chore: add lint/format script and fix eslint issues Oct 10, 2025
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