Say, I have a React component like this:
var Wizard = React.createClass({
planAllowsConfigType: function(configType) {
return true;
},
render: function()
{
// Note type in planAlowsConfigType
var output = this.planAlowsConfigType() ? "Yup, you're good." : "No, sorry!";
return <div>
{output}
</div>;
}
});
Is there a JavaScript static analysis tool that can catch that kind of typo (this.planAlowsConfigType
) that I can run as part of my build?
Update: WebStorm is able to catch some of these but I'm not sure if it's using something proprietary.