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 findDOMNode lint warning #5993

Merged
merged 1 commit into from
Apr 5, 2018
Merged

Fix findDOMNode lint warning #5993

merged 1 commit into from
Apr 5, 2018

Conversation

noisysocks
Copy link
Member

@noisysocks noisysocks commented Apr 5, 2018

See #4115 (comment).

  • Ignore the warning we get for using findDOMNode
  • Explain why we're using findDOMNode
  • Make this lint rule an error instead of a warning so that, in the future, CI will force us to explain why we're using findDOMNode

🐶

- Ignore the warning we get for using findDOMNode
- Explain why we're ignoring the warning
- Make this warning an error so that CI picks this up in the future
@noisysocks noisysocks added this to the 2.6 milestone Apr 5, 2018
@noisysocks noisysocks requested a review from aduth April 5, 2018 02:22
@noisysocks noisysocks merged commit 8a95e94 into master Apr 5, 2018
@noisysocks noisysocks deleted the fix/lint-warning branch April 5, 2018 05:32
@@ -114,7 +114,6 @@ module.exports = {
'react/jsx-key': 'error',
'react/jsx-tag-spacing': 'error',
'react/no-children-prop': 'off',
'react/no-find-dom-node': 'warn',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To the future casual observer, this is defined in the React recommended preset we extend as an error already. We were previously downgrading to warn:

https://github.com/yannickcr/eslint-plugin-react/blob/45fb147dbb02c570056c1f6f8b0b9c979e4eb6ac/index.js#L135

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.

3 participants