eslint --fix

This commit is contained in:
Eric Fischer
2017-12-08 12:36:39 -05:00
parent e0112d18e3
commit 5bc6b31e29
415 changed files with 3554 additions and 3728 deletions

View File

@@ -100,7 +100,7 @@
* inlined in the build config.
*/
shim: {
'xmodule': {
xmodule: {
deps: [
'jquery', 'underscore', 'codemirror', 'tinymce',
'jquery.tinymce', 'jquery.qtip', 'jquery.scrollTo', 'jquery.flot',

View File

@@ -43,8 +43,8 @@
message = JSON.parse(jqXHR.responseText).error;
}
msg = new NotificationView.Error({
'title': gettext("Studio's having trouble saving your work"),
'message': message
title: gettext("Studio's having trouble saving your work"),
message: message
});
console.log('Studio AJAX Error', { // eslint-disable-line no-console
url: event.currentTarget.URL,

View File

@@ -1,5 +1,5 @@
define(['jquery', 'backbone', 'xblock/runtime.v1', 'URI', 'gettext', 'js/utils/modal',
'common/js/components/views/feedback_notification'],
'common/js/components/views/feedback_notification'],
function($, Backbone, XBlock, URI, gettext, ModalUtils, NotificationView) {
'use strict';
@@ -149,7 +149,7 @@ define(['jquery', 'backbone', 'xblock/runtime.v1', 'URI', 'gettext', 'js/utils/m
};
return v1;
})(XBlock.Runtime.v1);
}(XBlock.Runtime.v1));
PreviewRuntime.v1 = (function(_super) {
__extends(v1, _super);
@@ -161,7 +161,7 @@ define(['jquery', 'backbone', 'xblock/runtime.v1', 'URI', 'gettext', 'js/utils/m
v1.prototype.handlerPrefix = '/preview/xblock';
return v1;
})(BaseRuntime.v1);
}(BaseRuntime.v1));
StudioRuntime.v1 = (function(_super) {
__extends(v1, _super);
@@ -173,7 +173,7 @@ define(['jquery', 'backbone', 'xblock/runtime.v1', 'URI', 'gettext', 'js/utils/m
v1.prototype.handlerPrefix = '/xblock';
return v1;
})(BaseRuntime.v1);
}(BaseRuntime.v1));
// Install the runtime's into the global namespace
window.BaseRuntime = BaseRuntime;