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

Add global flow types to eslint globals #5585

Closed
wants to merge 2 commits into from

Conversation

janicduplessis
Copy link
Contributor

Added a subset of the global flow types from the fbjs eslint config to remove the no-undef errors for flow types as well as a few missing browser globals that were used in the codebase.

I also added a .eslintrc file to Examples to allow using alert there without warnings.

Added a subset of the global flow types from the fbjs eslint config to remove the no-undef warnings for flow types
@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @vjeux, @spicyj and @sahrens to be potential reviewers.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Jan 27, 2016
@janicduplessis
Copy link
Contributor Author

cc @satya164

@vjeux
Copy link
Contributor

vjeux commented Jan 27, 2016

Nice thanks!

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/965937440120672/int_phab to review.

@@ -0,0 +1,5 @@
{
"rules": {
"no-alert": 0
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, you can do

/* eslint no-alert: 0 */

at the top of the file in order to disable it for a specific file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vjeux Yes, I figured we could allow it for every file in examples instead of adding the rule per file since it was already used in a bunch of different files and it's pretty common to want to show a simple alert in examples.

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense

@ghost ghost closed this in af2f407 Jan 27, 2016
doostin pushed a commit to doostin/react-native that referenced this pull request Feb 1, 2016
Summary:
Added a subset of the global flow types from the fbjs eslint config to remove the no-undef errors for flow types as well as a few missing browser globals that were used in the codebase.

I also added a .eslintrc file to Examples to allow using alert there without warnings.
Closes facebook#5585

Reviewed By: svcscm

Differential Revision: D2872016

Pulled By: vjeux

fb-gh-sync-id: f9b1b511289425393074b7237049dec38ea407b6
@janicduplessis janicduplessis deleted the eslint branch February 7, 2016 06:52
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants