Saturday 15 March 2014

javascript - Getting Facebook's react.js library JSX syntax to play nicely with jslint? -


I'm playing with the Facebook Library. I am trying to use their JSX syntax which describes how to create a view in the following manner.

  / ** @ jsx response. DOM * / var HelloMessage = React.createClass ({rendere: function () {Return 
('Hello' + this.props.name} & lt; / div & gt ;;}}); React.renderComponent (& lt; HelloMessage name = "John" />, mountNode); JSLint clearly does not like it ("An identifier is expected and instead of '& lt;';" - Javascript syntax error is seen), how can I get this in my .jshintrc file? ?

(Update: This post is from 2013 and now obsolete)

I use JHHIT + JSX

It should not be required to be a craftsman of JSHint, there should be a way to tell JSHint to disable all warnings for the block of code. Unfortunately, only all warnings, there is no such way to disable a specific set of warnings, so I can finish uploading a bridge request or changing the linters to add it. Update:.

As you noted, workflow notes that Facebook and Instagram are used to lint outside the IDE from the command line.

Your second option is to remove all your JSX templates automatically, and make them the scope of the radius instead of the current within the scope of an underlying latitude. We tried it out and did not like the amount of boilerplate.

(I'm not affiliated with the feedback team)

No comments:

Post a Comment