mirror of
https://github.com/nasa/openmct.git
synced 2025-05-31 22:50:49 +00:00
[Build] Move lint config to gulpfile
This commit is contained in:
parent
f34ef8c4c8
commit
43176cfbb8
22
.jshintrc
22
.jshintrc
@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"bitwise": true,
|
|
||||||
"curly": true,
|
|
||||||
"eqeqeq": true,
|
|
||||||
"freeze": true,
|
|
||||||
"funcscope": true,
|
|
||||||
"futurehostile": true,
|
|
||||||
"latedef": true,
|
|
||||||
"noarg": true,
|
|
||||||
"nocomma": true,
|
|
||||||
"nonbsp": true,
|
|
||||||
"nonew": true,
|
|
||||||
"predef": [
|
|
||||||
"define",
|
|
||||||
"Blob",
|
|
||||||
"Float32Array",
|
|
||||||
"Promise"
|
|
||||||
],
|
|
||||||
"strict": "implied",
|
|
||||||
"undef": true,
|
|
||||||
"unused": true
|
|
||||||
}
|
|
24
gulpfile.js
24
gulpfile.js
@ -56,6 +56,28 @@ var gulp = require('gulp'),
|
|||||||
mainConfigFile: paths.main,
|
mainConfigFile: paths.main,
|
||||||
wrapShim: true
|
wrapShim: true
|
||||||
},
|
},
|
||||||
|
jshint: {
|
||||||
|
"bitwise": true,
|
||||||
|
"curly": true,
|
||||||
|
"eqeqeq": true,
|
||||||
|
"freeze": true,
|
||||||
|
"funcscope": true,
|
||||||
|
"futurehostile": true,
|
||||||
|
"latedef": true,
|
||||||
|
"noarg": true,
|
||||||
|
"nocomma": true,
|
||||||
|
"nonbsp": true,
|
||||||
|
"nonew": true,
|
||||||
|
"predef": [
|
||||||
|
"define",
|
||||||
|
"Blob",
|
||||||
|
"Float32Array",
|
||||||
|
"Promise"
|
||||||
|
],
|
||||||
|
"strict": "implied",
|
||||||
|
"undef": true,
|
||||||
|
"unused": true
|
||||||
|
},
|
||||||
karma: {
|
karma: {
|
||||||
configFile: path.resolve(__dirname, 'karma.conf.js'),
|
configFile: path.resolve(__dirname, 'karma.conf.js'),
|
||||||
singleRun: true
|
singleRun: true
|
||||||
@ -103,7 +125,7 @@ gulp.task('lint', function () {
|
|||||||
return "!" + glob;
|
return "!" + glob;
|
||||||
});
|
});
|
||||||
return gulp.src(paths.scripts.concat(nonspecs))
|
return gulp.src(paths.scripts.concat(nonspecs))
|
||||||
.pipe(jshint())
|
.pipe(jshint(options.jshint))
|
||||||
.pipe(jshint.reporter('default'))
|
.pipe(jshint.reporter('default'))
|
||||||
.pipe(jshint.reporter('fail'));
|
.pipe(jshint.reporter('fail'));
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user