Repository: couchdb-fauxton Updated Branches: refs/heads/master 49267a412 -> 4730b1144
Gruntfile: use separate .jshintrc file Make Gruntfile more lightweight and move configuration for JSHint into it's own config file. PR: #398 PR-URL: https://github.com/apache/couchdb-fauxton/pull/398 Reviewed-By: garren smith <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/4730b114 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/4730b114 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/4730b114 Branch: refs/heads/master Commit: 4730b1144c59c9de7edb29b5eafe95e19edbcae2 Parents: 49267a4 Author: Robert Kowalski <[email protected]> Authored: Tue May 5 13:33:12 2015 +0200 Committer: Robert Kowalski <[email protected]> Committed: Wed May 6 17:32:20 2015 +0200 ---------------------------------------------------------------------- .jshintrc | 37 +++++++++++++++++++++++++++++++++++++ Gruntfile.js | 39 +-------------------------------------- 2 files changed, 38 insertions(+), 38 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/4730b114/.jshintrc ---------------------------------------------------------------------- diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..f999166 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,37 @@ +{ + "scripturl": true, + "evil": true, + "expr": true, + "undef": true, + "globals": { + "document": true, + "window": true, + "location": true, + "alert": true, + "console": true, + "clearInterval": true, + "setInterval": true, + "setTimeout": true, + "prompt": true, + "confirm": true, + + "jQuery": true, + "Backbone": true, + "$": true, + "_": true, + "require": true, + "module": true, + "sinon": true, + "it": true, + "describe": true, + "beforeEach": true, + "afterEach": true, + "before": true, + "after": true, + "define": true, + + "Spinner": true, + "prettyPrint": true + + } +} http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/4730b114/Gruntfile.js ---------------------------------------------------------------------- diff --git a/Gruntfile.js b/Gruntfile.js index 1b02c7d..b04993e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -164,47 +164,10 @@ module.exports = function (grunt) { } }, - // The jshint option for scripturl is set to lax, because the anchor - // override inside main.js needs to test for them so as to not accidentally - // route. Settings expr true so we can do `mightBeNullObject && mightBeNullObject.coolfunction()` jshint: { all: ['app/**/*.js', 'Gruntfile.js', "!app/**/assets/js/*.js", "!app/**/*.jsx"], options: { - scripturl: true, - evil: true, - expr: true, - undef: true, - globals: { - document: true, - window: true, - location: true, - alert: true, - console: true, - clearInterval: true, - setInterval: true, - setTimeout: true, - prompt: true, - confirm: true, - - jQuery: true, - Backbone: true, - $: true, - _: true, - require: true, - module: true, - sinon: true, - it: true, - describe: true, - beforeEach: true, - afterEach: true, - before: true, - after: true, - define: true, - - Spinner: true, - prettyPrint: true - - } + jshintrc: '.jshintrc' } },
