#How to locate all `any` variables in the code?

1 messages · Page 1 of 1 (latest)

mild zinc
#

Hi folks. I faced a very strange situation when code looks good, while operating with any variables, and hence - not type checked at all.

Look at the screenshot:

#

Once the code was ok, and there was no any any. But now, for some reason I'm yet to figure, it turned into any and there's no sign of danger

#

tsc keeps silence and eslint as well

#

This is my tsconfig.json:

{
  "extends": "@tsconfig/recommended",
  "compilerOptions": {
    "lib": ["dom", "dom.iterable", "esnext"],
    "jsx": "react-jsx"
  },
  "exclude": ["dist/"]
}
copper wing
#

The type checked configs have them enabled by default.

mild zinc
copper wing
#

Are you using the type checked config?

#

If not then rules that require type information won’t work

#

You can follow the “linting with type information” section in their docs to set it up.