Questions tagged [gulp-jshint]
9 questions
4
votes
1 answer
How to get gulp-jshint to ignore folders
I have the following folder structure within a solution that I have inherited
.\gulp.config.js
.\gulpfile.js
.\.jscsrc
.\.jshintrc
.\default.js
.\Resources\js\main.js
.\Resources\js\modules\ various user created js files
.\Resources\js\vendor\ …

Darren Guy
- 1,123
- 2
- 13
- 39
1
vote
1 answer
Linting All JS files in Project Package ::JSHINT
I am using the gulp task runner. For the static code analysis I am trying to use JsHint. The issue here is that I am able to run only one file at a time.
npm installation has added "gulp-jshint": "~1.11.0", in devDependensies in…

Pranay Nailwal
- 483
- 6
- 13
1
vote
2 answers
Stop gulp pipeline from executing when jshint fails
I am using gulp to run a developer web server and I want the following tasks to happen when a change occurs to a javascript file:
Lint javascript
if there are no errors, copy files to .tmp/
reload webpage
I've seen in other examples to use…

Kevin Desmond
- 11
- 1
1
vote
1 answer
JSHint W030 message in javascript is strange
I used this answer https://stackoverflow.com/a/5224638/7346441 to check if an external website is either online or not. And it works just fine.
But when I run JShint I get the W030 message on line 5 and 8:
function ifServerOnline(ifOnline,…

user14947
- 11
- 3
0
votes
1 answer
gulp-jshint task is taking over 5 minutes to complete
I'm working with gulp and am fairly new, my gulp jshint task is as follow:
gulp.task('jshint', ()=>{
return gulp.src([`${root}/**/*.js`])
.pipe(jshint('.jshintrc'))
.pipe(jshint.reporter('jshint-stylish'))
…

reyskywalker
- 41
- 4
0
votes
0 answers
What all jshint default rules are being applied if not configured with .jshintrc file
I have not configured any external .jshintrc file in my application or defined in package.json. However there are some rules being checked by default in jshint. How can I get the list of those rules? I'm using "jshint": "^2.9.4", "gulp-jshint":…

nim007
- 2,958
- 3
- 16
- 28
0
votes
2 answers
gulp stops server on error even with jshint included in gulpfile.js
I don't know why the server still stops whenever there's an error in my js files even though I have jshint in my gulpfile. I installed jshint and included it in my project because it reports errors in js files, but it's still failing. How can I fix…

jst16
- 84
- 9
0
votes
1 answer
esprima.js/gulp-strip-debug interfering with gulp-jshint task by reporting unhelpful errors when stripping debugger statements
This is something that just started happening yesterday, and it's causing me a big headache.
As part of my build for arcade.ly I have a check-scripts task that strips debugging code and runs jshint over all my JavaScript:
gulp.task('check-scripts',…

Bart Read
- 2,717
- 3
- 22
- 32
-1
votes
1 answer
Unexpected token ILLEGAL with @inject
I'm using gulp-jshint and receiving this message with a javascript file. The file is a simple service class in my Aurelia app. Here is the code:
import {inject} from 'aurelia-framework';
import {MyService} from './app/service/MyService';
/*…

squillman
- 13,363
- 3
- 41
- 60