gulp-standard
gulp-standard copied to clipboard
Should files be autosaving when --fix mode is used?
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'
])
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'))
}