rdio / jsfmt

For formatting, searching, and rewriting JavaScript.
http://rdio.github.io/jsfmt/
Other
1.69k stars 71 forks source link

ES6 syntax #122

Open qmmr opened 10 years ago

qmmr commented 10 years ago

Hi, do you have plans to introduce ES6 syntax in the near future? Right now it's not possible to validate .js files that are using modules import, classes etc.

jimfleming commented 10 years ago

We're using esprima-harmony which supports some es6 features but not all.

I've heard there's a Facebook esprima fork with more es6 support that we can look at switching to. Ultimately we're limited by what the parser can do as far as es6 is concerned. 

schickling commented 9 years ago

:+1:

marbemac commented 9 years ago

+1 Would be great to be able to use this with ember apps.

lukescott commented 9 years ago

Even though jsfmt uses esprima-harmony, esformatter does not through it's rocambole dependency, which means that jsfmt still throws errors on ES6 syntax, such as class. Simply changing rocambole's esprima dependency works, but the code isn't formatted of course.

abdullin commented 9 years ago

I love using jsfmt, but it seems to miss the latest ES6 features :(

henryboldi commented 9 years ago

+1

akiellor commented 9 years ago

The latest released version has much better es6 support. Folks should try it out and see if it meets some needs.

mdarif commented 8 years ago

+1