feature(package) jscs v3.0.1

This commit is contained in:
coderaiser 2016-04-15 12:18:27 -04:00
parent ae41963c87
commit 8c09521bb4
6 changed files with 5 additions and 12 deletions

View file

@ -4,6 +4,7 @@
"requireCapitalizedConstructors": false,
"disallowTrailingWhitespace": "ignoreEmptyLines",
"disallowTrailingComma": false,
"disallowUnusedVariables": true,
"validateIndentation": false,
"requireCurlyBraces": false,
"requireSpacesInAnonymousFunctionExpression": {

View file

@ -796,7 +796,7 @@ var CloudCmd, Util, DOM, CloudFunc;
* unified way to set current file
*/
this.setCurrentFile = function(currentFile, options) {
var ret, path, pathWas, title,
var path, pathWas, title,
o = options,
FS = CloudFunc.FS,
CENTER = true,
@ -831,8 +831,6 @@ var CloudCmd, Util, DOM, CloudFunc;
/* scrolling to current file */
this.scrollIntoViewIfNeeded(currentFile, CENTER);
ret = true;
Cmd.updateCurrentInfo();
}

View file

@ -246,7 +246,7 @@
emitter.emit('end');
} else {
error = Error(xhr.responseText);
emitter.emit('error');
emitter.emit('error', error);
}
};

View file

@ -240,7 +240,7 @@
* @currentFile
*/
function promptDelete() {
var ret, type, isDir, msg,
var type, isDir, msg,
name = '',
msgAsk = 'Do you really want to delete the ',
msgSel = 'selected ',
@ -278,8 +278,6 @@
Dialog.confirm(TITLE, msg, {cancel: false}).then(function() {
deleteSilent(files);
});
return ret;
}
/**

View file

@ -61,14 +61,10 @@ var Util, DOM, jQuery;
if (!document.removeEventListener) {
DOM.Events.remove = function(pType, pElement, pListener) {
var lRet;
if (!pElement)
pElement = window;
$(pElement).unbind(pType, pListener);
return lRet;
};
}

View file

@ -104,7 +104,7 @@
},
"devDependencies": {
"coveralls": "^2.11.6",
"jscs": "^2.7.0",
"jscs": "^3.0.1",
"jshint": "^2.8.0",
"minor": "^1.2.2",
"morgan": "^1.6.1",