Sometimes you need to use casts, eg: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/28884#issuecomment-471341041. This change ignores them and allows you to still omit the ref object from the deps list. Test Plan: unit tests |
||
|---|---|---|
| .. | ||
| ESLintRuleExhaustiveDeps-test.js | ||
| ESLintRulesOfHooks-test.js | ||