Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint-plugin): [ban-types] tighten defaults
`Record<string, any>` is not typesafe, so we shouldn't suggest it as the default fixer. Additionally, using `any` causes errors via the `no-explicit-any` rule. `Record<string, unknown>` is safe because you have to use type guards to actually use the value. Also add handling for `object`; it wasn't added because I didn't think about the fact that it's not fixing `Object` -> `object` like the rest of the fixers. Fixes #842
- Loading branch information