Skip to content

Commit 9c6a187

Browse files
committed
Improved the jshint config a bit more
1 parent cbfe23e commit 9c6a187

6 files changed

Lines changed: 11 additions & 5 deletions

File tree

.jshintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
22
"bitwise": true,
3+
"camelcase": true,
4+
"curly": true,
5+
"es3": true,
36
"eqnull": true,
7+
"freeze": true,
48
"globals": {
59
"define": true
610
},
711
"indent": 2,
812
"maxlen": 80,
13+
"noarg": true,
14+
"nonew": true,
915
"quotmark": "single"
1016
}

dist/js/select2.amd.full.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ define('select2/data/ajax',[
666666
var self = this;
667667

668668
var options = $.extend({
669-
type: 'GET',
669+
type: 'GET'
670670
}, this.ajaxOptions);
671671

672672
if (typeof options.url === 'function') {

dist/js/select2.amd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ define('select2/data/ajax',[
666666
var self = this;
667667

668668
var options = $.extend({
669-
type: 'GET',
669+
type: 'GET'
670670
}, this.ajaxOptions);
671671

672672
if (typeof options.url === 'function') {

dist/js/select2.full.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10203,7 +10203,7 @@ define('select2/data/ajax',[
1020310203
var self = this;
1020410204

1020510205
var options = $.extend({
10206-
type: 'GET',
10206+
type: 'GET'
1020710207
}, this.ajaxOptions);
1020810208

1020910209
if (typeof options.url === 'function') {

dist/js/select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ define('select2/data/ajax',[
10941094
var self = this;
10951095

10961096
var options = $.extend({
1097-
type: 'GET',
1097+
type: 'GET'
10981098
}, this.ajaxOptions);
10991099

11001100
if (typeof options.url === 'function') {

src/js/select2/data/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ define([
2121
var self = this;
2222

2323
var options = $.extend({
24-
type: 'GET',
24+
type: 'GET'
2525
}, this.ajaxOptions);
2626

2727
if (typeof options.url === 'function') {

0 commit comments

Comments
 (0)