Example:

```js
        function Example(props) {
          useEffect(() => {
            let topHeight = 0;
            topHeight = props.upperViewHeight;
          }, [props.upperViewHeight]);
        }
```

This is **not** supposed to violate because `props.upperViewHeight` is in the deps.
only.push(t);
    }
  });
  const predicate = t => {
    if (only.length > 0) {
      return only.indexOf(t) !== -1;
    }
    if (skipped.length > 0) {
      return skipped.indexOf(t) === -1;
    }
    return true;
  };
  tests.valid = tests.valid.filter(predicate);
  tests.invalid = tests.invalid.filter(predicate);
  testsTypescript.valid = testsTypescript.valid.filter(predicate);
  testsTypescript.invalid = testsTypescript.invalid.filter(predicate);
}
const parserOptions = {
  ecmaVersion: 6,
  sourceType: 'module',
};
new ESLintTester({
  parser: require.resolve('babel-eslint'),
  parserOptions,
}).run('react-hooks', ReactHooksESLintRule, tests);
new ESLintTester({
  parser: require.resolve('@typescript-eslint/parser'),
  parserOptions,
}).run('react-hooks', ReactHooksESLintRule, testsTypescript);