aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 9253949c7..f01762c2a 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -161,6 +161,13 @@ gulp.task('lint', function () {
.pipe(eslint.failAfterError())
});
+gulp.task('lint:fix', function () {
+ return gulp.src(['app/**/*.js', 'ui/**/*.js', 'mascara/src/*.js', 'mascara/server/*.js', '!node_modules/**', '!dist/firefox/**', '!docs/**', '!app/scripts/chromereload.js', '!mascara/test/jquery-3.1.0.min.js'])
+ .pipe(eslint(Object.assign(fs.readFileSync(path.join(__dirname, '.eslintrc')), {fix: true})))
+ .pipe(eslint.format())
+ .pipe(eslint.failAfterError())
+});
+
/*
gulp.task('default', ['lint'], function () {
// This will only run if the lint task is successful...