kibana/x-pack/packages/ml/aiops_log_pattern_analysis
Nick Partridge 49a985625b
Upgrade prettier dependencies (#188032)
## Summary

- Upgrade `prettier` to `v2.8.x`.
- Upgrade related decencies.
- Adds `prettier` group to renovate config.
- Fixes bootstrapping type error.

## Main Changes

### Add parentheses for `TypeofTypeAnnotation` to improve readability

[link](https://github.com/prettier/prettier/blob/main/CHANGELOG.md#add-parentheses-for-typeoftypeannotation-to-improve-readability-14458-by-fisker)

```ts
// Input
type A = (typeof node.children)[];

// Prettier 2.8.4
type A = typeof node.children[];

// Prettier 2.8.5
type A = (typeof node.children)[];
```

### Add parentheses to head of `ExpressionStatement` instead of the
whole statement


[link](https://github.com/prettier/prettier/blob/main/CHANGELOG.md#add-parentheses-to-head-of-expressionstatement-instead-of-the-whole-statement-14077-by-fisker)

```ts
// Input
({}).toString.call(foo) === "[object Array]"
  ? foo.forEach(iterateArray)
  : iterateObject(foo);

// Prettier 2.8.1
({}.toString.call(foo) === "[object Array]"
  ? foo.forEach(iterateArray)
  : iterateObject(foo));

// Prettier 2.8.2
({}).toString.call(foo.forEach) === "[object Array]"
  ? foo.forEach(iterateArray)
  : iterateObject(foo);
```

## Details

This started because I noticed we were on `typescript@^5` but still on
an old prettier that complained about use of new TS features such as
[`satisfies`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#the-satisfies-operator).

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-07-24 17:29:05 +01:00
..
create_categorize_query.ts
create_category_request.ts [ML] AIOps Fixing runtime mappings in pattern analysis (#188530) 2024-07-20 00:38:19 +10:00
embeddable.ts [ML] [AIOps] Pattern analysis tab in Discover (#178916) 2024-05-22 14:13:07 +01:00
get_category_query.ts Upgrade prettier dependencies (#188032) 2024-07-24 17:29:05 +01:00
index.ts
jest.config.js
kibana.jsonc
package.json
process_category_results.ts [ML] [AIOps] Pattern analysis tab in Discover (#178916) 2024-05-22 14:13:07 +01:00
README.md
schema.ts
tsconfig.json [ML] AIOps Fixing runtime mappings in pattern analysis (#188530) 2024-07-20 00:38:19 +10:00
types.ts [ML] [AIOps] Pattern analysis tab in Discover (#178916) 2024-05-22 14:13:07 +01:00

@kbn/aiops-log-pattern-analysis

Static utilities for AIOps log pattern analysis.

https://docs.elastic.dev/kibana-dev-docs/api/kbn-aiops-log-pattern-analysis