aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-04-03 07:28:33 +0800
committerkumavis <aaron@kumavis.me>2018-04-03 07:28:33 +0800
commit655593ea62b04a47cde18b785d1a88d0d0d0f726 (patch)
tree37cdbef5ef0f042c1ce3713e3b11efdec3a315b8 /gulpfile.js
parentbd6f5547667bdae00e8990551f3a0ea39ab8d971 (diff)
parentc14ec4191741c444dcf5b7c3e177c17a10374c16 (diff)
downloadtangerine-wallet-browser-655593ea62b04a47cde18b785d1a88d0d0d0f726.tar
tangerine-wallet-browser-655593ea62b04a47cde18b785d1a88d0d0d0f726.tar.gz
tangerine-wallet-browser-655593ea62b04a47cde18b785d1a88d0d0d0f726.tar.bz2
tangerine-wallet-browser-655593ea62b04a47cde18b785d1a88d0d0d0f726.tar.lz
tangerine-wallet-browser-655593ea62b04a47cde18b785d1a88d0d0d0f726.tar.xz
tangerine-wallet-browser-655593ea62b04a47cde18b785d1a88d0d0d0f726.tar.zst
tangerine-wallet-browser-655593ea62b04a47cde18b785d1a88d0d0d0f726.zip
Merge branch 'master' of github.com:MetaMask/metamask-extension into build-perf
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 3a3725c0a..b71ce0703 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())