From 533b390149ba7957c8e96875b3ed2dc4f29343f7 Mon Sep 17 00:00:00 2001 From: Gowtham G Date: Thu, 26 Jun 2025 21:55:23 +0530 Subject: [PATCH 1/3] chore(deps): update dependency @biomejs/biome to v2 --- biome.json | 8 +- examples/react-native-marked-sample/App.tsx | 8 +- package.json | 2 +- src/components/MDImage.tsx | 10 +- src/components/MDSvg.tsx | 8 +- src/components/MDTable.tsx | 6 +- src/hooks/useMarkdown.ts | 8 +- src/index.ts | 4 +- src/lib/Markdown.tsx | 4 +- src/lib/Parser.tsx | 10 +- src/lib/Renderer.tsx | 22 ++--- src/lib/__perf__/Markdown.perf-test.tsx | 4 +- src/lib/__tests__/Markdown.spec.tsx | 6 +- src/lib/__tests__/Renderer.spec.tsx | 6 +- src/lib/types.ts | 6 +- src/theme/__tests__/styles.spec.ts | 2 +- src/theme/styles.ts | 4 +- src/utils/__tests__/table.spec.ts | 2 +- yarn.lock | 104 ++++++++++---------- 19 files changed, 111 insertions(+), 113 deletions(-) diff --git a/biome.json b/biome.json index b21f7091..422675d3 100644 --- a/biome.json +++ b/biome.json @@ -1,8 +1,6 @@ { - "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", - "organizeImports": { - "enabled": false - }, + "$schema": "https://biomejs.dev/schemas/2.0.5/schema.json", + "assist": { "actions": { "source": { "organizeImports": "on" } } }, "linter": { "enabled": true, "rules": { @@ -19,7 +17,7 @@ "enabled": true }, "files": { - "ignore": ["node_modules/", "coverage/", "dist/"] + "includes": ["src/**", "examples/**", "dangerfile.ts"] }, "javascript": { "jsxRuntime": "reactClassic" diff --git a/examples/react-native-marked-sample/App.tsx b/examples/react-native-marked-sample/App.tsx index 6b92cc3e..19ac66c1 100644 --- a/examples/react-native-marked-sample/App.tsx +++ b/examples/react-native-marked-sample/App.tsx @@ -1,15 +1,15 @@ import React, { type ReactNode } from "react"; import { SafeAreaView, - StyleSheet, StatusBar, - useColorScheme, + StyleSheet, Text, type TextStyle, + useColorScheme, } from "react-native"; import Markdown, { - Renderer, MarkedTokenizer, + Renderer, type RendererInterface, type Tokens, } from "react-native-marked"; @@ -17,7 +17,7 @@ import { MD_STRING } from "./const"; class CustomTokenizer extends MarkedTokenizer { codespan(this: MarkedTokenizer, src: string): Tokens.Codespan | undefined { - const match = src.match(/^\$+([^\$\n]+?)\$+/); + const match = src.match(/^\$+([^$\n]+?)\$+/); if (match?.[1]) { return { type: "codespan", diff --git a/package.json b/package.json index d49c2edb..4678cd1b 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@babel/core": "7.27.4", "@babel/helper-explode-assignable-expression": "7.18.6", "@babel/preset-env": "7.27.2", - "@biomejs/biome": "1.9.4", + "@biomejs/biome": "2.0.5", "@commitlint/config-conventional": "19.8.1", "@evilmartians/lefthook": "1.11.14", "@react-native/babel-preset": "0.78.2", diff --git a/src/components/MDImage.tsx b/src/components/MDImage.tsx index 8cd6f670..6fcaaa1d 100644 --- a/src/components/MDImage.tsx +++ b/src/components/MDImage.tsx @@ -6,8 +6,8 @@ import React, { } from "react"; import { ActivityIndicator, - ImageBackground, Image, + ImageBackground, type ImageStyle, } from "react-native"; @@ -34,10 +34,6 @@ const MDImage: FunctionComponent = ({ aspectRatio: undefined, }); - useEffect(() => { - fetchOriginalSizeFromRemoteImage(); - }, []); - /** * Fetches image dimension * Sets aspect ratio if resolved @@ -63,6 +59,10 @@ const MDImage: FunctionComponent = ({ ); }; + useEffect(() => { + fetchOriginalSizeFromRemoteImage(); + }); + return ( = ({ uri, alt = "image" }) => { error: false, aspectRatio: width / height, }); - } catch (e) { + } catch (_e) { setSvgState((state) => ({ ...state, error: true, diff --git a/src/components/MDTable.tsx b/src/components/MDTable.tsx index 157962ea..0d4512c8 100644 --- a/src/components/MDTable.tsx +++ b/src/components/MDTable.tsx @@ -1,6 +1,6 @@ -import React, { memo, type FunctionComponent, type ReactNode } from "react"; -import { View, ScrollView, type ViewStyle } from "react-native"; -import { Table, TableWrapper, Cell } from "react-native-reanimated-table"; +import React, { type FunctionComponent, memo, type ReactNode } from "react"; +import { ScrollView, View, type ViewStyle } from "react-native"; +import { Cell, Table, TableWrapper } from "react-native-reanimated-table"; type MDTableProps = { header: ReactNode[][]; diff --git a/src/hooks/useMarkdown.ts b/src/hooks/useMarkdown.ts index 91d9659a..80f00343 100644 --- a/src/hooks/useMarkdown.ts +++ b/src/hooks/useMarkdown.ts @@ -1,11 +1,11 @@ -import { useMemo, type ReactNode } from "react"; import { lexer, type Tokenizer } from "marked"; -import type { MarkedStyles, UserTheme } from "./../theme/types"; +import { type ReactNode, useMemo } from "react"; +import type { ColorSchemeName } from "react-native"; import Parser from "../lib/Parser"; import Renderer from "../lib/Renderer"; -import getStyles from "./../theme/styles"; -import type { ColorSchemeName } from "react-native"; import type { RendererInterface } from "../lib/types"; +import getStyles from "./../theme/styles"; +import type { MarkedStyles, UserTheme } from "./../theme/types"; export interface useMarkdownHookOptions { colorScheme?: ColorSchemeName; diff --git a/src/index.ts b/src/index.ts index 60e87fa3..131b562d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,8 @@ -import { Tokenizer as MarkedTokenizer, marked } from "marked"; import type { Token, Tokens } from "marked"; +import { Tokenizer as MarkedTokenizer, marked } from "marked"; +import useMarkdown, { type useMarkdownHookOptions } from "./hooks/useMarkdown"; import Markdown from "./lib/Markdown"; import Renderer from "./lib/Renderer"; -import useMarkdown, { type useMarkdownHookOptions } from "./hooks/useMarkdown"; import type { MarkdownProps, ParserOptions, diff --git a/src/lib/Markdown.tsx b/src/lib/Markdown.tsx index b0823649..10aad35c 100644 --- a/src/lib/Markdown.tsx +++ b/src/lib/Markdown.tsx @@ -1,7 +1,7 @@ -import React, { useCallback, type ReactElement, type ReactNode } from "react"; +import React, { type ReactElement, type ReactNode, useCallback } from "react"; import { FlatList, useColorScheme } from "react-native"; -import type { MarkdownProps } from "./types"; import useMarkdown from "../hooks/useMarkdown"; +import type { MarkdownProps } from "./types"; const Markdown = ({ value, diff --git a/src/lib/Parser.tsx b/src/lib/Parser.tsx index 872642e1..078a2023 100644 --- a/src/lib/Parser.tsx +++ b/src/lib/Parser.tsx @@ -1,11 +1,11 @@ -import type { ReactNode } from "react"; -import type { TextStyle, ViewStyle, ImageStyle } from "react-native"; -import type { Token, Tokens } from "marked"; import { decode } from "html-entities"; +import type { Token, Tokens } from "marked"; +import type { ReactNode } from "react"; +import type { ImageStyle, TextStyle, ViewStyle } from "react-native"; import type { MarkedStyles } from "../theme/types"; -import type { RendererInterface, ParserOptions } from "./types"; -import { getValidURL } from "./../utils/url"; import { getTableColAlignmentStyle } from "./../utils/table"; +import { getValidURL } from "./../utils/url"; +import type { ParserOptions, RendererInterface } from "./types"; class Parser { private renderer: RendererInterface; diff --git a/src/lib/Renderer.tsx b/src/lib/Renderer.tsx index 47a39841..e0a5ca10 100644 --- a/src/lib/Renderer.tsx +++ b/src/lib/Renderer.tsx @@ -1,24 +1,24 @@ +import Decimal from "@jsamr/counter-style/presets/decimal"; +import Disc from "@jsamr/counter-style/presets/disc"; +import MarkedList from "@jsamr/react-native-li"; +import Slugger from "github-slugger"; import React, { type ReactNode } from "react"; import { + Dimensions, + type ImageStyle, ScrollView, - View, Text, - TouchableHighlight, type TextStyle, + TouchableHighlight, + View, type ViewStyle, - type ImageStyle, - Dimensions, } from "react-native"; -import MarkedList from "@jsamr/react-native-li"; -import Disc from "@jsamr/counter-style/presets/disc"; -import Decimal from "@jsamr/counter-style/presets/decimal"; -import Slugger from "github-slugger"; import MDImage from "./../components/MDImage"; -import { onLinkPress } from "../utils/handlers"; -import type { RendererInterface } from "./types"; -import { getTableWidthArr } from "../utils/table"; import MDSvg from "./../components/MDSvg"; import MDTable from "./../components/MDTable"; +import { onLinkPress } from "../utils/handlers"; +import { getTableWidthArr } from "../utils/table"; +import type { RendererInterface } from "./types"; class Renderer implements RendererInterface { private slugPrefix = "react-native-marked-ele"; diff --git a/src/lib/__perf__/Markdown.perf-test.tsx b/src/lib/__perf__/Markdown.perf-test.tsx index 50c9e0f3..d6d39d24 100644 --- a/src/lib/__perf__/Markdown.perf-test.tsx +++ b/src/lib/__perf__/Markdown.perf-test.tsx @@ -1,9 +1,9 @@ +import { screen } from "@testing-library/react-native"; import React from "react"; import { StyleSheet } from "react-native"; -import { screen } from "@testing-library/react-native"; import { measureRenders } from "reassure"; -import Markdown from "../Markdown"; import type { MarkedStyles, UserTheme } from "../../theme/types"; +import Markdown from "../Markdown"; const mdString = `Markdown Quick Reference ======================== diff --git a/src/lib/__tests__/Markdown.spec.tsx b/src/lib/__tests__/Markdown.spec.tsx index 82ec8848..3eb3a404 100644 --- a/src/lib/__tests__/Markdown.spec.tsx +++ b/src/lib/__tests__/Markdown.spec.tsx @@ -1,10 +1,10 @@ -import React, { type ReactNode } from "react"; import { render, screen, waitFor } from "@testing-library/react-native"; +import { Tokenizer, type Tokens } from "marked"; +import React, { type ReactNode } from "react"; import { Text, type TextStyle } from "react-native"; import Markdown from "../Markdown"; import Renderer from "../Renderer"; import type { RendererInterface } from "../types"; -import { Tokenizer, type Tokens } from "marked"; // https://www.markdownguide.org/basic-syntax/#headings describe("Headings", () => { @@ -826,7 +826,7 @@ describe("Tokenizer", () => { class CustomTokenizer extends Tokenizer { codespan(src: string): Tokens.Codespan | undefined { - const match = src.match(/^\$+([^\$\n]+?)\$+/); + const match = src.match(/^\$+([^$\n]+?)\$+/); if (match?.[1]) { return { type: "codespan", diff --git a/src/lib/__tests__/Renderer.spec.tsx b/src/lib/__tests__/Renderer.spec.tsx index e1eab49b..75b6f2b7 100644 --- a/src/lib/__tests__/Renderer.spec.tsx +++ b/src/lib/__tests__/Renderer.spec.tsx @@ -1,14 +1,14 @@ -import { Linking, type ColorSchemeName } from "react-native"; import { fireEvent, render, screen, waitFor, } from "@testing-library/react-native"; -import Renderer from "../Renderer"; +import type { ReactElement } from "react"; +import { type ColorSchemeName, Linking } from "react-native"; import getStyles from "../../theme/styles"; import type { MarkedStyles } from "../../theme/types"; -import type { ReactElement } from "react"; +import Renderer from "../Renderer"; jest.mock("react-native/Libraries/Linking/Linking", () => ({ openURL: jest.fn(() => Promise.resolve("mockResolve")), diff --git a/src/lib/types.ts b/src/lib/types.ts index e2197013..2b7f1adf 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -1,12 +1,12 @@ +import type { Tokenizer } from "marked"; import type { ReactNode } from "react"; import type { FlatListProps, - ViewStyle, - TextStyle, ImageStyle, + TextStyle, + ViewStyle, } from "react-native"; import type { MarkedStyles, UserTheme } from "./../theme/types"; -import type { Tokenizer } from "marked"; export interface ParserOptions { styles?: MarkedStyles; diff --git a/src/theme/__tests__/styles.spec.ts b/src/theme/__tests__/styles.spec.ts index add1cbef..cd702224 100644 --- a/src/theme/__tests__/styles.spec.ts +++ b/src/theme/__tests__/styles.spec.ts @@ -1,6 +1,6 @@ import colors from "../colors"; -import type { MarkedStyles } from "../types"; import getStyles from "./../styles"; +import type { MarkedStyles } from "../types"; describe("getStyles", () => { it("light scheme", () => { diff --git a/src/theme/styles.ts b/src/theme/styles.ts index f43d3104..a01951fb 100644 --- a/src/theme/styles.ts +++ b/src/theme/styles.ts @@ -1,6 +1,6 @@ -import { StyleSheet, type ColorSchemeName } from "react-native"; -import spacing from "./spacing"; +import { type ColorSchemeName, StyleSheet } from "react-native"; import colors, { type ColorsPropType } from "./colors"; +import spacing from "./spacing"; import type { MarkedStyles, UserTheme } from "./types"; const getFontStyles = (mdColors: ColorsPropType) => { diff --git a/src/utils/__tests__/table.spec.ts b/src/utils/__tests__/table.spec.ts index f252dca2..0a970fb2 100644 --- a/src/utils/__tests__/table.spec.ts +++ b/src/utils/__tests__/table.spec.ts @@ -1,4 +1,4 @@ -import { getTableWidthArr, getTableColAlignmentStyle } from "./../table"; +import { getTableColAlignmentStyle, getTableWidthArr } from "./../table"; describe("getTableWidthArr", () => { const windowWidth = 360; diff --git a/yarn.lock b/yarn.lock index 993cf625..16169d94 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2688,59 +2688,59 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@biomejs/biome@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.9.4.tgz#89766281cbc3a0aae865a7ff13d6aaffea2842bf" - integrity sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog== +"@biomejs/biome@2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-2.0.5.tgz#ac45ce3d79dc7183737b83cb97dc2e92a62bc784" + integrity sha512-MztFGhE6cVjf3QmomWu83GpTFyWY8KIcskgRf2AqVEMSH4qI4rNdBLdpAQ11TNK9pUfLGz3IIOC1ZYwgBePtig== optionalDependencies: - "@biomejs/cli-darwin-arm64" "1.9.4" - "@biomejs/cli-darwin-x64" "1.9.4" - "@biomejs/cli-linux-arm64" "1.9.4" - "@biomejs/cli-linux-arm64-musl" "1.9.4" - "@biomejs/cli-linux-x64" "1.9.4" - "@biomejs/cli-linux-x64-musl" "1.9.4" - "@biomejs/cli-win32-arm64" "1.9.4" - "@biomejs/cli-win32-x64" "1.9.4" - -"@biomejs/cli-darwin-arm64@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.9.4.tgz#dfa376d23a54a2d8f17133c92f23c1bf2e62509f" - integrity sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw== - -"@biomejs/cli-darwin-x64@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.9.4.tgz#eafc2ce3849d385fc02238aad1ca4a73395a64d9" - integrity sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg== - -"@biomejs/cli-linux-arm64-musl@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.9.4.tgz#d780c3e01758fc90f3268357e3f19163d1f84fca" - integrity sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA== - -"@biomejs/cli-linux-arm64@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.9.4.tgz#8ed1dd0e89419a4b66a47f95aefb8c46ae6041c9" - integrity sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g== - -"@biomejs/cli-linux-x64-musl@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.9.4.tgz#f36982b966bd671a36671e1de4417963d7db15fb" - integrity sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg== - -"@biomejs/cli-linux-x64@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.9.4.tgz#a0a7f56680c76b8034ddc149dbf398bdd3a462e8" - integrity sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg== - -"@biomejs/cli-win32-arm64@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.9.4.tgz#e2ef4e0084e76b7e26f0fc887c5ef1265ea56200" - integrity sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg== - -"@biomejs/cli-win32-x64@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.9.4.tgz#4c7afa90e3970213599b4095e62f87e5972b2340" - integrity sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA== + "@biomejs/cli-darwin-arm64" "2.0.5" + "@biomejs/cli-darwin-x64" "2.0.5" + "@biomejs/cli-linux-arm64" "2.0.5" + "@biomejs/cli-linux-arm64-musl" "2.0.5" + "@biomejs/cli-linux-x64" "2.0.5" + "@biomejs/cli-linux-x64-musl" "2.0.5" + "@biomejs/cli-win32-arm64" "2.0.5" + "@biomejs/cli-win32-x64" "2.0.5" + +"@biomejs/cli-darwin-arm64@2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.0.5.tgz#62f94f5097cd1e6d3b4fc5cec7317bd8e0276438" + integrity sha512-VIIWQv9Rcj9XresjCf3isBFfWjFStsdGZvm8SmwJzKs/22YQj167ge7DkxuaaZbNf2kmYif0AcjAKvtNedEoEw== + +"@biomejs/cli-darwin-x64@2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.0.5.tgz#791bb8d44949f80fb4f6c9722a9294657019546a" + integrity sha512-DRpGxBgf5Z7HUFcNUB6n66UiD4VlBlMpngNf32wPraxX8vYU6N9cb3xQWOXIQVBBQ64QfsSLJnjNu79i/LNmSg== + +"@biomejs/cli-linux-arm64-musl@2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.0.5.tgz#6c5e9c5fd052b96c86187c5e239619437020f916" + integrity sha512-OpflTCOw/ElEs7QZqN/HFaSViPHjAsAPxFJ22LhWUWvuJgcy/Z8+hRV0/3mk/ZRWy5A6fCDKHZqAxU+xB6W4mA== + +"@biomejs/cli-linux-arm64@2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.0.5.tgz#c7a9663977f1a65fea41b68bb830520a46b20a7a" + integrity sha512-FQTfDNMXOknf8+g9Eede2daaduRjTC2SNbfWPNFMadN9K3UKjeZ62jwiYxztPaz9zQQsZU8VbddQIaeQY5CmIA== + +"@biomejs/cli-linux-x64-musl@2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.0.5.tgz#ea7465451d6f0373976d2f3eab8b03dcd7941cd3" + integrity sha512-9lmjCnajAzpZXbav2P6D87ugkhnaDpJtDvOH5uQbY2RXeW6Rq18uOUltxgacGBP+d8GusTr+s3IFOu7SN0Ok8g== + +"@biomejs/cli-linux-x64@2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-2.0.5.tgz#40a9a263ae24bc0b6b1959fd1e723003479bf9f4" + integrity sha512-znpfydUDPuDkyBTulnODrQVK2FaG/4hIOPcQSsF2GeauQOYrBAOplj0etGB0NUrr0dFsvaQ15nzDXYb60ACoiw== + +"@biomejs/cli-win32-arm64@2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.0.5.tgz#5fd88ea0f20dcc690e3573b9224e046f2411583e" + integrity sha512-CP2wKQB+gh8HdJTFKYRFETqReAjxlcN9AlYDEoye8v2eQp+L9v+PUeDql/wsbaUhSsLR0sjj3PtbBtt+02AN3A== + +"@biomejs/cli-win32-x64@2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-2.0.5.tgz#5970e5c812dd609528bf15c3df97af6ef8cf0668" + integrity sha512-Sw3rz2m6bBADeQpr3+MD7Ch4E1l15DTt/+dfqKnwkm3cn4BrYwnArmvKeZdVsFRDjMyjlKIP88bw1r7o+9aqzw== "@callstack/reassure-cli@1.4.0": version "1.4.0" From b1c379bb3a400232eeeb44e9a1d5e10093b9d89f Mon Sep 17 00:00:00 2001 From: Gowtham G Date: Thu, 26 Jun 2025 21:58:03 +0530 Subject: [PATCH 2/3] chore(format): package.json and biome.json --- biome.json | 11 ++++++++++- package.json | 10 ++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/biome.json b/biome.json index 422675d3..d0410043 100644 --- a/biome.json +++ b/biome.json @@ -17,7 +17,16 @@ "enabled": true }, "files": { - "includes": ["src/**", "examples/**", "dangerfile.ts"] + "includes": [ + "src/**", + "examples/**", + "dangerfile.ts", + "biome.json", + "package.json", + "renovate.json", + "tsconfig.json", + "babel.config.js" + ] }, "javascript": { "jsxRuntime": "reactClassic" diff --git a/package.json b/package.json index 4678cd1b..15bf5bcb 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,11 @@ "test:updateSnapshot": "jest --updateSnapshot", "reassure": "reassure" }, - "keywords": ["react-native", "markdown", "react-native markdown"], + "keywords": [ + "react-native", + "markdown", + "react-native markdown" + ], "repository": "https://github.com/gmsgowtham/react-native-marked", "author": "Gowtham G (https://github.com/gmsgowtham)", "license": "MIT", @@ -93,7 +97,9 @@ ] }, "commitlint": { - "extends": ["@commitlint/config-conventional"], + "extends": [ + "@commitlint/config-conventional" + ], "rules": { "type-enum": [ 2, From 8432f4344b652dc0f299f009383f619afbcd0824 Mon Sep 17 00:00:00 2001 From: Gowtham G Date: Thu, 26 Jun 2025 21:58:49 +0530 Subject: [PATCH 3/3] chore(format): biome.json --- biome.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/biome.json b/biome.json index d0410043..7b232b8b 100644 --- a/biome.json +++ b/biome.json @@ -1,6 +1,12 @@ { "$schema": "https://biomejs.dev/schemas/2.0.5/schema.json", - "assist": { "actions": { "source": { "organizeImports": "on" } } }, + "assist": { + "actions": { + "source": { + "organizeImports": "on" + } + } + }, "linter": { "enabled": true, "rules": {