So adding jsLint/Hint isn’t a too difficult,
- make a project and cd into it
- run
npm install
- run
npm install gulp-jshint jshint-stylish --save-dev
- edit
gulpfile.js
to includevar jshint = require('gulp-jshint');
- then add this gulp taks:
gulp.task('lint', function() {
return gulp.src('./www/js/*.js')
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
Note that jshint-stylish isn’t required, but make the output much more legible.
Now you can run gulp lint
and see where your errors are.