mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 15:02:23 +00:00
[Build] Move JSHint config to .jshintrc
...to allow code editors etc to pick up on rules, per https://github.com/nasa/openmct/pull/724#issuecomment-193542314
This commit is contained in:
parent
c1ae68b565
commit
a224711dce
22
.jshintrc
Normal file
22
.jshintrc
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"bitwise": true,
|
||||||
|
"browser": true,
|
||||||
|
"curly": true,
|
||||||
|
"eqeqeq": true,
|
||||||
|
"forin": true,
|
||||||
|
"freeze": true,
|
||||||
|
"funcscope": true,
|
||||||
|
"futurehostile": true,
|
||||||
|
"latedef": true,
|
||||||
|
"noarg": true,
|
||||||
|
"nocomma": true,
|
||||||
|
"nonbsp": true,
|
||||||
|
"nonew": true,
|
||||||
|
"predef": [
|
||||||
|
"define",
|
||||||
|
"Promise"
|
||||||
|
],
|
||||||
|
"strict": "implied",
|
||||||
|
"undef": true,
|
||||||
|
"unused": "vars"
|
||||||
|
}
|
26
gulpfile.js
26
gulpfile.js
@ -58,28 +58,6 @@ var gulp = require('gulp'),
|
|||||||
mainConfigFile: paths.main,
|
mainConfigFile: paths.main,
|
||||||
wrapShim: true
|
wrapShim: true
|
||||||
},
|
},
|
||||||
jshint: {
|
|
||||||
"bitwise": true,
|
|
||||||
"browser": true,
|
|
||||||
"curly": true,
|
|
||||||
"eqeqeq": true,
|
|
||||||
"forin": true,
|
|
||||||
"freeze": true,
|
|
||||||
"funcscope": true,
|
|
||||||
"futurehostile": true,
|
|
||||||
"latedef": true,
|
|
||||||
"noarg": true,
|
|
||||||
"nocomma": true,
|
|
||||||
"nonbsp": true,
|
|
||||||
"nonew": true,
|
|
||||||
"predef": [
|
|
||||||
"define",
|
|
||||||
"Promise"
|
|
||||||
],
|
|
||||||
"strict": "implied",
|
|
||||||
"undef": true,
|
|
||||||
"unused": "vars"
|
|
||||||
},
|
|
||||||
karma: {
|
karma: {
|
||||||
configFile: path.resolve(__dirname, 'karma.conf.js'),
|
configFile: path.resolve(__dirname, 'karma.conf.js'),
|
||||||
singleRun: true
|
singleRun: true
|
||||||
@ -128,9 +106,9 @@ gulp.task('lint', function () {
|
|||||||
return "!" + glob;
|
return "!" + glob;
|
||||||
}),
|
}),
|
||||||
scriptLint = gulp.src(paths.scripts.concat(nonspecs))
|
scriptLint = gulp.src(paths.scripts.concat(nonspecs))
|
||||||
.pipe(jshint(options.jshint)),
|
.pipe(jshint()),
|
||||||
specLint = gulp.src(paths.specs)
|
specLint = gulp.src(paths.specs)
|
||||||
.pipe(jshint(_.extend({ jasmine: true }, options.jshint)));
|
.pipe(jshint({ jasmine: true }));
|
||||||
|
|
||||||
return merge(scriptLint, specLint)
|
return merge(scriptLint, specLint)
|
||||||
.pipe(jshint.reporter('default'))
|
.pipe(jshint.reporter('default'))
|
||||||
|
Loading…
Reference in New Issue
Block a user