emgeee / gulp-standard

Standard linter for gulp
MIT License
31 stars 15 forks source link

Should files be autosaving when --fix mode is used? #42

Open flehoux opened 6 years ago

flehoux commented 6 years ago

When running this, the logs show that things should have been fixed, but files are not being saved.

const lintES6Files = function (files) {
  if (files.length === 0) return
  return gulp.src(files)
    .pipe(standardJs({fix: true}))
    .pipe(standardJs.reporter('default', {showRuleNames: true}))
}

lintES6Files([
    './states/*.es6',
    './states/**/*.es6'
  ])
shahoob commented 3 years ago
const lintES6Files = function (files) {
  if (files.length === 0) return
  return gulp.src(files)
    .pipe(standardJs({fix: true}))
    .pipe(standardJs.reporter('default', {showRuleNames: true}))
    .pipe(dest('./dist'))
}