Skip to content

Commit

Permalink
Yarn test fails due to flow error
Browse files Browse the repository at this point in the history
Going through the guide and I got a flow error running `yarn test`. See:
 verekia#221

The solution is to add:

```
[ignore]
.*/node_modules/eslint-plugin-jsx-a11y/*
```

I propose to add this to the guide so others won't have this issue.
  • Loading branch information
watadarkstar authored Sep 5, 2017
1 parent 7271d32 commit 000ea20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tutorial/02-babel-es6-eslint-flow-jest-husky.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ I know this is a lot to take in, so take a minute to think about it. I'm still a
```flowconfig
[options]
suppress_comment= \\(.\\|\n\\)*\\flow-disable-next-line
[ignore]
.*/node_modules/eslint-plugin-jsx-a11y/*
```

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`:
Expand Down

0 comments on commit 000ea20

Please sign in to comment.