Skip to content

Commit d4b07fa

Browse files
committed
autoformat ember files
1 parent f2d46dd commit d4b07fa

File tree

16 files changed

+47
-58
lines changed

16 files changed

+47
-58
lines changed

packages/ember/.template-lintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

33
module.exports = {
4-
extends: 'octane'
4+
extends: 'octane',
55
};

packages/ember/addon/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function InitSentryForEmber(_runtimeConfig?: BrowserOptions) {
5151
if (environmentConfig.ignoreEmberOnErrorWarning) {
5252
return;
5353
}
54-
next(null, function() {
54+
next(null, function () {
5555
warn(
5656
'Ember.onerror found. Using Ember.onerror can hide some errors (such as flushed runloop errors) from Sentry. Use Sentry.captureException to capture errors within Ember.onError or remove it to have errors caught by Sentry directly. This error can be silenced via addon configuration.',
5757
!Ember.onerror,
@@ -64,9 +64,7 @@ export function InitSentryForEmber(_runtimeConfig?: BrowserOptions) {
6464
}
6565

6666
export const getActiveTransaction = () => {
67-
return Sentry.getCurrentHub()
68-
?.getScope()
69-
?.getTransaction();
67+
return Sentry.getCurrentHub()?.getScope()?.getTransaction();
7068
};
7169

7270
export const instrumentRoutePerformance = (BaseRoute: any) => {

packages/ember/addon/instance-initializers/sentry-performance.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ApplicationInstance from '@ember/application/instance';
22
import Ember from 'ember';
33
import { run, _backburner, scheduleOnce } from '@ember/runloop';
44
import * as Sentry from '@sentry/browser';
5-
import { ExtendedBackburner } from "@sentry/ember/runloop";
5+
import { ExtendedBackburner } from '@sentry/ember/runloop';
66
import { Span, Transaction, Integration } from '@sentry/types';
77
import { EmberRunQueues } from '@ember/runloop/-private/types';
88
import { getActiveTransaction } from '..';
@@ -34,7 +34,7 @@ export function initialize(appInstance: ApplicationInstance): void {
3434
}
3535
}
3636

37-
function getBackburner(): Pick<ExtendedBackburner, "on" | "off"> {
37+
function getBackburner(): Pick<ExtendedBackburner, 'on' | 'off'> {
3838
if (_backburner) {
3939
return _backburner;
4040
}
@@ -45,8 +45,8 @@ function getBackburner(): Pick<ExtendedBackburner, "on" | "off"> {
4545

4646
return {
4747
on() {},
48-
off() {}
49-
}
48+
off() {},
49+
};
5050
}
5151

5252
function getTransitionInformation(transition: any, router: any) {

packages/ember/config/ember-try.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { embroiderSafe } = require('@embroider/test-setup');
99
*
1010
* @returns The versions which should be tested, along with their respective config
1111
*/
12-
module.exports = async function() {
12+
module.exports = async function () {
1313
// whenever and wherever we test, we want to at least test against the latest version of ember
1414
let scenarios = [
1515
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

3-
module.exports = function(/* environment, appConfig */) {
4-
return { };
3+
module.exports = function (/* environment, appConfig */) {
4+
return {};
55
};

packages/ember/ember-cli-build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
44

5-
module.exports = function(defaults) {
5+
module.exports = function (defaults) {
66
let app = new EmberAddon(defaults, {
77
// Add options here
88
});

packages/ember/testem.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
module.exports = {
44
test_page: 'tests/index.html?hidepassed',
55
disable_watching: true,
6-
launch_in_ci: [
7-
'Chrome'
8-
],
9-
launch_in_dev: [
10-
'Chrome'
11-
],
6+
launch_in_ci: ['Chrome'],
7+
launch_in_dev: ['Chrome'],
128
browser_start_timeout: 120,
139
browser_args: {
1410
Chrome: {
@@ -20,8 +16,8 @@ module.exports = {
2016
'--disable-software-rasterizer',
2117
'--mute-audio',
2218
'--remote-debugging-port=0',
23-
'--window-size=1440,900'
24-
].filter(Boolean)
25-
}
26-
}
19+
'--window-size=1440,900',
20+
].filter(Boolean),
21+
},
22+
},
2723
};

packages/ember/tests/acceptance/sentry-errors-test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ function assertSentryCall(assert, callNumber, options) {
3434
});
3535
}
3636

37-
module('Acceptance | Sentry Errors', function(hooks) {
37+
module('Acceptance | Sentry Errors', function (hooks) {
3838
setupApplicationTest(hooks);
3939
setupSentryTest(hooks);
4040

41-
test('Check "Throw Generic Javascript Error"', async function(assert) {
41+
test('Check "Throw Generic Javascript Error"', async function (assert) {
4242
await visit('/');
4343
const button = find('[data-test-button="Throw Generic Javascript Error"]');
4444

@@ -48,7 +48,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
4848
assertSentryCall(assert, 0, { errorBodyContains: [...this.errorMessages] });
4949
});
5050

51-
test('Check "Throw EmberError"', async function(assert) {
51+
test('Check "Throw EmberError"', async function (assert) {
5252
await visit('/');
5353
const button = find('[data-test-button="Throw EmberError"]');
5454

@@ -58,7 +58,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
5858
assertSentryCall(assert, 0, { errorBodyContains: [...this.errorMessages] });
5959
});
6060

61-
test('Check "Caught Thrown EmberError"', async function(assert) {
61+
test('Check "Caught Thrown EmberError"', async function (assert) {
6262
await visit('/');
6363
const button = find('[data-test-button="Caught Thrown EmberError"]');
6464

@@ -67,7 +67,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
6767
assertSentryErrorCount(assert, 0);
6868
});
6969

70-
test('Check "Error From Fetch"', async function(assert) {
70+
test('Check "Error From Fetch"', async function (assert) {
7171
this.fetchStub.onFirstCall().callsFake((...args) => {
7272
return this.fetchStub.callsThrough(args);
7373
});
@@ -85,7 +85,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
8585
});
8686
});
8787

88-
test('Check "Error in AfterRender"', async function(assert) {
88+
test('Check "Error in AfterRender"', async function (assert) {
8989
await visit('/');
9090
const button = find('[data-test-button="Error in AfterRender"]');
9191

@@ -96,7 +96,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
9696
assertSentryCall(assert, 0, { errorBodyContains: [...this.errorMessages] });
9797
});
9898

99-
test('Check "RSVP Rejection"', async function(assert) {
99+
test('Check "RSVP Rejection"', async function (assert) {
100100
await visit('/');
101101
const button = find('[data-test-button="RSVP Rejection"]');
102102

@@ -107,7 +107,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
107107
assertSentryCall(assert, 0, { errorBodyContains: [this.qunitOnUnhandledRejection.getCall(0).args[0]] });
108108
});
109109

110-
test('Check "Error inside RSVP"', async function(assert) {
110+
test('Check "Error inside RSVP"', async function (assert) {
111111
await visit('/');
112112
const button = find('[data-test-button="Error inside RSVP"]');
113113

packages/ember/tests/acceptance/sentry-performance-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ function assertSentryCall(assert, callNumber, options) {
5050
}
5151
}
5252

53-
module('Acceptance | Sentry Transactions', function(hooks) {
53+
module('Acceptance | Sentry Transactions', function (hooks) {
5454
setupApplicationTest(hooks);
5555
setupSentryTest(hooks);
5656

57-
test('Test transaction', async function(assert) {
57+
test('Test transaction', async function (assert) {
5858
await visit('/tracing');
5959

6060
assertSentryTransactionCount(assert, 1);
@@ -78,7 +78,7 @@ module('Acceptance | Sentry Transactions', function(hooks) {
7878
});
7979
});
8080

81-
test('Test navigating to slow route', async function(assert) {
81+
test('Test navigating to slow route', async function (assert) {
8282
await visit('/tracing');
8383
const button = find('[data-test-button="Transition to slow loading route"]');
8484

packages/ember/tests/dummy/app/components/slow-loading-list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import Component from '@ember/component';
22
import { computed } from '@ember/object';
33

44
export default Component.extend({
5-
_title: computed('title', function() {
5+
_title: computed('title', function () {
66
return this.title || 'Slow Loading List';
77
}),
8-
rowItems: computed('items', function() {
8+
rowItems: computed('items', function () {
99
return new Array(parseInt(this.items)).fill(0).map((_, index) => {
1010
return {
1111
index: index + 1,

0 commit comments

Comments
 (0)