I am playing around with the Facebook's react.js library. I am trying to use their JSX syntax which describes creating a view in the following way.
/** @jsx React.DOM */
var HelloMessage = React.createClass({
render: function() {
return <div>{'Hello ' + this.props.name}</div>;
}
});
React.renderComponent(<HelloMessage name=John />, mountNode);
JSLint obviously does not like this (expected an identifier and instead saw ' <'; - JavaScript syntax error), so how do I get around this in my .jshintrc file?