diff --git a/app/models/event-invoice.js b/app/models/event-invoice.js index ed457e30500..5a6f3a05d13 100644 --- a/app/models/event-invoice.js +++ b/app/models/event-invoice.js @@ -19,8 +19,8 @@ export default ModelBase.extend({ paymentMode : attr('string'), stripeToken : attr('string'), last4 : attr('string'), - expMonth : attr('number'), - expYear : attr('number'), + expMonth : attr('number'), + expYear : attr('number'), amount : attr('number'), completedAt : attr('moment'), invoicePdfUrl : attr('string'), diff --git a/config/deploy.js b/config/deploy.js index 570a38e7196..262705fa059 100644 --- a/config/deploy.js +++ b/config/deploy.js @@ -1,7 +1,7 @@ /* jshint node: true */ module.exports = function(deployTarget) { - let ENV = { + const ENV = { build: {} // include other plugin configuration that applies to all deploy targets here }; diff --git a/config/deprecation-workflow.js b/config/deprecation-workflow.js index a8d84b10995..1bec3219d30 100644 --- a/config/deprecation-workflow.js +++ b/config/deprecation-workflow.js @@ -1,3 +1,5 @@ +/* eslint-env browser */ + window.deprecationWorkflow = window.deprecationWorkflow || {}; window.deprecationWorkflow.config = { workflow: [ diff --git a/config/environment.js b/config/environment.js index 889d519043c..39634a84393 100644 --- a/config/environment.js +++ b/config/environment.js @@ -9,7 +9,7 @@ function getSentryServer(dsn, withProtocol = true) { module.exports = function(environment) { - let ENV = { + const ENV = { appName : process.env.APP_NAME || 'Open Event', modulePrefix : 'open-event-frontend', environment, @@ -55,11 +55,11 @@ module.exports = function(environment) { }, sentry: { - dsn : process.env.SENTRY_DSN || 'https://dummy@getsentry.com/dummy', - debug : !!process.env.SENTRY_DSN, - development : !process.env.SENTRY_DSN, - release : (process.env.SENTRY_PROJECT_NAME || 'eventyay-frontend') + '@' + process.env.npm_package_version, - tracesSampleRate: process.env.SENTRY_TRACE_SAMPLE_RATE || 0.1, + dsn : process.env.SENTRY_DSN || 'https://dummy@getsentry.com/dummy', + debug : !!process.env.SENTRY_DSN, + development : !process.env.SENTRY_DSN, + release : (process.env.SENTRY_PROJECT_NAME || 'eventyay-frontend') + '@' + process.env.npm_package_version, + tracesSampleRate : process.env.SENTRY_TRACE_SAMPLE_RATE || 0.1 }, emberFullCalendar: { @@ -87,11 +87,11 @@ module.exports = function(environment) { }; ENV['ember-simple-auth-token'] = { - refreshAccessTokens : false, - serverTokenEndpoint : `${ENV.APP.apiHost}/auth/session`, - tokenPropertyName : 'access_token', - authorizationPrefix : 'JWT ', - authorizationHeaderName: 'Authorization' + refreshAccessTokens : false, + serverTokenEndpoint : `${ENV.APP.apiHost}/auth/session`, + tokenPropertyName : 'access_token', + authorizationPrefix : 'JWT ', + authorizationHeaderName : 'Authorization' }; ENV['g-map'] = { diff --git a/package.json b/package.json index d009d4dadd1..c5892428047 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "test": "ember test", "exam": "ember exam --launch=chrome --random", "lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*", - "lint:js": "eslint --fix app ember-cli-build.js testem.js tests", + "lint:js": "eslint --fix app ember-cli-build.js testem.js tests config", "lint:scss": "sass-lint -c .sass-lint.yml --verbose", "lint:hbs": "ember-template-lint ." },