scripts/gulp/lint.js
function lintStyles() {
  // Pass all command line flags to Stylelint.
  const options = minimist( process.argv.slice( 2 ) );
  const willFix = options.fix || false;
  return gulp.src( [
    'packages/**/*.less',
    '!packages/cf-*/node_modules/**/*.less',
    '!packages/cf-grid/src-generated/*.less'
  ] )
    .pipe( gulpStylelint( {
      failAfterError: true,
      fix: willFix,
      reporters: [ { formatter: 'string', console: true } ]
    } ) )
    .pipe( gulp.dest( 'packages' ) );
}
function lintStyles() {
  // Pass all command line flags to Stylelint.
  const options = minimist( process.argv.slice( 2 ) );
  const willFix = options.fix || false;
  return gulp.src( [
    'packages/**/*.less',
    '!packages/cf-*/node_modules/**/*.less',
    '!packages/cf-grid/src-generated/*.less'
  ] )
    .pipe( gulpStylelint( {
      failAfterError: true,
      fix: willFix,
      reporters: [ { formatter: 'string', console: true } ]
    } ) )
    .pipe( gulp.dest( 'packages' ) );
}
function lintStyles ( ) { // Pass all command line flags to Stylelint. const options = minimist ( process . argv . slice ( 2 ) ) ; const willFix = options . fix || false ; return gulp . src ( [ 'packages/**/*.less' , '!packages/cf-*/node_modules/**/*.less' , '!packages/cf-grid/src-generated/*.less' ] ) . pipe ( gulpStylelint ( { failAfterError : true , fix : willFix , reporters : [ { formatter : 'string' , console : true } ] } ) ) . pipe ( gulp . dest ( 'packages' ) ) ; }
Lints the source LESS files for errors.
@returns {Object} An output stream from gulp.
Lints the source LESS files for errors .