aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2018-04-03 06:01:00 +0800
committerGitHub <noreply@github.com>2018-04-03 06:01:00 +0800
commit331b62a6a2450aa5be6881877f5312a70ea92e63 (patch)
tree702135bb4dfe8270ba96e2e780730c38c44df579 /gulpfile.js
parentfd30fabfbd7707adf2e4bc3606362c1687aeed9a (diff)
parent9867bec17e1b9ca270bb265ee5042c5796e54dfb (diff)
downloadtangerine-wallet-browser-331b62a6a2450aa5be6881877f5312a70ea92e63.tar
tangerine-wallet-browser-331b62a6a2450aa5be6881877f5312a70ea92e63.tar.gz
tangerine-wallet-browser-331b62a6a2450aa5be6881877f5312a70ea92e63.tar.bz2
tangerine-wallet-browser-331b62a6a2450aa5be6881877f5312a70ea92e63.tar.lz
tangerine-wallet-browser-331b62a6a2450aa5be6881877f5312a70ea92e63.tar.xz
tangerine-wallet-browser-331b62a6a2450aa5be6881877f5312a70ea92e63.tar.zst
tangerine-wallet-browser-331b62a6a2450aa5be6881877f5312a70ea92e63.zip
Merge pull request #3829 from MetaMask/locales-lint
Lint locale json
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 1eb0a974b..fd9ab6249 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -207,9 +207,11 @@ gulp.task('dev:copy',
// lint js
+const lintTargets = ['app/**/*.json', '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']
+
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).
@@ -220,7 +222,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())