My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Using eslint for browser side code

Emmanuel's photo
Emmanuel
·Jun 2, 2018

I just tried using eslint while writing front-end javascript. For some reason, I keep getting error flags on things that aren't really there. Eg, when I use document.getElementById, I get a missing semi colon error, right in the middle of document.getElementById. Is there something I'm missing as far as properly configuring eslint for client side code? I've even added "browser": true to the env of the eslint config file.