Skip to content

Instantly share code, notes, and snippets.

@danswater
Created April 14, 2015 00:12
Show Gist options
  • Save danswater/37f9b0cc0d30a85ecb8f to your computer and use it in GitHub Desktop.
Save danswater/37f9b0cc0d30a85ecb8f to your computer and use it in GitHub Desktop.
Linting JSX using gulp
return gulp
.src( sources )
.pipe( $.jshint( jshintrcFile ) )
.pipe( $.jshint( { 'linter' : require( 'jshint-jsx' ).JSXHINT } ) ) // you need to separetely install this module
.pipe( $.jshint.reporter( 'jshint-stylish', { 'verbose' : true } ) )
.pipe( $.jshint.reporter( 'fail' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment