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

eslint: Stop using react-native plugin. #3960

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

chrisbobbe
Copy link
Contributor

In abc0432, we disabled the only rule that remained enabled from
this plugin. So, remove the plugin. Leave the two existing
commented-out lines to enable other rules, which describe how we'd
like to potentially use them in the future. See:
#3901 (comment)


From #3901 (comment), where Greg said:

I've also dropped the new commit that removes the eslint react-native plugin, because I realized that it doesn't yet remove it from package.json and yarn.lock 🙂 -- only from the eslintrc. That can be a good quick followup.

@chrisbobbe chrisbobbe requested a review from gnprice March 9, 2020 22:12
@rk-for-zulip
Copy link
Contributor

If we're going to leave the two unused rules as comments, it probably makes sense to leave the react-native plugin inclusion in place as a comment as well.

That said, since we're looking at it – are there any rules under the list of supported rules that we would want?

@chrisbobbe
Copy link
Contributor Author

chrisbobbe commented Mar 10, 2020

Greg identified those two from the list, as the only ones we might want. I'll quote here, since GitHub's UI made the two comment links in my opening comment appear identical (and therefore easy to skip over the first one); they're links to two different comments on the same PR:

Greg says:

The next thing I notice here is that this means we're no longer using this ESLint plugin at all. :-) So should probably drop it entirely.

Looking back through the list of all its rules... I think the only two we actually want are the two commented out below this one. Maybe we'd want to keep these commented-out config lines, as a reminder for a possible future where we try to bring one or both of those rules into use. But in the meantime, it'll be good to make node_modules a bit smaller, and tools/test lint perhaps a bit faster.

Leaving the react-native plugin inclusion in place, but commented out, sounds good to me.

In abc0432, we disabled the only rule that remained enabled from
this plugin. So, remove the plugin. Leave the two existing
commented-out lines to enable other rules, which describe how we'd
like to potentially use them in the future. See:
  zulip#3901 (comment)
@chrisbobbe chrisbobbe force-pushed the register-loading-indicator branch from a1b3647 to 11290fd Compare March 12, 2020 19:27
@chrisbobbe
Copy link
Contributor Author

OK, I've re-added the react-native line and commented it out.

@rk-for-zulip rk-for-zulip merged commit b2934c3 into zulip:master Mar 12, 2020
@gnprice
Copy link
Member

gnprice commented Mar 13, 2020

Thanks both!

I've just pushed 88cafe4, too, to add a bit to the comments here.

@chrisbobbe chrisbobbe deleted the register-loading-indicator branch April 20, 2021 15:44
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