#How to locate all `any` variables in the code?
1 messages · Page 1 of 1 (latest)
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/"]
}
If you use https://typescript-eslint.io with type checked, there are relevant rules in there that prevents any leaking out.
The type checked configs have them enabled by default.
Hm. I do use recommended config from @typescript-eslint/eslint-plugin
Maybe I should enable some rules manually