Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[Question] How to use with jest? #905
Comments
This comment has been minimized.
This comment has been minimized.
|
|
dcousens
added
the
question
label
Jun 1, 2017
This comment has been minimized.
This comment has been minimized.
|
@dcousens Hm, I still see error there? Do I miss something? |
This comment has been minimized.
This comment has been minimized.
|
Not sure, sorry. boo globals anyway. |
This comment has been minimized.
This comment has been minimized.
blgm
commented
Jun 3, 2017
|
Does the I've been using standard, jest and Atom; and |
This comment has been minimized.
This comment has been minimized.
|
@blgm Thanks |
dcousens
closed this
Jun 7, 2017
This comment has been minimized.
This comment has been minimized.
|
@katopz try a different editor, and if the problem persists with repro, we'll re-open the issue |
This comment has been minimized.
This comment has been minimized.
fullstackzach
commented
Mar 21, 2018
•
|
I found that this works, at the top of your test/spec file
This will exclude those global namespaces from standard linting |
This comment has been minimized.
This comment has been minimized.
|
Declaring eslint environments at the top of the file helps provide context to the globals that are used as well. |

katopz commentedJun 1, 2017
Usually I use
/* eslint-env jest */foreslinthow can I do this withstandard?Thanks