Browse Source

Improved the jshint config a bit more

Kevin Brown 10 năm trước cách đây
mục cha
commit
9c6a18700b

+ 6 - 0
.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"
 }

+ 1 - 1
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') {

+ 1 - 1
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') {

+ 1 - 1
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') {

+ 1 - 1
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') {

+ 1 - 1
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') {