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(lint): do not output warning about react on non-react projects #308

Conversation

arthurdenner
Copy link
Contributor

@arthurdenner arthurdenner commented Nov 6, 2019

Current behavior:
We get a warning about detecting React version using the lint command in non-react projects.

New behavior:
Using the shared settings and the same value used by eslint-plugin-react internally - it could be almost any value - we don't get the warning on non-react projects. Closes #279.

How to reproduce:

  • Use tsdx lint inside a react and a non-react project;
  • No warning is displayed on both cases.

Notes:
N/A.

@arthurdenner arthurdenner changed the title fix(eslint): do not output warning about react on non-react projects fix(lint): do not output warning about react on non-react projects Nov 6, 2019
@swyxio
Copy link
Collaborator

swyxio commented Nov 6, 2019

looks good enough. ready to merge?

@arthurdenner
Copy link
Contributor Author

@sw-yx, I believe so. 😃

@swyxio swyxio merged commit 6252b70 into jaredpalmer:master Nov 6, 2019
@swyxio
Copy link
Collaborator

swyxio commented Nov 6, 2019

thanks for the great pr! will go out with the next release

@arthurdenner arthurdenner deleted the fix/remove-warning-from-non-react-projects branch November 6, 2019 19:11
@pcowgill
Copy link

Would you consider shipping a tiny patch release with this change? Or have some bigger changes already made it into master that make that tricky? Not a big deal either way, of course - just curious. Thanks!

@swyxio
Copy link
Collaborator

swyxio commented Dec 4, 2019

its up to @jaredpalmer - he controls the releases

@EthianWong
Copy link

When to push this change to npm?i think i need it. @jaredpalmer

@swyxio
Copy link
Collaborator

swyxio commented Jan 24, 2020

thanks for the great PR! @all-contributors please add @arthurdenner for bugs, code

@allcontributors
Copy link
Contributor

@sw-yx

I've put up a pull request to add @arthurdenner! 🎉

@pcowgill
Copy link

Do you know if this change has been released yet? Thanks!

@arthurdenner
Copy link
Contributor Author

@pcowgill, yes, it was released on v0.12.0.

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.

Option to opt-out of eslint-plugin-react
4 participants