Skip to content

Commit

Permalink
Disable eslint 'new-cap' rule globally
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrobinson committed Aug 21, 2015
1 parent 4d2332c commit a01164d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"space-unary-ops": 0,
"semi": 0,
"no-console": 0,
"global-strict": 0
"global-strict": 0,
"new-cap": 0
},
"plugins": [
"react"
Expand Down
4 changes: 0 additions & 4 deletions resources/frontend_client/app/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ CorvusServices.factory('AppState', ['$rootScope', '$q', '$location', '$interval'
// this tells Intercom to update every 60s if we have a currently logged in user
$interval(function() {
if (service.model.currentUser && isTracking()) {
/* eslint-disable */
window.Intercom('update');
/* eslint-enable */
}
}, 60000);
}
Expand Down Expand Up @@ -179,7 +177,6 @@ CorvusServices.factory('AppState', ['$rootScope', '$q', '$location', '$interval'
return (tracking === "true" || tracking === null);
}

/* eslint-disable */
function startupIntercom(user) {
window.Intercom('boot', {
app_id: "gqfmsgf1",
Expand All @@ -191,7 +188,6 @@ CorvusServices.factory('AppState', ['$rootScope', '$q', '$location', '$interval'
function teardownIntercom() {
window.Intercom('shutdown');
}
/* eslint-enable */

// listen for location changes and use that as a trigger for page view tracking
$rootScope.$on('$locationChangeSuccess', function() {
Expand Down

0 comments on commit a01164d

Please sign in to comment.