-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
don't check node_modules with flow #220
base: master
Are you sure you want to change the base?
Conversation
This does not work for me. Flow chokes on every import. |
@verekia can you elaborate? Does it choke after adding these ignore lines or was it choking before? I'm using $ grep flow-bin yarn.lock
flow-bin@^0.46.0:
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.46.0.tgz#06ad7fe19dddb1042264438064a2a32fee12b872" |
I used 0.46.0 as well for the test. |
Of course I did. I made the PR because the code as it is wasn't working. Try using the walkthrough code.
Can you explain what you mean by
I'm trying to figure out why it doesn't work for you. I'm confused how this didn't blow up in the first place without the |
Okay I'll try your branch a bit later, but the errors I am getting when running flow on the final boilerplate of the tutorial are 45 messages like this one:
|
Same errors in the walkthrough starting chapter 03. |
Originally I only tried in chapter 02. I can confirm that it breaks the other chapters. I'll try to figure out why and how to prevent it. If you use the following {
"name": "your-project",
"version": "1.0.0",
"license": "MIT",
"browserslist": ["> 1%"],
"scripts": {
"start": "babel-node src",
"lint": "eslint src && flow"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^7.2.3",
"babel-preset-env": "^1.5.1",
"babel-preset-flow": "^6.23.0",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^15.0.1",
"eslint-plugin-compat": "^1.0.3",
"eslint-plugin-flowtype": "^2.33.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^5.0.1",
"eslint-plugin-react": "^7.0.1",
"flow-bin": "^0.47.0"
}
} |
Written to fix this annoying issue. We probably shouldn't be flow checking our libraries, anyway.
Corresponding walkthrough PR