This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-jshint-react --save-dev
This grunt plugin works exactly like grunt-contrib-jshint. In fact it's even using
grunt-contrib-jshint. The only difference to
grunt-contrib-jshint is that this plugin runs
This is a drop in replacement for
grunt-contrib-jshint. So you can just replace the
grunt-contrib-jshint dependency in your
babel to work. If you don't have
babel installed run
npm install babel --save-dev
Use exactly like
jshint://Everything like in grunt-contrib-jshint
By default, your jsx files need to have a
.react.js file extension. In order to parse other files, add the following into your jshint options object:
jshint:options:jshintrc: '.jshintrc'ignores:additionalSuffixes: '.js'
These suffixes are concatenated onto .jsx and .react.js.
grunt-jshint-react is lacking a feature or if you found bug (or a typo in the README) feel free to submit a pull request or file an issue.