I have the following folders and files:
js/
lib/
jQuery.js
compiled/
all.js
file1.js
file2.js
I want JSHint to lint only file1
and file2
(without having to specify the exact files) and for it not to lint the lib folder and compiled folder.
Can anyone shed any light on why my JSHint task below is linting all .js files and not ignoring the compiled
and lib
folders?
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'js/**/*.js',
'!js/compiled/**/*.js',
'!js/lib/**/*.js'
]
},