In the root of your ionic app, there is a gulpfile.js file. Open it in an editor and paste the following gulp task:
gulp.task('lint', function() {
return gulp.src(['./www/js/**/*.js'])
.pipe(jshint('.jshintrc'))
.pipe(jshint.reporter('jshint-stylish'))
.pipe(jshint...