react/packages/eslint-plugin-react-hooks/__tests__
Sophie Alpert fe2cb52554
[eslint] Consider `useRef() as ...` as constant (#18496)
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
2020-04-05 14:13:34 -07:00
..
ESLintRuleExhaustiveDeps-test.js [eslint] Consider `useRef() as ...` as constant (#18496) 2020-04-05 14:13:34 -07:00
ESLintRulesOfHooks-test.js [eslint-plugin-react-hooks] Disallow hooks in class components (#18341) 2020-03-18 19:55:13 +00:00