Skip to content

Commit 4681a80

Browse files
authored
[DX] Upgrade prettier to v2.4.0 (#112359)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
1 parent f1e9668 commit 4681a80

2,937 files changed

Lines changed: 28582 additions & 30469 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/development/core/server/kibana-plugin-core-server.deprecationsservicesetup.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ async function getDeprecations({ esClient, savedObjectsClient }: GetDeprecations
2727
const deprecations: DeprecationsDetails[] = [];
2828
const count = await getFooCount(savedObjectsClient);
2929
if (count > 0) {
30-
// Example of a manual correctiveAction
3130
deprecations.push({
3231
title: i18n.translate('xpack.foo.deprecations.title', {
3332
defaultMessage: `Foo's are deprecated`

docs/development/core/server/kibana-plugin-core-server.opsmetrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface OpsMetrics
1919
| [collected\_at](./kibana-plugin-core-server.opsmetrics.collected_at.md) | <code>Date</code> | Time metrics were recorded at. |
2020
| [concurrent\_connections](./kibana-plugin-core-server.opsmetrics.concurrent_connections.md) | <code>OpsServerMetrics['concurrent_connections']</code> | number of current concurrent connections to the server |
2121
| [os](./kibana-plugin-core-server.opsmetrics.os.md) | <code>OpsOsMetrics</code> | OS related metrics |
22-
| [process](./kibana-plugin-core-server.opsmetrics.process.md) | <code>OpsProcessMetrics</code> | Process related metrics. Deprecated in favor of processes field. |
22+
| [process](./kibana-plugin-core-server.opsmetrics.process.md) | <code>OpsProcessMetrics</code> | Process related metrics. |
2323
| [processes](./kibana-plugin-core-server.opsmetrics.processes.md) | <code>OpsProcessMetrics[]</code> | Process related metrics. Reports an array of objects for each kibana pid. |
2424
| [requests](./kibana-plugin-core-server.opsmetrics.requests.md) | <code>OpsServerMetrics['requests']</code> | server requests stats |
2525
| [response\_times](./kibana-plugin-core-server.opsmetrics.response_times.md) | <code>OpsServerMetrics['response_times']</code> | server response time stats |

docs/development/core/server/kibana-plugin-core-server.opsmetrics.process.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66

77
> Warning: This API is now obsolete.
88
>
9+
> use the processes field instead.
910
>
1011
11-
Process related metrics. Deprecated in favor of processes field.
12+
Process related metrics.
1213

1314
<b>Signature:</b>
1415

examples/bfetch_explorer/public/mount.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,16 @@ export interface BfetchDeps {
2020
explorer: ExplorerService;
2121
}
2222

23-
export const mount = (
24-
coreSetup: CoreSetup<BfetchExplorerStartPlugins>,
25-
explorer: ExplorerService
26-
) => async ({ appBasePath, element }: AppMountParameters) => {
27-
const [core, plugins] = await coreSetup.getStartServices();
28-
const deps: BfetchDeps = { appBasePath, core, plugins, explorer };
29-
const reactElement = (
30-
<KibanaContextProvider services={deps}>
31-
<App />
32-
</KibanaContextProvider>
33-
);
34-
render(reactElement, element);
35-
return () => unmountComponentAtNode(element);
36-
};
23+
export const mount =
24+
(coreSetup: CoreSetup<BfetchExplorerStartPlugins>, explorer: ExplorerService) =>
25+
async ({ appBasePath, element }: AppMountParameters) => {
26+
const [core, plugins] = await coreSetup.getStartServices();
27+
const deps: BfetchDeps = { appBasePath, core, plugins, explorer };
28+
const reactElement = (
29+
<KibanaContextProvider services={deps}>
30+
<App />
31+
</KibanaContextProvider>
32+
);
33+
render(reactElement, element);
34+
return () => unmountComponentAtNode(element);
35+
};

examples/dashboard_embeddable_examples/public/plugin.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export class DashboardEmbeddableExamples implements Plugin<void, void, {}, Start
3333
return renderApp(
3434
{
3535
basename: params.appBasePath,
36-
DashboardContainerByValueRenderer: depsStart.dashboard.getDashboardContainerByValueRenderer(),
36+
DashboardContainerByValueRenderer:
37+
depsStart.dashboard.getDashboardContainerByValueRenderer(),
3738
},
3839
params.element
3940
);

examples/embeddable_examples/public/book/book_embeddable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ function getHasMatch(search?: string, savedAttributes?: BookSavedObjectAttribute
5252

5353
export class BookEmbeddable
5454
extends Embeddable<BookEmbeddableInput, BookEmbeddableOutput>
55-
implements ReferenceOrValueEmbeddable<BookByValueInput, BookByReferenceInput> {
55+
implements ReferenceOrValueEmbeddable<BookByValueInput, BookByReferenceInput>
56+
{
5657
public readonly type = BOOK_EMBEDDABLE;
5758
private subscription: Subscription;
5859
private node?: HTMLElement;

examples/embeddable_examples/public/book/book_embeddable_factory.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ export class BookEmbeddableFactoryDefinition
5252
BookEmbeddableOutput,
5353
BookEmbeddable,
5454
BookSavedObjectAttributes
55-
> {
55+
>
56+
{
5657
public readonly type = BOOK_EMBEDDABLE;
5758
public savedObjectMetaData = {
5859
name: 'Book',
@@ -116,10 +117,8 @@ export class BookEmbeddableFactoryDefinition
116117

117118
private async unwrapMethod(savedObjectId: string): Promise<BookSavedObjectAttributes> {
118119
const { savedObjectsClient } = await this.getStartServices();
119-
const savedObject: SimpleSavedObject<BookSavedObjectAttributes> = await savedObjectsClient.get<BookSavedObjectAttributes>(
120-
this.type,
121-
savedObjectId
122-
);
120+
const savedObject: SimpleSavedObject<BookSavedObjectAttributes> =
121+
await savedObjectsClient.get<BookSavedObjectAttributes>(this.type, savedObjectId);
123122
return { ...savedObject.attributes };
124123
}
125124

examples/embeddable_examples/public/list_container/list_container_factory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ interface StartServices {
2222

2323
export type ListContainerFactory = EmbeddableFactory<ContainerInput, ContainerOutput>;
2424
export class ListContainerFactoryDefinition
25-
implements EmbeddableFactoryDefinition<ContainerInput, ContainerOutput> {
25+
implements EmbeddableFactoryDefinition<ContainerInput, ContainerOutput>
26+
{
2627
public readonly type = LIST_CONTAINER;
2728
public readonly isContainerType = true;
2829

examples/embeddable_examples/public/migrations/migrations_embeddable_factory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export type SimpleEmbeddableInput = EmbeddableInput & {
2626

2727
export type SimpleEmbeddableFactory = EmbeddableFactory;
2828
export class SimpleEmbeddableFactoryDefinition
29-
implements EmbeddableFactoryDefinition<SimpleEmbeddableInput> {
29+
implements EmbeddableFactoryDefinition<SimpleEmbeddableInput>
30+
{
3031
public readonly type = SIMPLE_EMBEDDABLE;
3132

3233
// we need to provide migration function every time we change the interface of our state

examples/embeddable_examples/public/multi_task_todo/multi_task_todo_embeddable_factory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export type MultiTaskTodoEmbeddableFactory = EmbeddableFactory<
2727

2828
export class MultiTaskTodoEmbeddableFactoryDefinition
2929
implements
30-
EmbeddableFactoryDefinition<MultiTaskTodoInput, MultiTaskTodoOutput, MultiTaskTodoEmbeddable> {
30+
EmbeddableFactoryDefinition<MultiTaskTodoInput, MultiTaskTodoOutput, MultiTaskTodoEmbeddable>
31+
{
3132
public readonly type = MULTI_TASK_TODO_EMBEDDABLE;
3233

3334
public async isEditable() {

0 commit comments

Comments
 (0)