Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Start linting all javascript.

Peter van der Does6ae77e736c1c
diff --git a/.eslintignore b/.eslintignore
index e69de29bb..eb02d7dd5 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -0,0 +1,8 @@
+# Ignore the following files and directories
+/docs/
+/extras/
+/gulpfile.js
+/node_modules/
+/wger/core/static/bower_components/
+/wger/core/static/js/Sortable.min.js
+/wger/node_modules/
diff --git a/gulpfile.js b/gulpfile.js
index 4c7a00a71..7948982a4 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -6,7 +6,7 @@ gulp.task('lint', function () {
// So, it's best to have gulp ignore the directory as well.
// Also, Be sure to return the stream from the task;
// Otherwise, the task may end before the stream has finished.
- return gulp.src(['wger/nutrition/static/js/nutrition.js','!node_modules/**'])
+ return gulp.src(['**/*.js'])
// eslint() attaches the lint output to the "eslint" property
// of the file object so it can be used by other modules.
.pipe(eslint())