You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Resolve ESLint issues to improve code quality [DEV-4792] (#274)
* fix: Resolve ESLint issues to improve code quality
First set of fixes are the automatic fixes suggested on `npm run lint:fix`
* Ditch unused getRandomGroup
* Remove `request` parameter where not required
This helps resolve "'request' is defined but never used" linting errors.
* Remove error for unused variables for `ctx` and `controller`
Need to retain the parameters for structure but suppress linting error.
* Remove redundant `insertResult`
We can invoke the DB insert directly, since the value of `insertResult` is never used
* Better error catching in circulating supplyz
* Update worker-types.d.ts
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.
* Update node.ts
Node Types: The ValidatorRewards type directly models the existing data structure based on how it's used.
* Replace `any` with AnalyticsItem
* Fix export path type issues
* Fix error in db any usage
* Remove ExportAnalyticsItem
This was breaking the structure of CSV response
* Fix type issues in GraphQL
* Restore original CSV format
* Make export for CSV's consistent
* Revert combining
* Strong types
---------
Co-authored-by: filipdjokic <djokicf@protonmail.com>
0 commit comments