From 9c6a18700b9867cd805a728b50c8d0ff682b67db Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Sun, 21 Sep 2014 17:12:21 -0400 Subject: [PATCH] Improved the jshint config a bit more --- .jshintrc | 6 ++++++ dist/js/select2.amd.full.js | 2 +- dist/js/select2.amd.js | 2 +- dist/js/select2.full.js | 2 +- dist/js/select2.js | 2 +- src/js/select2/data/ajax.js | 2 +- 6 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.jshintrc b/.jshintrc index 026666ad5f..b401f6280d 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,10 +1,16 @@ { "bitwise": true, + "camelcase": true, + "curly": true, + "es3": true, "eqnull": true, + "freeze": true, "globals": { "define": true }, "indent": 2, "maxlen": 80, + "noarg": true, + "nonew": true, "quotmark": "single" } diff --git a/dist/js/select2.amd.full.js b/dist/js/select2.amd.full.js index 211a52fb1b..702d3dc48d 100644 --- a/dist/js/select2.amd.full.js +++ b/dist/js/select2.amd.full.js @@ -666,7 +666,7 @@ define('select2/data/ajax',[ var self = this; var options = $.extend({ - type: 'GET', + type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') { diff --git a/dist/js/select2.amd.js b/dist/js/select2.amd.js index 211a52fb1b..702d3dc48d 100644 --- a/dist/js/select2.amd.js +++ b/dist/js/select2.amd.js @@ -666,7 +666,7 @@ define('select2/data/ajax',[ var self = this; var options = $.extend({ - type: 'GET', + type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') { diff --git a/dist/js/select2.full.js b/dist/js/select2.full.js index 107009367e..30c321fc7f 100644 --- a/dist/js/select2.full.js +++ b/dist/js/select2.full.js @@ -10203,7 +10203,7 @@ define('select2/data/ajax',[ var self = this; var options = $.extend({ - type: 'GET', + type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') { diff --git a/dist/js/select2.js b/dist/js/select2.js index 458f1c6f51..34d6e6a268 100644 --- a/dist/js/select2.js +++ b/dist/js/select2.js @@ -1094,7 +1094,7 @@ define('select2/data/ajax',[ var self = this; var options = $.extend({ - type: 'GET', + type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') { diff --git a/src/js/select2/data/ajax.js b/src/js/select2/data/ajax.js index f9f1ad4fdc..7d0ed695e3 100644 --- a/src/js/select2/data/ajax.js +++ b/src/js/select2/data/ajax.js @@ -21,7 +21,7 @@ define([ var self = this; var options = $.extend({ - type: 'GET', + type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') {