Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"@typescript-eslint/parser": "8.46.4",
"dprint": "0.50.2",
"eslint": "9.39.1",
"prettier": "3.6.2"
"prettier": "3.7.4"
}
}
2 changes: 1 addition & 1 deletion crates/biome_formatter_test/src/prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"start": "node prepare_tests"
},
"dependencies": {
"prettier": "3.6.2"
"prettier": "3.7.1"
},
"private": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<button onclick="alert( '1')">click me!</button>

<div onclick="handleClick( event )" onmouseover="showTooltip( this )" onmouseout="hideTooltip( )">Hover me</div>

<img onerror='handleError( this )' onload="imageLoaded( event )" />

<button onclick="(event) => { console.log('clicked'); handleClick( event ); }">Modern JS</button>

<div onclick="processData( { id: 123, name: 'test' }, [ 1, 2, 3 ] )">Data</div>

<button onclick="api.user.get( 123 ).then( data => updateUI( data ) )">API Call</button>

<input onfocus="highlightField( this )" onblur="validateField( this.value )" />
<select onchange="filterResults( this.value, this.selectedIndex )">
<option>Option 1</option>
</select>

<button onclick="
alert(1); alert(2);
">Click</button>

<button onclick="
return false
">Click</button>

<button onclick="
console.log(arguments)
">Click</button>

<button onclick="
console.log(onclick)
">Click</button>

<button onclick="
'use strict'
console.log(onclick)
">Click</button>
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<button onclick="alert('1')">click me!</button>

<div
onclick="handleClick(event)"
onmouseover="showTooltip(this)"
onmouseout="hideTooltip()"
>
Hover me
</div>

<img onerror="handleError(this)" onload="imageLoaded(event)" />

<button
onclick="
(event) => {
console.log('clicked');
handleClick(event);
}
"
>
Modern JS
</button>

<div onclick="processData({ id: 123, name: 'test' }, [1, 2, 3])">Data</div>

<button onclick="api.user.get(123).then((data) => updateUI(data))">
API Call
</button>

<input onfocus="highlightField(this)" onblur="validateField(this.value)" />
<select onchange="filterResults(this.value, this.selectedIndex)">
<option>Option 1</option>
</select>

<button
onclick="
alert(1);
alert(2);
"
>
Click
</button>

<button onclick="return false;">Click</button>

<button onclick="console.log(arguments)">Click</button>

<button onclick="console.log(onclick)">Click</button>

<button
onclick='
"use strict";
console.log(onclick);
'
>
Click
</button>
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<button onclick="alert('1')">click me!</button>

<div
onclick="handleClick(event)"
onmouseover="showTooltip(this)"
onmouseout="hideTooltip()"
>
Hover me
</div>

<img onerror="handleError(this)" onload="imageLoaded(event)" />

<button
onclick="
(event) => {
console.log('clicked');
handleClick(event);
}
"
>
Modern JS
</button>

<div onclick="processData({ id: 123, name: 'test' }, [1, 2, 3])">Data</div>

<button onclick="api.user.get(123).then((data) => updateUI(data))">
API Call
</button>

<input onfocus="highlightField(this)" onblur="validateField(this.value)" />
<select onchange="filterResults(this.value, this.selectedIndex)">
<option>Option 1</option>
</select>

<button
onclick="
alert(1);
alert(2);
"
>
Click
</button>

<button onclick="return false;">Click</button>

<button onclick="console.log(arguments)">Click</button>

<button onclick="console.log(onclick)">Click</button>

<button
onclick="
&quot;use strict&quot;;
console.log(onclick);
"
>
Click
</button>
Loading