diff options
author | kumavis <aaron@kumavis.me> | 2018-04-03 07:28:33 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-04-03 07:28:33 +0800 |
commit | 655593ea62b04a47cde18b785d1a88d0d0d0f726 (patch) | |
tree | 37cdbef5ef0f042c1ce3713e3b11efdec3a315b8 /gulpfile.js | |
parent | bd6f5547667bdae00e8990551f3a0ea39ab8d971 (diff) | |
parent | c14ec4191741c444dcf5b7c3e177c17a10374c16 (diff) | |
download | dexon-wallet-655593ea62b04a47cde18b785d1a88d0d0d0f726.tar.gz dexon-wallet-655593ea62b04a47cde18b785d1a88d0d0d0f726.tar.zst dexon-wallet-655593ea62b04a47cde18b785d1a88d0d0d0f726.zip |
Merge branch 'master' of github.com:MetaMask/metamask-extension into build-perf
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js index 3a3725c0..b71ce070 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -213,9 +213,11 @@ gulp.task('dev:copy', // lint js +const lintTargets = ['app/**/*.json', 'app/**/*.js', '!app/scripts/vendor/**/*.js', 'ui/**/*.js', 'old-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'] + gulp.task('lint', function () { // Ignoring node_modules, dist/firefox, and docs folders: - return gulp.src(['app/**/*.js', '!app/scripts/vendor/**/*.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']) + return gulp.src(lintTargets) .pipe(eslint(fs.readFileSync(path.join(__dirname, '.eslintrc')))) // eslint.format() outputs the lint results to the console. // Alternatively use eslint.formatEach() (see Docs). @@ -226,7 +228,7 @@ gulp.task('lint', function () { }); 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']) + return gulp.src(lintTargets) .pipe(eslint(Object.assign(fs.readFileSync(path.join(__dirname, '.eslintrc')), {fix: true}))) .pipe(eslint.format()) .pipe(eslint.failAfterError()) |