Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAny way to use babel-eslint here? #106
Comments
ColCh
changed the title
Any way to utilize babel-eslint here?
Any way to use babel-eslint here?
Apr 7, 2015
This comment has been minimized.
This comment has been minimized.
|
There's no way to use a custom parser with |
feross
closed this
Apr 8, 2015
This comment has been minimized.
This comment has been minimized.
bendrucker
commented
Apr 17, 2015
|
I'm interested in this as well |
This comment has been minimized.
This comment has been minimized.
julien-f
commented
Apr 27, 2015
|
I am currently using some ES7 features (such as It is annoying because these parse failures ( I am not sure what would be the best way to tackle this issue without breaking the various editor plugins that integrate standard. |
This comment has been minimized.
This comment has been minimized.
|
@julien-f If Espree can't parse a token it will break, there's little that can be done about that. I think the solution is to make sure Espree can parse all tokens; you could either make it parse the build output (yuck) or help Espree forward by creating an issue and / or a PR to add edit: derp, derp or option 3 is to find a way to add what OP suggested to standard. Not sure if that's necessarily the correct solution, but it probably fixes your issues so it's valid. |
This comment has been minimized.
This comment has been minimized.
julien-f
commented
May 12, 2015
feross
reopened this
May 13, 2015
This comment has been minimized.
This comment has been minimized.
|
Re-opening for discussion. |
feross
added
the
feature request
label
May 13, 2015
This comment has been minimized.
This comment has been minimized.
julien-f
commented
May 13, 2015
|
I created babel-standard based on eslint-standard-config and babel-eslint. @feross I added you as a collaborator (and @sebmck, Babel creator), feel free to play with it. |
This comment has been minimized.
This comment has been minimized.
|
Is this line the only thing you changed? |
This comment has been minimized.
This comment has been minimized.
sebmck
commented
May 14, 2015
|
@julien-f Why didn't you just fork this repo so history was retained? Unsure how (or if) you're planning on keeping it in sync. |
This comment has been minimized.
This comment has been minimized.
bendrucker
commented
May 14, 2015
|
I use a fork (https://github.com/bendrucker/standard/tree/babel) and it's indeed a one liner just to set the |
This comment has been minimized.
This comment has been minimized.
julien-f
commented
May 14, 2015
This comment has been minimized.
This comment has been minimized.
|
@bendrucker may be you want to test npm scopes with your fork? |
This comment has been minimized.
This comment has been minimized.
bendrucker
commented
May 14, 2015
|
@ColCh Yeah I should have, but at this point you can just use Julien's. I think it's reasonable to treat parsers as the one case where eslint config can be provided without defeating the purpose of standard. There's really only two (esprima-fb and babel-eslint). Babel's targeting future ES features so this is an ongoing concern. This is also blocked by eslint as far as I can tell. Parsers are read from the config file and there's no way to provide them via |
This comment has been minimized.
This comment has been minimized.
RnbWd
commented
May 16, 2015
|
I got it working today with 'eslint-config-standard' - thank you for that!! |
This comment has been minimized.
This comment has been minimized.
jladuval
commented
May 28, 2015
|
What's the story around this. I too would love to be able to use async-await. Should I use babel-standard? |
This comment has been minimized.
This comment has been minimized.
julien-f
commented
May 29, 2015
This comment has been minimized.
This comment has been minimized.
|
The latest version of standard (3.12.0) now supports custom JS parsers! To use a custom parser, install it from npm (example: {
"standard": {
"parser": "babel-eslint"
}
}That's it. Enjoy! |
This comment has been minimized.
This comment has been minimized.
chris9753
commented
Dec 17, 2015
|
Using the latest version here with config and I still get unexpected token on '=>' |
This comment has been minimized.
This comment has been minimized.
vtambourine
commented
Mar 4, 2016
|
I am also experiencing troubles using custom linters in Atom's lint engine. Not sure if it is standard's problem or linter-js-standard's. |
ColCh commentedApr 7, 2015
Nice project! How we can use babel-eslint?