diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-10-25 07:53:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-25 07:53:54 +0800 |
commit | 1767dceba44f6d173bf3cdb8436d117c7f29b834 (patch) | |
tree | e052bcc29f8b05c9ef7f175c5346b5ff28a1e75a /gulpfile.js | |
parent | ae56b865e8a4d3a6a82a97efeca34b8a592c985b (diff) | |
parent | 43b1cb9100e74ab32efe1a59b3320d0aeadedcdf (diff) | |
download | tangerine-wallet-browser-1767dceba44f6d173bf3cdb8436d117c7f29b834.tar tangerine-wallet-browser-1767dceba44f6d173bf3cdb8436d117c7f29b834.tar.gz tangerine-wallet-browser-1767dceba44f6d173bf3cdb8436d117c7f29b834.tar.bz2 tangerine-wallet-browser-1767dceba44f6d173bf3cdb8436d117c7f29b834.tar.lz tangerine-wallet-browser-1767dceba44f6d173bf3cdb8436d117c7f29b834.tar.xz tangerine-wallet-browser-1767dceba44f6d173bf3cdb8436d117c7f29b834.tar.zst tangerine-wallet-browser-1767dceba44f6d173bf3cdb8436d117c7f29b834.zip |
Merge pull request #2422 from watilde/fixes-lint
Fixes lint warnings
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 7 |
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... |