cli.js
function showHelp(){
  var jshint_proc = fork(require.resolve('jshint/bin/jshint'), ['-h'], {silent: true});
  var ts = through(function write(chunk){
    this.queue(chunk.toString().replace(/(jshint)\b/g, 'jsxhint'));
  }, function end() {
    // This feels like a hack. There might be a better way to do this.
    this.queue('\nThe above options are native to JSHint, which JSXHint extends.\n');
    this.queue('\x1b[1m'); // bold
    this.queue('\nJSXHint Options:\n');
    this.queue('\x1b[0m');
    this.queue('      --jsx-only         Only transform files with the .jsx extension.\n' +
               '                         Will run somewhat faster.\n');
    this.queue('      --babel            Use babel (6to5) instead of react esprima.\n' +
               '                         Useful if you are using es6-module, etc. You must \n' +
               '                         install the module `babel` manually with npm.\n');
    this.queue('      --babel-experimental  Use babel with experimental support for ES7.\n' +
               '                            Useful if you are using es7-async, etc.\n');
    this.queue('      --harmony          Use react esprima with ES6 transformation support.\n' +
               '                         Useful if you are using both es6-class and react.\n');
    this.queue('      --es6module             Pass the --es6module flag to react tools.\n');
    this.queue('      --non-strict-es6module  Pass this flag to react tools.\n');
    this.queue('      --transform-errors STRING   Whether to fail on transform errors.\n' +
               '                                  Valid: always, jsx, never (default: jsx)');
  });
  jshint_proc.stderr.pipe(ts).pipe(process.stderr);
}
function showHelp(){
  var jshint_proc = fork(require.resolve('jshint/bin/jshint'), ['-h'], {silent: true});
  var ts = through(function write(chunk){
    this.queue(chunk.toString().replace(/(jshint)\b/g, 'jsxhint'));
  }, function end() {
    // This feels like a hack. There might be a better way to do this.
    this.queue('\nThe above options are native to JSHint, which JSXHint extends.\n');
    this.queue('\x1b[1m'); // bold
    this.queue('\nJSXHint Options:\n');
    this.queue('\x1b[0m');
    this.queue('      --jsx-only         Only transform files with the .jsx extension.\n' +
               '                         Will run somewhat faster.\n');
    this.queue('      --babel            Use babel (6to5) instead of react esprima.\n' +
               '                         Useful if you are using es6-module, etc. You must \n' +
               '                         install the module `babel` manually with npm.\n');
    this.queue('      --babel-experimental  Use babel with experimental support for ES7.\n' +
               '                            Useful if you are using es7-async, etc.\n');
    this.queue('      --harmony          Use react esprima with ES6 transformation support.\n' +
               '                         Useful if you are using both es6-class and react.\n');
    this.queue('      --es6module             Pass the --es6module flag to react tools.\n');
    this.queue('      --non-strict-es6module  Pass this flag to react tools.\n');
    this.queue('      --transform-errors STRING   Whether to fail on transform errors.\n' +
               '                                  Valid: always, jsx, never (default: jsx)');
  });
  jshint_proc.stderr.pipe(ts).pipe(process.stderr);
}
function showHelp ( ) { var jshint_proc = fork ( require . resolve ( 'jshint/bin/jshint' ) , [ '-h' ] , { silent : true } ) ; var ts = through ( function write ( chunk ) { this . queue ( chunk . toString ( ) . replace ( / (jshint)\b / g , 'jsxhint' ) ) ; } , function end ( ) { // This feels like a hack. There might be a better way to do this. this . queue ( '\nThe above options are native to JSHint, which JSXHint extends.\n' ) ; this . queue ( '\x1b[1m' ) ; // bold this . queue ( '\nJSXHint Options:\n' ) ; this . queue ( '\x1b[0m' ) ; this . queue ( '      --jsx-only         Only transform files with the .jsx extension.\n' + '                         Will run somewhat faster.\n' ) ; this . queue ( '      --babel            Use babel (6to5) instead of react esprima.\n' + '                         Useful if you are using es6-module, etc. You must \n' + '                         install the module `babel` manually with npm.\n' ) ; this . queue ( '      --babel-experimental  Use babel with experimental support for ES7.\n' + '                            Useful if you are using es7-async, etc.\n' ) ; this . queue ( '      --harmony          Use react esprima with ES6 transformation support.\n' + '                         Useful if you are using both es6-class and react.\n' ) ; this . queue ( '      --es6module             Pass the --es6module flag to react tools.\n' ) ; this . queue ( '      --non-strict-es6module  Pass this flag to react tools.\n' ) ; this . queue ( '      --transform-errors STRING   Whether to fail on transform errors.\n' + '                                  Valid: always, jsx, never (default: jsx)' ) ; } ) ; jshint_proc . stderr . pipe ( ts ) . pipe ( process . stderr ) ; }
Intercept -h to show jshint help.
Intercept - h to show jshint help .