From a224711dce6b2d0e7bd4e87139ef18be04cb1891 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 8 Apr 2016 16:37:18 -0700 Subject: [PATCH] [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 --- .jshintrc | 22 ++++++++++++++++++++++ gulpfile.js | 26 ++------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 .jshintrc diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000000..df3f02a1ff --- /dev/null +++ b/.jshintrc @@ -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" +} diff --git a/gulpfile.js b/gulpfile.js index 662574cea5..7d7fb8a8e7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -58,28 +58,6 @@ var gulp = require('gulp'), mainConfigFile: paths.main, 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: { configFile: path.resolve(__dirname, 'karma.conf.js'), singleRun: true @@ -128,9 +106,9 @@ gulp.task('lint', function () { return "!" + glob; }), scriptLint = gulp.src(paths.scripts.concat(nonspecs)) - .pipe(jshint(options.jshint)), + .pipe(jshint()), specLint = gulp.src(paths.specs) - .pipe(jshint(_.extend({ jasmine: true }, options.jshint))); + .pipe(jshint({ jasmine: true })); return merge(scriptLint, specLint) .pipe(jshint.reporter('default'))