gulp plugin, wrapper for jsxhint to transform jsx to js before run jshint.
Don't use gulp-jsxconvert anymore if you can switch to ESLint. For more detail: JSXHint
Gulp requires ~3.8.11
Please check out this Getting Started to install gulp if you haven't used gulp before. Then you may install this plugin with this command:
npm install gulp-jsxconvert --save-dev
Once the plugin has been installed, add a 'hint' task to your project's gulpfile.js.
var gulp = require('gulp');
var jsxconvert = require("gulp-jsxconvert");
var jshint = require('gulp-jshint');
gulp.task('hint', function() {
return gulp.src('./lib/*.js')
.pipe(jsxconvert())
.pipe(jshint())
.pipe(jshint.reporter('YOUR_REPORTER_HERE'));
});
This projected is licensed under the terms of the MIT license.