Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'yarn lint' output on cleanly cloned repos #2228

Closed
wants to merge 2 commits into from

Conversation

DavidRieman
Copy link
Contributor

This includes two small commits:

First
Git ignore local .idea folders created by IDEA-based IDEs like WebStorm opening the folder as a project.

Second
Fix 'yarn lint' issue on clean repo clone:

58:6  warning  React Hook useLayoutEffect has a missing dependency: 'targetListeners'.
   Either include it or remove the dependency array  react-hooks/exhaustive-deps.

Options considered would be to disable the linter on that line (as it should have no impact being a wrapped useRef) or to just add it to silence it. Took the latter approach as that way is consistent with the precedent set by useResponderEvents\index.js.

Sorry I bucketed these two fixes together. I will split the PRs if you like.

58:6  warning  React Hook useLayoutEffect has a missing dependency: 'targetListeners'. Either include it or remove the dependency array  react-hooks/exhaustive-deps.

Options would be to disable the linter on that line (as it should have no impact being a wrapped useRef) or to just add it to silence it.  Took the latter approach as that way is consistent with the precedent set by `useResponderEvents\index.js`.
@DavidRieman
Copy link
Contributor Author

Closing to replace with new, split PRs. #2237 and #2238

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant