parse5 icon indicating copy to clipboard operation
parse5 copied to clipboard

build improvement: enable no-explicit-any ESLint rule as an error

Open 43081j opened this issue 3 years ago • 1 comments

This should already be throwing warnings unless we disabled it explicitly.

We should:

  • Change the level to error
  • Remove all possible eslint-ignore lines which currently disable this rule
  • Remove all usages of any

We have quite a few, so i expect this'll be a sizeable change.

There will inevitably be some we have to keep around, too, because of dependencies typing them poorly (e.g. overriding a dependency's method which has any in its signature).

43081j avatar Jan 10 '22 19:01 43081j

:+1:

Maybe useful: https://github.com/plantain-00/type-coverage

wooorm avatar Jan 11 '22 09:01 wooorm