fix: Resolve ESLint issues to improve code quality [DEV-4792] - #274
Merged
Conversation
First set of fixes are the automatic fixes suggested on `npm run lint:fix`
Collaborator
Author
|
Task linked: DEV-4792 Code quality improvements |
This helps resolve "'request' is defined but never used" linting errors.
Need to retain the parameters for structure but suppress linting error.
We can invoke the DB insert directly, since the value of `insertResult` is never used
Worker Types: Changing Promise<any> to Promise<unknown> maintains compatibility while being more type-safe. The unknown type can hold any value just like any, but requires type checking before use, which is actually safer.
Node Types: The ValidatorRewards type directly models the existing data structure based on how it's used.
This was breaking the structure of CSV response
ankurdotb
commented
Mar 14, 2025
cheqd-bot Bot
pushed a commit
that referenced
this pull request
Mar 14, 2025
## [2.0.1-develop.1](2.0.0...2.0.1-develop.1) (2025-03-14) ### Bug Fixes * Resolve ESLint issues to improve code quality [DEV-4792] ([#274](#274)) ([0c2c7ba](0c2c7ba))
|
🎉 This PR is included in version 2.0.1-develop.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
cheqd-bot Bot
pushed a commit
that referenced
this pull request
Mar 14, 2025
## [2.0.1](2.0.0...2.0.1) (2025-03-14) ### Bug Fixes * Resolve ESLint issues to improve code quality [DEV-4792] ([#274](#274)) ([0c2c7ba](0c2c7ba))
|
🎉 This PR is included in version 2.0.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npm run lint:fix