Skip to content

Commit dc62a0d

Browse files
ci: apply automated fixes
1 parent f16f2ff commit dc62a0d

File tree

9 files changed

+52
-56
lines changed

9 files changed

+52
-56
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
1+
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core'
22

33
export const appConfig: ApplicationConfig = {
44
providers: [provideBrowserGlobalErrorListeners()],
5-
};
5+
}

examples/angular/basic/src/app/app.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
2-
import { createCounter } from './counter';
3-
import type { TanStackDevtoolsAngularInit } from '@tanstack/angular-devtools';
4-
import { TanStackDevtools } from '@tanstack/angular-devtools';
1+
import { ChangeDetectionStrategy, Component, signal } from '@angular/core'
2+
import { createCounter } from './counter'
3+
import type { TanStackDevtoolsAngularInit } from '@tanstack/angular-devtools'
4+
import { TanStackDevtools } from '@tanstack/angular-devtools'
55

66
@Component({
77
selector: 'app-root',
@@ -28,10 +28,10 @@ export class App {
2828
name: 'Custom devtools',
2929
render: () => import('./devtools/custom-devtools-panel'),
3030
},
31-
]);
31+
])
3232

33-
readonly counter = createCounter();
33+
readonly counter = createCounter()
3434

35-
readonly increment = () => this.counter.increment();
36-
readonly decrement = () => this.counter.decrement();
35+
readonly increment = () => this.counter.increment()
36+
readonly decrement = () => this.counter.decrement()
3737
}

examples/angular/panel/src/app/app.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
import {
2-
ChangeDetectionStrategy,
3-
Component,
4-
signal,
5-
} from '@angular/core'
1+
import { ChangeDetectionStrategy, Component, signal } from '@angular/core'
62
import { createCounter } from './counter'
73
import type { TanStackDevtoolsAngularInit } from '@tanstack/angular-devtools'
84
import {
95
CustomDevtoolPanel,
106
customDevtoolPlugin,
117
noOpCustomDevtoolPlugin,
12-
} from './devtools/custom-devtools-panel';
8+
} from './devtools/custom-devtools-panel'
139
import { TanStackDevtools } from '@tanstack/angular-devtools'
1410

1511
@Component({
@@ -40,10 +36,10 @@ export class App {
4036
customDevtoolPlugin(),
4137
// No-op plugin -> will not be rendered
4238
noOpCustomDevtoolPlugin(),
43-
]);
39+
])
4440

45-
readonly counter = createCounter();
41+
readonly counter = createCounter()
4642

47-
readonly increment = () => this.counter.increment();
48-
readonly decrement = () => this.counter.decrement();
43+
readonly increment = () => this.counter.increment()
44+
readonly decrement = () => this.counter.decrement()
4945
}
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
import { DevtoolsEventClient } from './eventClient';
2-
import { createAngularPanel, createAngularPlugin } from '@tanstack/devtools-utils/angular';
1+
import { DevtoolsEventClient } from './eventClient'
2+
import { createAngularPanel, createAngularPlugin } from '@tanstack/devtools-utils/angular'
33

44
class BasePanel {
5-
#unsubscribes = [] as Array<() => void>;
6-
#dispose = () => void 0;
5+
#unsubscribes = [] as Array<() => void>
6+
#dispose = () => void 0
77

88
mount<T extends HTMLElement>(element: T) {
9-
const plugin = element.ownerDocument.createElement('div');
10-
element.appendChild(plugin);
9+
const plugin = element.ownerDocument.createElement('div')
10+
element.appendChild(plugin)
1111

1212
function render(count: number, history: string) {
1313
plugin.innerHTML = `
1414
<div>counter state: ${count}</div>
1515
<div>counter history: ${history}</div>
16-
`;
16+
`
1717
}
1818

19-
render(0, '');
19+
render(0, '')
2020

2121
this.#unsubscribes.push(
2222
DevtoolsEventClient.on('counter-state', (e) => {
23-
const count = e.payload.count ?? 0;
24-
const history = JSON.stringify(e.payload.history ?? {});
25-
render(count, history);
23+
const count = e.payload.count ?? 0
24+
const history = JSON.stringify(e.payload.history ?? {})
25+
render(count, history)
2626
}),
27-
);
27+
)
2828

2929
this.#dispose = () => {
30-
plugin.remove();
31-
};
30+
plugin.remove()
31+
}
3232
}
3333

3434
unmount() {
35-
this.#unsubscribes.forEach((unsubscribe) => unsubscribe());
36-
this.#dispose();
35+
this.#unsubscribes.forEach((unsubscribe) => unsubscribe())
36+
this.#dispose()
3737
}
3838
}
3939

40-
export const [CustomDevtoolPanel, NoOpCustomDevtoolPanel] = createAngularPanel(BasePanel);
40+
export const [CustomDevtoolPanel, NoOpCustomDevtoolPanel] = createAngularPanel(BasePanel)
4141

4242
export const [customDevtoolPlugin, noOpCustomDevtoolPlugin] = createAngularPlugin({
4343
name: 'Custom Devtools (Plugin)',
4444
render: CustomDevtoolPanel,
45-
});
45+
})

examples/angular/with-devtools/src/app/app.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
2-
import { withDevtools } from '@tanstack/angular-devtools/provider';
1+
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core'
2+
import { withDevtools } from '@tanstack/angular-devtools/provider'
33

44
export const appConfig: ApplicationConfig = {
55
providers: [
@@ -12,11 +12,11 @@ export const appConfig: ApplicationConfig = {
1212
},
1313
],
1414
eventBusConfig: {
15-
debug: true
15+
debug: true,
1616
},
1717
// config: {
1818
// defaultOpen: true,
1919
// },
2020
})),
2121
],
22-
};
22+
}

examples/angular/with-devtools/src/app/app.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { ChangeDetectionStrategy, Component } from '@angular/core';
2-
import { createCounter } from './counter';
3-
import { TanStackDevtools } from '@tanstack/angular-devtools';
4-
import { injectDevtoolsPlugins } from '@tanstack/angular-devtools/provider';
1+
import { ChangeDetectionStrategy, Component } from '@angular/core'
2+
import { createCounter } from './counter'
3+
import { TanStackDevtools } from '@tanstack/angular-devtools'
4+
import { injectDevtoolsPlugins } from '@tanstack/angular-devtools/provider'
55

66
@Component({
77
selector: 'app-root',
@@ -21,11 +21,11 @@ import { injectDevtoolsPlugins } from '@tanstack/angular-devtools/provider';
2121
changeDetection: ChangeDetectionStrategy.OnPush,
2222
})
2323
export class App {
24-
readonly counter = createCounter();
25-
readonly devtoolsPlugins = injectDevtoolsPlugins();
24+
readonly counter = createCounter()
25+
readonly devtoolsPlugins = injectDevtoolsPlugins()
2626

27-
readonly increment = () => this.counter.increment();
28-
readonly decrement = () => this.counter.decrement();
27+
readonly increment = () => this.counter.increment()
28+
readonly decrement = () => this.counter.decrement()
2929

3030
readonly addPlugin = () => {
3131
this.devtoolsPlugins.update((n) => [
@@ -34,6 +34,6 @@ export class App {
3434
name: `Custom devtools ${n.length + 1}`,
3535
render: () => import('./devtools/custom-devtools-panel'),
3636
},
37-
]);
38-
};
37+
])
38+
}
3939
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"configPath":"../../dist/server/wrangler.json","auxiliaryWorkers":[]}
1+
{ "configPath": "../../dist/server/wrangler.json", "auxiliaryWorkers": [] }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from '@tanstack/devtools'
2-
export * from './with-devtools';
2+
export * from './with-devtools'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export * from './devtools';
1+
export * from './devtools'
22

33
export type {
44
TanStackDevtoolsAngularPlugin,
55
TanStackDevtoolsAngularInit,
66
TanStackDevtoolsAngularPluginRender,
77
TanStackDevtoolsAngularPluginRenderFn,
88
TanStackDevtoolsAngularFunctionalComponent,
9-
TanStackDevtoolsAngularPluginInputs
9+
TanStackDevtoolsAngularPluginInputs,
1010
} from './types'

0 commit comments

Comments
 (0)