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

don't check node_modules with flow #220

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion tutorial/02-babel-es6-eslint-flow-jest-husky.md
Expand Up @@ -243,11 +243,15 @@ I know this is a lot to take in, so take a minute to think about it. I'm still a
- Create a `.flowconfig` file at the root of your project containing:

```flowconfig
[ignore]
<PROJECT_ROOT>/node_modules/
[options]
suppress_comment= \\(.\\|\n\\)*\\flow-disable-next-line
```

This is a little utility that we set up to make Flow ignore any warning detected on the next line. You would use it like this, similarly to `eslint-disable`:
The first two lines tell `flow` not to check the libraries you've downloaded in node_modules. Otherwise, `flow` might fail on code you didn't even write!

The `suppress_comment` option is a little utility that we set up to make Flow ignore any warning detected on the next line. You would use it like this, similarly to `eslint-disable`:

```js
// flow-disable-next-line
Expand Down