-
Notifications
You must be signed in to change notification settings - Fork 173
ES6+ linting #25
Comments
I have a similar issue whilst trying to use ES7 decorators. I managed to get it running on development by adding Having these in Any tips appreciated. |
Thanks for reporting. I'll add ES7 support to the next release, hopefully tomorrow.
Will report back here when decorator and static support is added. |
I'm all for supporting some esnext features, but I would recommend only enabling specific transforms that are popular instead of setting stage-x presets. There's some talk among the Babel contributors on removing stage-x presets in the next version anyways due to the danger of their use and difficulty maintaining. |
Agreed @jtmthf - presets like |
Moving this to reactql/kit#2 |
Decorators and static properties have been now added to the kit |
Thanks a million! Off topic, but is there an official way to upgrade an existing project created with the CLI? |
@hellojere - my pleasure. Upgrading-- unfortunately not. Please see my comment here for some more thoughts on upgrading. TL;DR- Since this is a starter kit rather than an imported framework, kit + custom code live side-by-side, making it tricky to upgrade without overwriting changes. The easiest way to upgrade is to create a new project, copy over |
I have a component which uses ES6+ features e.g.
myComponent extends React.Component { static propTypes = {
This throws a syntax error as expected because it is an ES6+ feature. In the past I have installed the relevant npm modules e.g. ("babel-preset-stage-0":) and altered the babel.rc file and it has been successful but even with these additions in this setup, i'm still getting syntax errors:
My babel.rc file looks like this
Package.json:
The text was updated successfully, but these errors were encountered: