Giter Club home page Giter Club logo

Comments (6)

kfiil avatar kfiil commented on July 19, 2024

Hmm seems like the harmony:true setting are not doing the trick regarding ES6

from grunt-jsxhint.

Munter avatar Munter commented on July 19, 2024

react-tools do not have a full ES6 implementation, so you won't be able to use all of the new stuff. I really wanted to start using const and let, but couldn't. Yet...

from grunt-jsxhint.

kfiil avatar kfiil commented on July 19, 2024

But it will let something go, I have just have success with the es6module flag:
compiled = react.transform(code, {es6module: true});
Could be nice to be able to pass options to react tools :)

from grunt-jsxhint.

Munter avatar Munter commented on July 19, 2024

I'm using a lot of es6 functions and haven't set up anything specific for grunt-jsxhint. It just works out of the box. Are you setting "esnext": true in your jshint config?

from grunt-jsxhint.

kfiil avatar kfiil commented on July 19, 2024

I have "esnext": true but get this error:
Illegal import declaration Use --force to continue.
if i do not have {es6module: true}

from grunt-jsxhint.

tillarnold avatar tillarnold commented on July 19, 2024

I guess this is not a problem any more since we now use babel.

from grunt-jsxhint.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.