Skip to content

Commit 5b1fde5

Browse files
author
Artyom 'Sleepwalker' Fedosov
committed
Update Grunt and packages, fix code style
1 parent 690a130 commit 5b1fde5

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

Gruntfile.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = function(grunt) {
1+
module.exports = function (grunt) {
22
grunt.loadNpmTasks('grunt-contrib-jshint');
33
grunt.loadNpmTasks('grunt-jscs');
44

@@ -19,9 +19,10 @@ module.exports = function(grunt) {
1919
options: {
2020
preset: 'airbnb',
2121
validateIndentation: '\t',
22-
disallowMultipleVarDecl: null,
23-
requireMultipleVarDecl: true,
24-
requireCurlyBraces: ['if', 'else', 'for', 'while', 'do', 'try', 'catch', 'case']
22+
requireCurlyBraces: ['if', 'else', 'for', 'while', 'do', 'try', 'catch', 'case'],
23+
requireTrailingComma: false,
24+
requirePaddingNewLinesAfterBlocks: false,
25+
requireDollarBeforejQueryAssignment: false
2526
}
2627
}
2728
});

lib/jquery-ui.accordion.multiple.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
if (typeof define === 'function' && define.amd) {
99
define(['jquery'], factory);
1010
} else if (typeof module === 'object' && module.exports) {
11-
module.exports = function(root, jQuery) {
11+
module.exports = function (root, jQuery) {
1212
if (jQuery === undefined) {
1313
if (typeof window !== 'undefined') {
1414
jQuery = require('jquery');
@@ -22,13 +22,13 @@
2222
} else {
2323
factory(jQuery);
2424
}
25-
}(function($) {
25+
}(function ($) {
2626

2727
var originalToggle = $.ui.accordion.prototype._toggle;
2828

2929
$.extend($.ui.accordion.prototype, {
3030
multiple: false,
31-
_toggle: function(data) {
31+
_toggle: function (data) {
3232
if (this.options.multiple && data.newPanel.length) {
3333
data.oldPanel = data.oldHeader = this.prevShow = $('');
3434

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"jquery-ui": ">=1.0"
3333
},
3434
"devDependencies": {
35-
"grunt": "~0.4.5",
36-
"grunt-contrib-jshint": "~0.11.0",
37-
"grunt-jscs": "~1.5.0"
35+
"grunt": "~1.0.1",
36+
"grunt-contrib-jshint": "~1.1.0",
37+
"grunt-jscs": "~3.0.1"
3838
}
3939
}

0 commit comments

Comments
 (0)