From 05f1fb2fae4429d9e552b1607fe8f6b907509141 Mon Sep 17 00:00:00 2001 From: Victorien Elvinger Date: Wed, 6 Dec 2023 11:39:08 +0100 Subject: [PATCH] chore(js_formatter): update compat reports --- crates/biome_js_formatter/report.md | 912 +---------------- .../biome_js_formatter/report_incompatible.md | 936 +----------------- 2 files changed, 12 insertions(+), 1836 deletions(-) diff --git a/crates/biome_js_formatter/report.md b/crates/biome_js_formatter/report.md index 4f9579417dd8..88b55277c1ae 100644 --- a/crates/biome_js_formatter/report.md +++ b/crates/biome_js_formatter/report.md @@ -1,6 +1,6 @@ ## Overall Metrics -**Average compatibility**: 96.58 +**Average compatibility**: 96.78
Definition @@ -8,7 +8,7 @@ $$average = \frac\{\sum_{file}^\{files}compatibility_\{file}}\{files}$$
-**Compatible lines**: 97.53 +**Compatible lines**: 97.79
Definition @@ -376,37 +376,8 @@ ### js/arrows/issue-1389-curry.js -```diff - const foobar = - (argumentOne, argumentTwo, argumentThree) => - (...restOfTheArguments) => { - return "baz"; - }; - - const foobaz = - (argumentOne, argumentTwo, argumentThree) => (restOfTheArguments123, j) => { - return "baz"; - }; - --const makeSomeFunction = -- (services = { logger: null }) => -- (a, b, c) => -- services.logger(a, b, c); -+const makeSomeFunction = (services = { logger: null }) => (a, b, c) => -+ services.logger(a, b, c); - - const makeSomeFunction2 = - ( - services = { - logger: null, - }, - ) => - (a, b, c) => - services.logger(a, b, c); -``` - -**Prettier Similarity**: 83.33% +**Prettier Similarity**: 100.00% ### js/arrows/issue-4166-curry.js @@ -532,28 +503,8 @@ ### js/assignment/issue-15534.js -```diff --params["redirectTo"] = -- `${window.location.pathname}${window.location.search}${window.location.hash}`; -+params[ -+ "redirectTo" -+] = `${window.location.pathname}${window.location.search}${window.location.hash}`; - --params["redirectTo"]["codePointAt"]["name"] = -- `${window.location.pathname}${window.location.search}${window.location.hash}`; -+params["redirectTo"]["codePointAt"][ -+ "name" -+] = `${window.location.pathname}${window.location.search}${window.location.hash}`; - --params.redirectTo.bar.bar.ba.barab["foo"].abr = -- `${window.location.pathname}${window.location.search}${window.location.hash}`; -+params.redirectTo.bar.bar.ba.barab[ -+ "foo" -+].abr = `${window.location.pathname}${window.location.search}${window.location.hash}`; -``` - -**Prettier Similarity**: 18.18% +**Prettier Similarity**: 100.00% ### js/assignment/issue-1966.js @@ -2487,72 +2438,8 @@ ### js/destructuring/destructuring.js -```diff - const [one, two = null, three = null] = arr; - a = ([s = 1]) => 1; - const { children, ...props } = this.props; - - const { - user: { firstName, lastName }, - } = this.props; - - const { - name: { first, last }, - organisation: { - address: { street: orgStreetAddress, postcode: orgPostcode }, - }, - } = user; - - function f({ data: { name } }) {} - - const UserComponent = function ({ - name: { first, last }, - organisation: { - address: { street: orgStreetAddress, postcode: orgPostcode }, - }, - }) { - return; - }; - - const { - a, - b, - c, - d: { e }, - } = someObject; - - try { - // code - } catch ({ data: { message } }) { - // code - } - - try { - // code --} catch ({ -- data: { -- message: { errors }, -- }, --}) { -+} catch ({ data: { message: { errors } } }) { - // code - } - - const obj = { - func(id, { blog: { title } }) { - return id + title; - }, - }; - - class A { - func(id, { blog: { title } }) { - return id + title; - } - } -``` - -**Prettier Similarity**: 91.67% +**Prettier Similarity**: 100.00% ### js/destructuring/issue-5988.js @@ -5301,16 +5188,8 @@ ### jsx/cursor/in-jsx-text.js -```diff - <> -- a
hi
-+ a -+
hi
- ; -``` - -**Prettier Similarity**: 50.00% +**Prettier Similarity**: 100.00% ### jsx/deprecated-jsx-bracket-same-line-option/jsx.js @@ -5472,96 +5351,8 @@ ### jsx/jsx/arrow.js -```diff - () => ( - - - - ); --() => () => ( -- -- -- --); --() => () => () => ( -- -- -- --); -+() => () => -+ ( -+ -+ -+ -+ ); -+() => () => () => -+ ( -+ -+ -+ -+ ); - - () =>
Some text here
; - () => () =>
Some text here
; - () => () => () =>
Some text here
; - - () => ( -
- Long long long long long, very very long text. And more text. Another text. -
- ); --() => () => ( --
-- Long long long long long, very very long text. And more text. Another text. --
--); --() => () => () => ( --
-- Long long long long long, very very long text. And more text. Another text. --
--); -+() => () => -+ ( -+
-+ Long long long long long, very very long text. And more text. Another -+ text. -+
-+ ); -+() => () => () => -+ ( -+
-+ Long long long long long, very very long text. And more text. Another -+ text. -+
-+ ); - - - {(We) => - "The purple monkey danced with a tambourine made of cheese." + - "The robot chef cooked a cake that tasted like rainbows." + - "The talking pineapple sang a lullaby to the sleepy giraffe." - } - ; - - {(We) => (love) => - "The purple monkey danced with a tambourine made of cheese." + - "The robot chef cooked a cake that tasted like rainbows." + -- "The talking pineapple sang a lullaby to the sleepy giraffe." -- } -+ "The talking pineapple sang a lullaby to the sleepy giraffe."} - ; - - {(We) => (love) => (currying) => - "The purple monkey danced with a tambourine made of cheese." + - "The robot chef cooked a cake that tasted like rainbows." + -- "The talking pineapple sang a lullaby to the sleepy giraffe." -- } -+ "The talking pineapple sang a lullaby to the sleepy giraffe."} - ; -``` - -**Prettier Similarity**: 54.10% +**Prettier Similarity**: 100.00% ### jsx/jsx/attr-comments.js @@ -5783,70 +5574,8 @@ ### jsx/newlines/test.js -```diff - keep = ( -

- Welcome to the Universal React Starter-kyt. This starter - kyt should serve as the base for an advanced, server-rendered React app. -

- ); - - newlines_text =
hi there how are you are you fine today?
; - - newlines_text_spaced =
space above space below
; - - newlines_elems_spaced = ( -
- space above - - space below -
- ); - - newlines_mixed = ( -
- hi - there - how are you - are you fine today? -
- ); - - newlines_elems = ( -
-
-
-
- hi -
-+ - -+ - -
- ); - - regression_extra_newline = ( -
- - New Messages -
- ); - - regression_extra_newline_2 = ( -
- ( - - ) -
- ); -``` - -**Prettier Similarity**: 96.61% +**Prettier Similarity**: 100.00% ### jsx/newlines/windows.js @@ -5979,587 +5708,8 @@ ### jsx/text-wrap/test.js -```diff - // Wrapping text - x = ( -
- Some text that would need to wrap on to a new line in order to display - correctly and nicely -
- ); - - // Wrapping tags - x = ( -
- f f f f{" "} - f f -
- ); - - // Wrapping tags - x = ( -
- f - f - f - f - f - f -
- ); - - // Wrapping tags - x = ( -
- - - - aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa{" "} - f -
- ); - - // Wrapping tags - x = ( -
- {" "} - f -
- ); - - x = ( -
- before -
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at - mollis lorem. -
- after -
- ); - - x = ( -
- before{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff} - {stuff} - {stuff}after{stuff}after -
- ); - - x = ( -
- before {stuff} after {stuff} after {stuff} after {stuff} after {stuff} after{" "} - {stuff} {stuff} {stuff} after {stuff} after -
- ); - - x = ( -
- Please state your name and occupation for the board of{" "} - school directors. -
- ); - - function DiffOverview(props) { - const { source, target, since } = props; - return ( -
-
-

- This diff overview is computed against the current list of records in - this collection and the list it contained on {humanDate(since)} - . -

-

- Note: last_modified and schema record - metadata are omitted for easier review. -

-
- -
- ); - } - - x = ( - - - Starting at minute {graphActivity.startTime}, running for{" "} - {graphActivity.length} to minute{" "} - {graphActivity.startTime + graphActivity.length} - - - ); - - x = ( -
- First second third -
- Something -
-
- ); - - x = ( -
-
First
- Second -
Third
-
- ); - - x = ( -
- First
Second
Third -
- ); - - leading_whitespace = ( -
- {" "} - First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh - Twelfth Thirteenth Fourteenth -
- ); - - trailing_whitespace = ( -
- First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh - Twelfth Thirteenth Fourteenth{" "} -
- ); - - no_leading_or_trailing_whitespace = ( -
- First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh - Twelfth Thirteenth Fourteenth -
- ); - - facebook_translation_leave_text_around_tag = ( -
- First, (Second) -
- ); - - x = ( -
- First second third fourth fifth sixth seventh, ( - Second) -
- ); - - this_really_should_split_across_lines = ( -
- before{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff} - after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff} - after{stuff}after{stuff}after -
- ); - - unstable_before = ( -
- Your score:{" "} - {`${mini.crosstable.users[sessionUserId]} - ${ - mini.crosstable.users[user.id] - }`} -
- ); - - unstable_after_first_run = ( -
- Your score:{" "} - {`${mini.crosstable.users[sessionUserId]} - ${ - mini.crosstable.users[user.id] - }`} -
- ); - - solitary_whitespace = ( -
- {" "} -
- ); - - jsx_whitespace_on_newline = ( -
-
First
Second
Third
-
- ); - - jsx_around_multiline_element = ( -
- Before{" "} -
- { - "Enough text to make this element wrap on to multiple lines when formatting" - } -
{" "} - After -
- ); - - jsx_around_multiline_element_second_pass = ( -
- Before{" "} -
- { - "Enough text to make this element wrap on to multiple lines when formatting" - } -
{" "} - After -
- ); - - convert_space_expressions =
; - - x = ( -
- - - - - - -
- ); - - const Abc = () => { - return ( -
- Please state your name and occupation for the board of - directors. -
- ); - }; - - x =
Some stuff here
; - - headers_and_paragraphs = ( -
-

First

-

The first paragraph.

- -

Second

-

The second paragraph.

-
- ); - - no_text_one_tag_per_line = ( -
- - -
- ); - - with_text_fill_line = ( -
- Text - -
- ); - - line_after_br = ( -
- Text -
- More text -
- And more -
-
- ); - - line_after_br = ( -
- Text -
- More text -
- And more -
-
- ); - - line_after_br = ( -
- Text -
- More text -
- And more -
-
- ); - - line_after_br_2 = ( -
-- A
B
C -+ A -+
-+ B -+
-+ C -
- ); - - br_followed_by_whitespace = ( -
-
text -
- ); - - dont_preserve_blank_lines_when_jsx_contains_text = ( -
-
Zeroth
-+ -
First
- Second -
- ); - - multiple_expressions = ( -
- {header} - {body} - {footer} -
- ); - - single_expression_child_tags = ( -
- You currently have {dashboardStr} and{" "} - {userStr} -
- ); - - expression_does_not_break = ( -
- texty text text text text text text text text text text text{" "} - {this.props.type}{" "} -
- ); - - // FIXME - br_triggers_expression_break = ( -
-
- text text text text text text text text text text text { - this.props.type - }{" "} -
- ); - - jsx_whitespace_after_tag = ( -
- - {variable} - {" "} - ({variable}) -
- ); - - x = ( -
- ENDS IN
text text text text text text text text text text text
{" "} - HRS -
- ); - - x = ( -
-

Message

- Hello, I'm a simple message. -
- ); - - x = ( -
- Hello, I'm a simple message. -

Message

-
- ); - - x = ( -
-
-
-
-
- Line {startRange.row + 1}:{startRange.column + 1} -{" "} - {endRange.row + 1}:{endRange.column + 1} - {caller} -
-
-
-
-
- ); - - x = ( -
- {" "} -
text
-
- ); - - // NOTE: Multiple JSX whitespaces are collapsed into a single space. - x =
; - - // Don't break a self-closing element without attributes - // ---------- - x = ( -

- text text text text text text text text text text text text text text text -
- text text text text text text -

- ); - - x = ( -
-
First
-
Second
-
- ); - - x = ( -
-
First
-
Second
-
- ); - - x = ( -
-
First
-
Second
-
- ); - - x = ( -
-
- First -
- - -
- Second -
-
- ); - - x = ( -
-
- First -
- - -
- Second -
-
- ); - - x = ( -
-
- First -
- - -
- Second -
-
- ); - - x = ( -
- {hour}:{minute}:{second} -
- ); - - x = ( -
- {hour}:{minute}:{second} -
- ); - - x = ( -
- {hour}:{minute}:{second} -
- ); - - x = ( -
- text here.
-
- ); - - x =
Sales tax estimated using a rate of {salesTax * 100}%.
; - - x =
{title} 
; - - x = ( -
- - bar -
- ); - - x = ( -
- - {name}’s{" "} - - Hello world.
- You {type}ed this shipment to -
- ); - - x = ( - - {parameter.Description}: {errorMsg} - - ); - - x = ( - - ); - - x = Copy "{name}"; - - x = (avg. {value}/5); - - x = ( -

- Use the Button's -

- ); - - this_really_should_split_across_lines = ( -
- before{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff} - after{stuff}after -
- ); - - let myDiv = ReactTestUtils.renderIntoDocument( -
-
, -
-
, - ); - -``` -**Prettier Similarity**: 98.96% +**Prettier Similarity**: 100.00% ### typescript/abstract-class/export-default.ts @@ -9410,50 +8560,8 @@ ### typescript/last-argument-expansion/forward-ref.tsx -```diff --export const Link = forwardRef( -- function Link(props, ref) { -- return ; -- }, --); -+export const Link = forwardRef(function Link( -+ props, -+ ref, -+) { -+ return ; -+}); - - export const LinkWithLongName = forwardRef( - function Link(props, ref) { - return ; - }, - ); - - export const Arrow = forwardRef((props, ref) => { - return ; - }); - - export const ArrowWithLongName = forwardRef( - (props, ref) => { - return ; - }, - ); - --const Link = React.forwardRef( -- function Link(props, ref) { -- return ; -- }, --); -+const Link = React.forwardRef(function Link( -+ props, -+ ref, -+) { -+ return ; -+}); -``` - -**Prettier Similarity**: 58.62% +**Prettier Similarity**: 100.00% ### typescript/literal/multiline.ts diff --git a/crates/biome_js_formatter/report_incompatible.md b/crates/biome_js_formatter/report_incompatible.md index ea5604fd0a44..c6819b697c67 100644 --- a/crates/biome_js_formatter/report_incompatible.md +++ b/crates/biome_js_formatter/report_incompatible.md @@ -1,6 +1,6 @@ ## Overall Metrics -**Average compatibility**: 96.58 +**Average compatibility**: 96.78
Definition @@ -8,7 +8,7 @@ $$average = \frac\{\sum_{file}^\{files}compatibility_\{file}}\{files}$$
-**Compatible lines**: 97.53 +**Compatible lines**: 97.79
Definition @@ -230,40 +230,6 @@ **Prettier Similarity**: 98.17% -### js/arrows/issue-1389-curry.js -```diff - const foobar = - (argumentOne, argumentTwo, argumentThree) => - (...restOfTheArguments) => { - return "baz"; - }; - - const foobaz = - (argumentOne, argumentTwo, argumentThree) => (restOfTheArguments123, j) => { - return "baz"; - }; - --const makeSomeFunction = -- (services = { logger: null }) => -- (a, b, c) => -- services.logger(a, b, c); -+const makeSomeFunction = (services = { logger: null }) => (a, b, c) => -+ services.logger(a, b, c); - - const makeSomeFunction2 = - ( - services = { - logger: null, - }, - ) => - (a, b, c) => - services.logger(a, b, c); - -``` - -**Prettier Similarity**: 83.33% - - ### js/arrows/newline-before-arrow/newline-before-arrow.js ```diff -async (x) => x; @@ -276,31 +242,6 @@ **Prettier Similarity**: 0.00% -### js/assignment/issue-15534.js -```diff --params["redirectTo"] = -- `${window.location.pathname}${window.location.search}${window.location.hash}`; -+params[ -+ "redirectTo" -+] = `${window.location.pathname}${window.location.search}${window.location.hash}`; - --params["redirectTo"]["codePointAt"]["name"] = -- `${window.location.pathname}${window.location.search}${window.location.hash}`; -+params["redirectTo"]["codePointAt"][ -+ "name" -+] = `${window.location.pathname}${window.location.search}${window.location.hash}`; - --params.redirectTo.bar.bar.ba.barab["foo"].abr = -- `${window.location.pathname}${window.location.search}${window.location.hash}`; -+params.redirectTo.bar.bar.ba.barab[ -+ "foo" -+].abr = `${window.location.pathname}${window.location.search}${window.location.hash}`; - -``` - -**Prettier Similarity**: 18.18% - - ### js/comments-closure-typecast/satisfies.js ```diff -module.exports = /** @satisfies {Record} */ ({ @@ -1186,75 +1127,6 @@ **Prettier Similarity**: 98.08% -### js/destructuring/destructuring.js -```diff - const [one, two = null, three = null] = arr; - a = ([s = 1]) => 1; - const { children, ...props } = this.props; - - const { - user: { firstName, lastName }, - } = this.props; - - const { - name: { first, last }, - organisation: { - address: { street: orgStreetAddress, postcode: orgPostcode }, - }, - } = user; - - function f({ data: { name } }) {} - - const UserComponent = function ({ - name: { first, last }, - organisation: { - address: { street: orgStreetAddress, postcode: orgPostcode }, - }, - }) { - return; - }; - - const { - a, - b, - c, - d: { e }, - } = someObject; - - try { - // code - } catch ({ data: { message } }) { - // code - } - - try { - // code --} catch ({ -- data: { -- message: { errors }, -- }, --}) { -+} catch ({ data: { message: { errors } } }) { - // code - } - - const obj = { - func(id, { blog: { title } }) { - return id + title; - }, - }; - - class A { - func(id, { blog: { title } }) { - return id + title; - } - } - -``` - -**Prettier Similarity**: 91.67% - - ### js/explicit-resource-management/valid-await-using-binding-escaped.js ```diff async function f() { @@ -2045,19 +1917,6 @@ **Prettier Similarity**: 96.55% -### jsx/cursor/in-jsx-text.js -```diff - <> -- a
hi
-+ a -+
hi
- ; - -``` - -**Prettier Similarity**: 50.00% - - ### jsx/fbt/test.js ```diff x = ( @@ -2186,99 +2045,6 @@ **Prettier Similarity**: 83.65% -### jsx/jsx/arrow.js -```diff - () => ( - - - - ); --() => () => ( -- -- -- --); --() => () => () => ( -- -- -- --); -+() => () => -+ ( -+ -+ -+ -+ ); -+() => () => () => -+ ( -+ -+ -+ -+ ); - - () =>
Some text here
; - () => () =>
Some text here
; - () => () => () =>
Some text here
; - - () => ( -
- Long long long long long, very very long text. And more text. Another text. -
- ); --() => () => ( --
-- Long long long long long, very very long text. And more text. Another text. --
--); --() => () => () => ( --
-- Long long long long long, very very long text. And more text. Another text. --
--); -+() => () => -+ ( -+
-+ Long long long long long, very very long text. And more text. Another -+ text. -+
-+ ); -+() => () => () => -+ ( -+
-+ Long long long long long, very very long text. And more text. Another -+ text. -+
-+ ); - - - {(We) => - "The purple monkey danced with a tambourine made of cheese." + - "The robot chef cooked a cake that tasted like rainbows." + - "The talking pineapple sang a lullaby to the sleepy giraffe." - } - ; - - {(We) => (love) => - "The purple monkey danced with a tambourine made of cheese." + - "The robot chef cooked a cake that tasted like rainbows." + -- "The talking pineapple sang a lullaby to the sleepy giraffe." -- } -+ "The talking pineapple sang a lullaby to the sleepy giraffe."} - ; - - {(We) => (love) => (currying) => - "The purple monkey danced with a tambourine made of cheese." + - "The robot chef cooked a cake that tasted like rainbows." + -- "The talking pineapple sang a lullaby to the sleepy giraffe." -- } -+ "The talking pineapple sang a lullaby to the sleepy giraffe."} - ; - -``` - -**Prettier Similarity**: 54.10% - - ### jsx/jsx/await.js ```diff async function testFunction() { @@ -2397,73 +2163,6 @@ **Prettier Similarity**: 79.41% -### jsx/newlines/test.js -```diff - keep = ( -

- Welcome to the Universal React Starter-kyt. This starter - kyt should serve as the base for an advanced, server-rendered React app. -

- ); - - newlines_text =
hi there how are you are you fine today?
; - - newlines_text_spaced =
space above space below
; - - newlines_elems_spaced = ( -
- space above - - space below -
- ); - - newlines_mixed = ( -
- hi - there - how are you - are you fine today? -
- ); - - newlines_elems = ( -
-
-
-
- hi -
-+ - -+ - -
- ); - - regression_extra_newline = ( -
- - New Messages -
- ); - - regression_extra_newline_2 = ( -
- ( - - ) -
- ); - -``` - -**Prettier Similarity**: 96.61% - - ### jsx/spread/attribute.js ```diff
; @@ -2558,590 +2257,6 @@ **Prettier Similarity**: 84.38% -### jsx/text-wrap/test.js -```diff - // Wrapping text - x = ( -
- Some text that would need to wrap on to a new line in order to display - correctly and nicely -
- ); - - // Wrapping tags - x = ( -
- f f f f{" "} - f f -
- ); - - // Wrapping tags - x = ( -
- f - f - f - f - f - f -
- ); - - // Wrapping tags - x = ( -
- ); - - // Wrapping tags - x = ( -
- {" "} - f -
- ); - - x = ( -
- before -
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at - mollis lorem. -
- after -
- ); - - x = ( -
- before{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff} - {stuff} - {stuff}after{stuff}after -
- ); - - x = ( -
- before {stuff} after {stuff} after {stuff} after {stuff} after {stuff} after{" "} - {stuff} {stuff} {stuff} after {stuff} after -
- ); - - x = ( -
- Please state your name and occupation for the board of{" "} - school directors. -
- ); - - function DiffOverview(props) { - const { source, target, since } = props; - return ( -
-
-

- This diff overview is computed against the current list of records in - this collection and the list it contained on {humanDate(since)} - . -

-

- Note: last_modified and schema record - metadata are omitted for easier review. -

-
- -
- ); - } - - x = ( - - - Starting at minute {graphActivity.startTime}, running for{" "} - {graphActivity.length} to minute{" "} - {graphActivity.startTime + graphActivity.length} - - - ); - - x = ( -
- First second third -
- Something -
-
- ); - - x = ( -
-
First
- Second -
Third
-
- ); - - x = ( -
- First
Second
Third -
- ); - - leading_whitespace = ( -
- {" "} - First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh - Twelfth Thirteenth Fourteenth -
- ); - - trailing_whitespace = ( -
- First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh - Twelfth Thirteenth Fourteenth{" "} -
- ); - - no_leading_or_trailing_whitespace = ( -
- First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh - Twelfth Thirteenth Fourteenth -
- ); - - facebook_translation_leave_text_around_tag = ( -
- First, (Second) -
- ); - - x = ( -
- First second third fourth fifth sixth seventh, ( - Second) -
- ); - - this_really_should_split_across_lines = ( -
- before{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff} - after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff} - after{stuff}after{stuff}after -
- ); - - unstable_before = ( -
- Your score:{" "} - {`${mini.crosstable.users[sessionUserId]} - ${ - mini.crosstable.users[user.id] - }`} -
- ); - - unstable_after_first_run = ( -
- Your score:{" "} - {`${mini.crosstable.users[sessionUserId]} - ${ - mini.crosstable.users[user.id] - }`} -
- ); - - solitary_whitespace = ( -
- {" "} -
- ); - - jsx_whitespace_on_newline = ( -
-
First
Second
Third
-
- ); - - jsx_around_multiline_element = ( -
- Before{" "} -
- { - "Enough text to make this element wrap on to multiple lines when formatting" - } -
{" "} - After -
- ); - - jsx_around_multiline_element_second_pass = ( -
- Before{" "} -
- { - "Enough text to make this element wrap on to multiple lines when formatting" - } -
{" "} - After -
- ); - - convert_space_expressions =
; - - x = ( -
- - - - - - -
- ); - - const Abc = () => { - return ( -
- Please state your name and occupation for the board of - directors. -
- ); - }; - - x =
Some stuff here
; - - headers_and_paragraphs = ( -
-

First

-

The first paragraph.

- -

Second

-

The second paragraph.

-
- ); - - no_text_one_tag_per_line = ( -
- - -
- ); - - with_text_fill_line = ( -
- Text - -
- ); - - line_after_br = ( -
- Text -
- More text -
- And more -
-
- ); - - line_after_br = ( -
- Text -
- More text -
- And more -
-
- ); - - line_after_br = ( -
- Text -
- More text -
- And more -
-
- ); - - line_after_br_2 = ( -
-- A
B
C -+ A -+
-+ B -+
-+ C -
- ); - - br_followed_by_whitespace = ( -
-
text -
- ); - - dont_preserve_blank_lines_when_jsx_contains_text = ( -
-
Zeroth
-+ -
First
- Second -
- ); - - multiple_expressions = ( -
- {header} - {body} - {footer} -
- ); - - single_expression_child_tags = ( -
- You currently have {dashboardStr} and{" "} - {userStr} -
- ); - - expression_does_not_break = ( -
- texty text text text text text text text text text text text{" "} - {this.props.type}{" "} -
- ); - - // FIXME - br_triggers_expression_break = ( -
-
- text text text text text text text text text text text { - this.props.type - }{" "} -
- ); - - jsx_whitespace_after_tag = ( -
- - {variable} - {" "} - ({variable}) -
- ); - - x = ( -
- ENDS IN
text text text text text text text text text text text
{" "} - HRS -
- ); - - x = ( -
-

Message

- Hello, I'm a simple message. -
- ); - - x = ( -
- Hello, I'm a simple message. -

Message

-
- ); - - x = ( -
-
-
-
-
- Line {startRange.row + 1}:{startRange.column + 1} -{" "} - {endRange.row + 1}:{endRange.column + 1} - {caller} -
-
-
-
-
- ); - - x = ( -
- {" "} -
text
-
- ); - - // NOTE: Multiple JSX whitespaces are collapsed into a single space. - x =
; - - // Don't break a self-closing element without attributes - // ---------- - x = ( -

- text text text text text text text text text text text text text text text -
- text text text text text text -

- ); - - x = ( -
-
First
-
Second
-
- ); - - x = ( -
-
First
-
Second
-
- ); - - x = ( -
-
First
-
Second
-
- ); - - x = ( -
-
- First -
- - -
- Second -
-
- ); - - x = ( -
-
- First -
- - -
- Second -
-
- ); - - x = ( -
-
- First -
- - -
- Second -
-
- ); - - x = ( -
- {hour}:{minute}:{second} -
- ); - - x = ( -
- {hour}:{minute}:{second} -
- ); - - x = ( -
- {hour}:{minute}:{second} -
- ); - - x = ( -
- text here.
-
- ); - - x =
Sales tax estimated using a rate of {salesTax * 100}%.
; - - x =
{title} 
; - - x = ( -
- - bar -
- ); - - x = ( -
- - {name}’s{" "} - - Hello world.
- You {type}ed this shipment to -
- ); - - x = ( - - {parameter.Description}: {errorMsg} - - ); - - x = ( - - ); - - x = Copy "{name}"; - - x = (avg. {value}/5); - - x = ( -

- Use the Button's -

- ); - - this_really_should_split_across_lines = ( -
- before{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff} - after{stuff}after -
- ); - - let myDiv = ReactTestUtils.renderIntoDocument( -
-
, -
-
, - ); - -``` - -**Prettier Similarity**: 98.96% - - ### typescript/arrow/comments.ts ```diff const fn1 = () => { @@ -4294,53 +3409,6 @@ **Prettier Similarity**: 27.87% -### typescript/last-argument-expansion/forward-ref.tsx -```diff --export const Link = forwardRef( -- function Link(props, ref) { -- return ; -- }, --); -+export const Link = forwardRef(function Link( -+ props, -+ ref, -+) { -+ return ; -+}); - - export const LinkWithLongName = forwardRef( - function Link(props, ref) { - return ; - }, - ); - - export const Arrow = forwardRef((props, ref) => { - return ; - }); - - export const ArrowWithLongName = forwardRef( - (props, ref) => { - return ; - }, - ); - --const Link = React.forwardRef( -- function Link(props, ref) { -- return ; -- }, --); -+const Link = React.forwardRef(function Link( -+ props, -+ ref, -+) { -+ return ; -+}); - -``` - -**Prettier Similarity**: 58.62% - - ### typescript/mapped-type/break-mode/break-mode.ts ```diff type A1 = { readonly [A in B]: T };