Created
April 14, 2015 00:12
-
-
Save danswater/37f9b0cc0d30a85ecb8f to your computer and use it in GitHub Desktop.
Linting JSX using gulp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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