diff --git a/app/authenticators/custom.js b/app/authenticators/custom.js index 5004a8cf78..9ac5e61c31 100644 --- a/app/authenticators/custom.js +++ b/app/authenticators/custom.js @@ -108,7 +108,7 @@ export default BaseAuthenticator.extend({ invalidate() { if (this.useGoogleAuth) { - return new Ember.RSVP.resolve(); + return Ember.RSVP.resolve(); } else { return this._getPromise('DELETE'); } diff --git a/app/inventory/barcode/controller.js b/app/inventory/barcode/controller.js index a5ff8ab37f..d2d22a0d43 100644 --- a/app/inventory/barcode/controller.js +++ b/app/inventory/barcode/controller.js @@ -5,6 +5,8 @@ export default Ember.Controller.extend({ barcodeUri: function() { let id = this.get('model.id'); let name = this.get('model.name'); + + /* eslint new-cap: ['error', { 'capIsNew': false }] */ return Ember.$(document).JsBarcode(id, { width: 1, height: 20, diff --git a/app/mixins/progress-dialog.js b/app/mixins/progress-dialog.js index 61a4459740..e5ac502841 100644 --- a/app/mixins/progress-dialog.js +++ b/app/mixins/progress-dialog.js @@ -39,7 +39,7 @@ export default Ember.Mixin.create({ showProgressModal() { let progressDialog = Ember.Object.create(this.get('progressDialogDefaults')); - progressDialog.progressBarStyle = new Ember.String.htmlSafe(progressDialog.progressBarStyle); + progressDialog.progressBarStyle = Ember.String.htmlSafe(progressDialog.progressBarStyle); progressDialog.set('title', this.get('progressTitle')); progressDialog.set('message', this.get('progressMessage')); this.set('progressDialog', progressDialog);