Skip to content

Commit f07b6f8

Browse files
author
Yeray Diaz Diaz
committed
Ignore vendor scripts in eslint.
1 parent ee9d442 commit f07b6f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Gulpfile.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ gulp.task("dist:images", () => {
157157

158158
gulp.task("dist:vendor", () => {
159159
return gulp.src(path.join(staticPrefix, "js", "vendor", "**", "*"))
160-
.pipe(gulp.dest(path.join(distPath, "js", "vendor")));
160+
.pipe(gulp.dest(path.join(distPath, "js", "vendor")));
161161
});
162162

163163

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ lint: .state/env/pyvenv.cfg
9090
$(BINDIR)/html_lint.py --printfilename --disable=optional_tag,names,protocol,extra_whitespace `find ./warehouse/templates -path ./warehouse/templates/legacy -prune -o -name '*.html' -print`
9191
ifneq ($(TRAVIS), false)
9292
# We're on Travis, so we can lint static files locally
93-
./node_modules/.bin/eslint 'warehouse/static/js/**' '**.js'
93+
./node_modules/.bin/eslint 'warehouse/static/js/**' '**.js' --ignore-pattern 'warehouse/static/js/vendor/**'
9494
./node_modules/.bin/sass-lint --verbose
9595
else
9696
# We're not on Travis, so we should lint static files inside the static container

0 commit comments

Comments
 (0)