gulp-standard icon indicating copy to clipboard operation
gulp-standard copied to clipboard

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

Open flehoux opened this issue 5 years ago • 1 comments

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'
  ])

flehoux avatar Nov 01 '18 20:11 flehoux

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'))
}

shahoob avatar Nov 23 '20 23:11 shahoob