flevi29 / search_state

MIT License
1 stars 1 forks source link

Fix linting errors #5

Closed Barabasbalazs closed 2 hours ago

Barabasbalazs commented 3 hours ago

Currently when running:

deno lint

a lot of issues get reported.

error[no-explicit-any]: `any` type is not allowed
  --> /home/balazs/Documents/search_state/src/hits_with_numbered_pagination.ts:55:50
   | 
55 |   T extends Record<string, any> = Record<string, any>,
   |                                                  ^^^
   = hint: Use a specific type other than `any`

  docs: https://lint.deno.land/rules/no-explicit-any

Seems like a lot of any types are being used in the code. Either disable this warnings, or better address them. For more qualitative code this should be fixed, so we can add this to the testing workflow as well.

flevi29 commented 2 hours ago

Fixed in latest commit https://github.com/flevi29/search_state/commit/70ec08d7d23701c13fd9b83de347aa8173350204