-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Output a warning if React version is missing in settings #1857
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this seems great.
lib/util/log.js
Outdated
*/ | ||
function log(message) { | ||
if (!/\=-(f|-format)=/.test(process.argv.join('='))) { | ||
/* eslint-disable no-console */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we can use // eslint-disable-next-line no-console
here
1ce58e6
to
8738e59
Compare
Hello. I've got a little problem with this PR to be frank since I've got it. Apparently this PR was done because of this #1789 which is in a way really cool. However, I'm in the opposite situation and I try to keep react always updated (or at least often). With this PR, it forces me to keep my The question is so, is it possible in fact to react the version of the react installed via |
Another idea is to add "latest" as react version. :D |
@kud i could see adding a separate option for "detect" (using the "version" as a fallback), which did |
(Note that it'd have to use |
I think I got the "detect" option to work. I found something I didn't expect though: when extending airbnb's config (as opposed to the recommended config from the plugin), there is a version there in |
Yes, absolutely it's intended. |
Oh. Is this just the version used at Airbnb? |
Yes, that is true. However, with that behavior, the airbnb config would probably remove that setting. With "detect", it'd probably use that, though. |
Resolves #1789
This message will appear when running some of the tests. Not sure if that should be avoided.