Skip to content

Commit ae30d82

Browse files
committed
biome fixes
1 parent 6704dce commit ae30d82

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

examples/rich-text-editor/rich_text_editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ function traverseMdastNode(node, delta, attributes = {}) {
230230
break;
231231

232232
case "listItem": {
233+
// biome-ignore lint/correctness/noUnusedVariables: object destructuring with a spread
233234
const { list, ...listItemChildrenAttributes } = attributes;
234235

235236
for (const child of node.children || []) {

examples/using react and other custom scripts and styles/my_react_component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Here we are using React and ReactDOM directly, but this file could be a compiled
22
// version of a React component written in JSX.
33

4-
function MyComponent({ greeting_name }) {
4+
function _MyComponent({ greeting_name }) {
55
const [count, setCount] = React.useState(0);
66
return React.createElement(
77
"button",

sqlpage/apexcharts.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ sqlpage_chart = (() => {
128128
const categories =
129129
series.length > 0 && typeof series[0].data[0].x === "string";
130130
if (data.type === "pie") {
131-
labels = data.points.map(([name, x, y]) => x || name);
132-
series = data.points.map(([name, x, y]) => Number.parseFloat(y));
131+
labels = data.points.map(([name, x, _y]) => x || name);
132+
series = data.points.map(([_name, _x, y]) => Number.parseFloat(y));
133133
} else if (categories && data.type === "bar" && series.length > 1)
134134
series = align_categories(series);
135135

@@ -166,8 +166,7 @@ sqlpage_chart = (() => {
166166
: data.type === "pie"
167167
? (value, { seriesIndex, w }) =>
168168
`${w.config.labels[seriesIndex]}: ${value.toFixed()}%`
169-
: (value, { seriesIndex, w }) =>
170-
value?.toLocaleString?.() || value,
169+
: (value) => value?.toLocaleString?.() || value,
171170
},
172171
fill: {
173172
type: data.type === "area" ? "gradient" : "solid",
@@ -260,7 +259,7 @@ sqlpage_chart = (() => {
260259
c.removeAttribute("data-pre-init");
261260
}
262261

263-
function bubbleTooltip({ series, seriesIndex, dataPointIndex, w }) {
262+
function bubbleTooltip({ seriesIndex, dataPointIndex, w }) {
264263
const { name, data } = w.config.series[seriesIndex];
265264
const point = data[dataPointIndex];
266265

sqlpage/sqlpage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function table_parse_data(table_el, sort_buttons) {
107107
const cells = tr_el.getElementsByTagName("td");
108108
return {
109109
el: tr_el,
110-
sort_keys: sort_buttons.map((btn_el, idx) => {
110+
sort_keys: sort_buttons.map((_btn_el, idx) => {
111111
const str = cells[idx]?.textContent;
112112
const num = is_num[idx] ? Number.parseFloat(str) : Number.NaN;
113113
return { num, str };

tests/end-to-end/official-site.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Page, expect, test } from "@playwright/test";
1+
import { expect, type Page, test } from "@playwright/test";
22

33
const BASE = "http://localhost:8080/";
44

0 commit comments

Comments
 (0)