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 upbabel-eslint custom parser and polyfill #881
Comments
This comment has been minimized.
This comment has been minimized.
|
Sorry for the late reply! There is a bit of documentation on using Its also possible to avoid "variable not defined" errors in a couple ways: I'm going to close this issue but please feel free to respond! |
Flet
closed this
Jun 8, 2017
This comment has been minimized.
This comment has been minimized.
|
For that library in particular (
const fetch = require('isomorphic-fetch')
fetch('http://example.com')
require('isomorphic-fetch') /* global fetch */
fetch('http://example.com')More info: #821 |
This comment has been minimized.
This comment has been minimized.
karnavkumar
commented
Mar 21, 2018
•
|
use this |
tulsileathers commentedMay 10, 2017
I'm trying to get Standard to ignore warnings for undefined variables due to using a babel polyfill (isomorphic-fetch specifically). I understand that you can use a custom parser to use experimental language features. I'm just not sure how to configure this. Can anyone give me an example of how to setup babel-eslint and standard to do this? I've searched but haven't been able to find good info. Thanks for any help.