Skip to content

Commit

Permalink
challenge: update reports (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conaclos authored Nov 25, 2023
1 parent d2ef16b commit db12581
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 116 deletions.
59 changes: 7 additions & 52 deletions crates/biome_js_formatter/report.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
## Overall Metrics

**Average compatibility**: 95.89
**Average compatibility**: 96.01

<details>
<summary>Definition</summary>

$$average = \frac\{\sum_{file}^\{files}compatibility_\{file}}\{files}$$
</details>

**Compatible lines**: 96.51
**Compatible lines**: 96.54

<details>
<summary>Definition</summary>
Expand Down Expand Up @@ -7286,13 +7286,8 @@


### typescript/arrows/type_params.ts
```diff
-<T,>(a) => {};
+<T>(a) => {};

```

**Prettier Similarity**: 0.00%
**Prettier Similarity**: 100.00%


### typescript/as/array-pattern.ts
Expand Down Expand Up @@ -7991,21 +7986,8 @@


### typescript/compiler/contextualSignatureInstantiation2.ts
```diff
// dot f g x = f(g(x))
var dot: <T, S>(f: (_: T) => S) => <U>(g: (_: U) => T) => (_: U) => S;
dot =
<T, S>(f: (_: T) => S) =>
- <U,>(g: (_: U) => T): ((r: U) => S) =>
+ <U>(g: (_: U) => T): ((r: U) => S) =>
(x) =>
f(g(x));
var id: <T>(x: T) => T;
var r23 = dot(id)(id);

```

**Prettier Similarity**: 88.89%
**Prettier Similarity**: 100.00%


### typescript/compiler/declareDottedModuleName.ts
Expand Down Expand Up @@ -11503,8 +11485,7 @@
function b<const T extends U>() {}
function c<T, const U>() {}
declare function d<const T>();
-<const T,>() => {};
+<const T>() => {};
<const T,>() => {};
<const T extends U>() => {};
(function <const T>() {});
(function <const T extends U>() {});
Expand Down Expand Up @@ -11536,7 +11517,7 @@

```

**Prettier Similarity**: 93.75%
**Prettier Similarity**: 96.88%


### typescript/typeparams/empty-parameters-with-arrow-function/issue-13817.ts
Expand Down Expand Up @@ -11605,34 +11586,8 @@


### typescript/typeparams/line-breaking-after-extends.ts
```diff
export type OuterType1<
- LongerLongerLongerLongerInnerType extends
- LongerLongerLongerLongerOtherType<OneMoreType>,
+ LongerLongerLongerLongerInnerType extends LongerLongerLongerLongerOtherType<OneMoreType>,
> = { a: 1 };

export type OuterType2<
- LongerLongerLongerLongerInnerType extends
- LongerLongerLongerLongerLongerLongerLongerLongerOtherType,
+ LongerLongerLongerLongerInnerType extends LongerLongerLongerLongerLongerLongerLongerLongerOtherType,
> = { a: 1 };

export type OuterType3<
- LongerLongerLongerLongerInnerType extends
- LongerLongerLongerLongerLongerLo.ngerLongerLongerOtherType,
+ LongerLongerLongerLongerInnerType extends LongerLongerLongerLongerLongerLo.ngerLongerLongerOtherType,
> = { a: 1 };

export type OuterType4<
LongerLongerLongerLongerInnerType extends
| LongerLongerLongerLongerLongerLo
| ngerLongerLongerOtherType,
> = { a: 1 };

```

**Prettier Similarity**: 70.00%
**Prettier Similarity**: 100.00%


### typescript/typeparams/long-function-arg.ts
Expand Down
68 changes: 4 additions & 64 deletions crates/biome_js_formatter/report_incompatible.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
## Overall Metrics

**Average compatibility**: 95.89
**Average compatibility**: 96.01

<details>
<summary>Definition</summary>

$$average = \frac\{\sum_{file}^\{files}compatibility_\{file}}\{files}$$
</details>

**Compatible lines**: 96.51
**Compatible lines**: 96.54

<details>
<summary>Definition</summary>
Expand Down Expand Up @@ -3830,16 +3830,6 @@
**Prettier Similarity**: 88.89%


### typescript/arrows/type_params.ts
```diff
-<T,>(a) => {};
+<T>(a) => {};

```

**Prettier Similarity**: 0.00%


### typescript/assignment/issue-5370.ts
```diff
-const durabilityMetricsSelectable: Immutable.OrderedSet<SomeReportingMetric> =
Expand Down Expand Up @@ -4175,24 +4165,6 @@
**Prettier Similarity**: 87.10%


### typescript/compiler/contextualSignatureInstantiation2.ts
```diff
// dot f g x = f(g(x))
var dot: <T, S>(f: (_: T) => S) => <U>(g: (_: U) => T) => (_: U) => S;
dot =
<T, S>(f: (_: T) => S) =>
- <U,>(g: (_: U) => T): ((r: U) => S) =>
+ <U>(g: (_: U) => T): ((r: U) => S) =>
(x) =>
f(g(x));
var id: <T>(x: T) => T;
var r23 = dot(id)(id);

```

**Prettier Similarity**: 88.89%


### typescript/compiler/decrementAndIncrementOperators.ts
```diff
var x = 0;
Expand Down Expand Up @@ -5943,8 +5915,7 @@
function b<const T extends U>() {}
function c<T, const U>() {}
declare function d<const T>();
-<const T,>() => {};
+<const T>() => {};
<const T,>() => {};
<const T extends U>() => {};
(function <const T>() {});
(function <const T extends U>() {});
Expand Down Expand Up @@ -5976,7 +5947,7 @@

```

**Prettier Similarity**: 93.75%
**Prettier Similarity**: 96.88%


### typescript/typeparams/empty-parameters-with-arrow-function/issue-13817.ts
Expand Down Expand Up @@ -6044,37 +6015,6 @@
**Prettier Similarity**: 96.97%


### typescript/typeparams/line-breaking-after-extends.ts
```diff
export type OuterType1<
- LongerLongerLongerLongerInnerType extends
- LongerLongerLongerLongerOtherType<OneMoreType>,
+ LongerLongerLongerLongerInnerType extends LongerLongerLongerLongerOtherType<OneMoreType>,
> = { a: 1 };

export type OuterType2<
- LongerLongerLongerLongerInnerType extends
- LongerLongerLongerLongerLongerLongerLongerLongerOtherType,
+ LongerLongerLongerLongerInnerType extends LongerLongerLongerLongerLongerLongerLongerLongerOtherType,
> = { a: 1 };

export type OuterType3<
- LongerLongerLongerLongerInnerType extends
- LongerLongerLongerLongerLongerLo.ngerLongerLongerOtherType,
+ LongerLongerLongerLongerInnerType extends LongerLongerLongerLongerLongerLo.ngerLongerLongerOtherType,
> = { a: 1 };

export type OuterType4<
LongerLongerLongerLongerInnerType extends
| LongerLongerLongerLongerLongerLo
| ngerLongerLongerOtherType,
> = { a: 1 };

```

**Prettier Similarity**: 70.00%


### typescript/typeparams/print-width-120/issue-7542.tsx
```diff
export const Foo = forwardRef(
Expand Down

0 comments on commit db12581

Please sign in to comment.