src/scripts/lintScripts.js
function lintScripts(conf, undertaker) {

  const jsSrc = path.join(conf.themeConfig.root, conf.themeConfig.js.src, '**', '*.js');

  // Lint theme scripts with ESLint. This won't touch any TypeScript files.
  return undertaker.src(jsSrc)
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(gulpIf(conf.productionMode, eslint.failAfterError()));

}
function lintScripts(conf, undertaker) {

  const jsSrc = path.join(conf.themeConfig.root, conf.themeConfig.js.src, '**', '*.js');

  // Lint theme scripts with ESLint. This won't touch any TypeScript files.
  return undertaker.src(jsSrc)
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(gulpIf(conf.productionMode, eslint.failAfterError()));

}
function lintScripts ( conf , undertaker ) { const jsSrc = path . join ( conf . themeConfig . root , conf . themeConfig . js . src , '**' , '*.js' ) ; // Lint theme scripts with ESLint. This won't touch any TypeScript files. return undertaker . src ( jsSrc ) . pipe ( eslint ( ) ) . pipe ( eslint . format ( ) ) . pipe ( gulpIf ( conf . productionMode , eslint . failAfterError ( ) ) ) ; }
Lint project scripts.

@param {ConfigParser} conf A configuration parser object.
@param {Undertaker} undertaker An Undertaker instance.

@returns {Stream} A stream of files.
Lint project scripts .