I've set the "noImplicitAny": true,
flag in tsconfig.json and
"@typescript-eslint/no-explicit-any": 2,
for eslint, but they aren't catching instances like
type BadInterface {
property: any
}
Is there a way to configure tsconfig or eslint to catch this issue? Our team's contractors use any
frequently in interface properties, and I can't seem to find a solution to prevent these from passing through tsc
or eslint
commands in our CI workflow.
Just to clarify, I'm looking for a method that will alert me when someone uses type any
for a key on an interface or type. It seems to be overlooked when TypeScript is inferring the type from an any
, but I want it to throw an error whenever any
is used as a type at all.