question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

babel-eslint necessary when not using babel

See original GitHub issue

I’m using the latest NodeJS without Babel and the latest eslint, but when I remove the parser option from my eslintrc, which is set to babel-eslint and which I started using earlier when I was using babel, I get many parsing errors in my eslint output. Shouldn’t babel-eslint only be necessary when there’s no use of babel? At what point will eslint be able to handle official ES2017/8 code and I won’t need babel-eslint?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
not-an-aardvarkcommented, Oct 24, 2017

Closing because this is working as intended.

1reaction
ljharbcommented, Sep 30, 2017

Indeed, the default ecmaVersion shouldn’t be set to the latest, it should be set to the safest thing - which is ES5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The State of babel-eslint
While Babel enables the use of experimental syntax, ESLint core only supports syntax once it reaches Stage 4 and is finalized in the...
Read more >
babel/babel-eslint: A wrapper for Babel's parser used ... - GitHub
As of the v11.x.x release, babel-eslint now requires Babel as a peer dependency and expects a valid Babel configuration file to exist. This...
Read more >
@babel/eslint-parser - npm
@babel/eslint-parser is a parser that allows ESLint to run on source code that is transformed by Babel. Note: You only need to use...
Read more >
Updating babel-eslint to @babel/eslint-parser for React apps
As of the v11.x.x release, babel-eslint now requires Babel as a peer dependency and expects a valid Babel configuration file to exist. This ......
Read more >
babel-eslint | Yarn - Package Manager
You only need to use babel-eslint if you are using types (Flow) or experimental features not supported in ESLint itself yet. Otherwise try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found