Skip to content

ES6 support - #191

Merged
jsoverson merged 5 commits into
es-analysis:masterfrom
devcrust:master
Jul 15, 2016
Merged

ES6 support#191
jsoverson merged 5 commits into
es-analysis:masterfrom
devcrust:master

Conversation

@devcrust

Copy link
Copy Markdown
Contributor

Plato now supports ES6!

For eslint, make sure the following configuration is part of the .eslintrc file:

"parser": "esprima", "parserOptions": { "ecmaVersion": 6 }

@jsoverson
jsoverson merged commit 51a289d into es-analysis:master Jul 15, 2016
@jsoverson

Copy link
Copy Markdown
Member

Thanks @devcrust, merged and published 1.6.0. If you're interested in maintaining further, please let me know.

@typhonrt

typhonrt commented Jul 15, 2016

Copy link
Copy Markdown
Contributor

Just curious here as escomplex itself doesn't support generating any data for ES6+ per se. IE no class or class method data is output for instance nor is there any support for any ES6+ code / directives / AST node processing.

I've been working on a major rewrite of escomplex over the past 2 months which is published under typhonjs-escomplex and related modules. I should be done with things being rather stable in about a week and there are numerous enhancements with this effort; uses Babylon for source processing supporting ES6+/ES7/edge code; has a modular architecture w/ separate AST processing modules; plugin system, etc. Unfortunately the current maintainer of escomplex was not forthcoming or amenable with joining forces / accepting my major rewrite.

@jsoverson

Copy link
Copy Markdown
Member

@typhonrt your rewrite would be preferred 100% and I would love your help getting it wired in. This update was accepted merely to make it not break. If you're interested in contributing and helping maintain plato then you would be very welcome.

@typhonrt

typhonrt commented Jul 15, 2016

Copy link
Copy Markdown
Contributor

Sounds good.. I'll open a follow up issue when I finish this effort. It's hard to say how involved I can be in directly upgrading plato itself as far time commitment is concerned, but can of course help answer questions in a timely manner for anyone taking on the plato upgrade.

I'll be working on an ESDoc plugin integrating typhonjs-escomplex, so a thorough example will be available to compare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants