Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

custom babylon parser support #514

Closed
willin opened this issue Aug 31, 2017 · 2 comments
Closed

custom babylon parser support #514

willin opened this issue Aug 31, 2017 · 2 comments

Comments

@willin
Copy link

willin commented Aug 31, 2017

.babelrc

{
  "parserOpts": {
    "parser": "custom-fork-of-babylon-on-npm-here"
  }
}

if i use a custom babylon parser in babel, is there a similar option that i can parse eslint too?

module.exports = {
  root: true,
  parser: 'babel-eslint',
  parseOptions: {
    // how to pass in "custom-fork-of-babylon-on-npm-here" 
  }
};
@hzoo
Copy link
Member

hzoo commented Aug 31, 2017

you would have to replace parser: babel-eslint with something else

@hzoo
Copy link
Member

hzoo commented Jan 11, 2019

This should work ^, and I guess you can read from babelrc now which might help (#711)

@hzoo hzoo closed this as completed Jan 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants