Switch to double quotes and reformat codebase with Biome

This commit is contained in:
Mohamed Boudra
2026-03-21 20:22:15 +07:00
parent ab40786882
commit f6579dbeb4
805 changed files with 38132 additions and 40175 deletions
+9 -20
View File
@@ -3,24 +3,14 @@ import { getMarkdownListMarker } from "./markdown-list";
describe("getMarkdownListMarker", () => {
it("returns a bullet marker for unordered list items", () => {
expect(
getMarkdownListMarker(
{ index: 0 },
[{ type: "bullet_list" }]
)
).toEqual({
expect(getMarkdownListMarker({ index: 0 }, [{ type: "bullet_list" }])).toEqual({
isOrdered: false,
marker: "•",
});
});
it("returns numbered markers for ordered list items", () => {
expect(
getMarkdownListMarker(
{ index: 1, markup: "." },
[{ type: "ordered_list" }]
)
).toEqual({
expect(getMarkdownListMarker({ index: 1, markup: "." }, [{ type: "ordered_list" }])).toEqual({
isOrdered: true,
marker: "2.",
});
@@ -28,10 +18,9 @@ describe("getMarkdownListMarker", () => {
it("respects ordered list start attribute", () => {
expect(
getMarkdownListMarker(
{ index: 2, markup: ")" },
[{ type: "ordered_list", attributes: { start: "5" } }]
)
getMarkdownListMarker({ index: 2, markup: ")" }, [
{ type: "ordered_list", attributes: { start: "5" } },
]),
).toEqual({
isOrdered: true,
marker: "7)",
@@ -40,10 +29,10 @@ describe("getMarkdownListMarker", () => {
it("prefers the nearest list ancestor in nested lists", () => {
expect(
getMarkdownListMarker(
{ index: 0, markup: "." },
[{ type: "ordered_list" }, { type: "bullet_list" }]
)
getMarkdownListMarker({ index: 0, markup: "." }, [
{ type: "ordered_list" },
{ type: "bullet_list" },
]),
).toEqual({
isOrdered: true,
marker: "1.",