-
-
Notifications
You must be signed in to change notification settings - Fork 255
Create espree plugin #651
Comments
Hey @charlike! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
@charlike no it's a good idea, had a similar thought earlier https://github.com/babel/notes/blob/23a33a109cc230119f7abd1348a0e8c4bed442d3/2017-06/june-21.md#babel-eslint about making an "eslint" plugin but espree works too since it would be the same thing. Yeah basically if we integrate that functionality in babylon itself we don't need babel-eslint to do that much stuff. Not sure what you mean about the full support/config of babylon though? and babylon does allow ranges as an option https://github.com/babel/babylon#options. cc @not-an-aardvark @kaicataldo on thoughts? |
I'm not talking about making eslint plugin. I'm talking about moving some babel-eslint code here as native
I just mean that babel-eslint has too much hardcoded things and some things may not work so well like it would if we just has |
@charlike that is exactly what @hzoo is proposing :)
He originally proposed an |
What? 😆 Sorry it's sounds a bit strange to me. Of course it is possible, but then it won't feel as good as defining it through ESLint's |
@charlike I think you are confused? Brian is saying I proposed the exact same thing you did, I just named it "eslint" instead of "espree" |
Doh, probably, i'm a bit tired 🤣 just realised that after rereading it. |
Thanks for the ping. In theory it sounds like it would nice to have a way of making babylon produce ESTree, although I think |
@not-an-aardvark In theory we should be able to remove everything in https://github.com/babel/babel-eslint/tree/master/babylon-to-espree, the scope stuff is in https://github.com/babel/babel-eslint/blob/master/index.js (babylon already produces ESTree via the estree plugin) babel/babel-eslint#489 |
it's Babylon's |
I meant ESTree. I hadn't realized that plugin already exists. |
I guess this is already solved, if there are problems with the estree plugin we are happy to accept issues and PRs. |
@danez this is for espree not |
@hzoo yup. Yea, it worth. So please open, i can get something done when get time. |
Hey! 👋
I'm just digging around
babel-eslint
,babylon
andeslint
. Trying to set up some config foreslint
. I always wonder why evenbabel-eslint
exist. Okey, there are reasons, but behind the scenes most of it's code base is thatbabylon-to-espree
, so today i'm thinking why not just include it here? So then we can freely add ESLintparser
option tobabylon
, e.g."parser": "babylon"
.Currently there are three problems: 1)
babel-eslint
has some bugs and don't have "full" support and configuration of thebabylon
, 2)eslint
can't usebabylon
only because ranges (which thing is exactly the idea behindbabylon-to-espree
in thebabel-eslint
), 3) ifeslint
usebabel-eslint
it don't get all of the power ofbabylon
. Or okey, it should, but there are some problems, which i don't want to report, because it may be better to do the effort to PR such plugin.Do you want PRs here and there for such thing?
Sorry if something isn't clear, i'm a bit tired. ;]
The text was updated successfully, but these errors were encountered: