Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 3
    This should be the accepted answer. Have helped me a ton!! Thanks Yulian! Commented Oct 17, 2018 at 14:34
  • 1
    @erwin it would be good if you mark this as the accepted answer, since the situation has changed from the time you accepted the original answer. Most users will want this answer. Commented Dec 1, 2018 at 20:33
  • 11
    If anybody is getting linting errors after doing the updates, make sure that "ecmaVersion": 8 is set in your .eslintrc.json as well. Commented Jan 14, 2019 at 16:18
  • @DeanStamler Thanks for the hint. I have tried to add this to packages.json, but I can't get it to work. github.com/eslint/eslint/issues/11976 Commented Jul 11, 2019 at 14:05
  • 1
    Unfortunately at this moment (January 2020) it's not working for me, anyone has a clue? Commented Jan 15, 2020 at 11:33