chore(deps): update dependency @biomejs/biome to v2.2.0 (#934)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Uruk <contact@uruk.dev>
Co-authored-by: Gauvain <68083474+Gauvino@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-08-18 23:00:33 +02:00
committed by GitHub
parent 100d7e0830
commit a146fc8810
6 changed files with 16 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ import { FilterButton } from "@/components/filters/FilterButton";
import { Loader } from "@/components/Loader"; import { Loader } from "@/components/Loader";
import { LogLevel, useLog, writeErrorLog } from "@/utils/log"; import { LogLevel, useLog, writeErrorLog } from "@/utils/log";
export default function page() { export default function Page() {
const navigation = useNavigation(); const navigation = useNavigation();
const { logs } = useLog(); const { logs } = useLog();
const { t } = useTranslation(); const { t } = useTranslation();
@@ -28,10 +28,12 @@ export default function page() {
const [loading, setLoading] = useState<boolean>(false); const [loading, setLoading] = useState<boolean>(false);
const [state, setState] = useState<Record<string, boolean>>({}); const [state, setState] = useState<Record<string, boolean>>({});
const [order, setOrder] = useState<"asc" | "desc">("desc"); const [order, setOrder] = useState<"asc" | "desc">("desc");
const [levels, setLevels] = useState<LogLevel[]>(defaultLevels); const [levels, setLevels] = useState<LogLevel[]>(defaultLevels);
const _orderId = useId();
const _levelsId = useId();
const filteredLogs = useMemo( const filteredLogs = useMemo(
() => () =>
logs logs

View File

@@ -1,14 +1,14 @@
{ {
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json", "$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
"files": { "files": {
"includes": [ "includes": [
"**/*", "**/*",
"!node_modules/**", "!node_modules",
"!ios/**", "!ios",
"!android/**", "!android",
"!Streamyfin.app/**", "!Streamyfin.app",
"!utils/jellyseerr/**", "!utils/jellyseerr",
"!.expo/**" "!.expo"
] ]
}, },
"linter": { "linter": {

View File

@@ -86,7 +86,7 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.0", "@babel/core": "^7.20.0",
"@biomejs/biome": "^2.1.4", "@biomejs/biome": "^2.2.0",
"@react-native-community/cli": "^20.0.0", "@react-native-community/cli": "^20.0.0",
"@react-native-tvos/config-tv": "^0.1.1", "@react-native-tvos/config-tv": "^0.1.1",
"@types/jest": "^29.5.12", "@types/jest": "^29.5.12",

View File

@@ -43,6 +43,7 @@ export const HorizontalScroll = <T,>(
ref, ref,
...restProps ...restProps
} = props; } = props;
const flashListRef = useRef<FlashList<T>>(null); const flashListRef = useRef<FlashList<T>>(null);
useImperativeHandle(ref!, () => ({ useImperativeHandle(ref!, () => ({
@@ -70,7 +71,7 @@ export const HorizontalScroll = <T,>(
} }
return ( return (
<View style={containerStyle}> <View style={[{ height }, containerStyle]}>
<FlashList<T> <FlashList<T>
ref={flashListRef} ref={flashListRef}
data={data} data={data}

View File

@@ -101,7 +101,7 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.0", "@babel/core": "^7.20.0",
"@biomejs/biome": "^2.1.4", "@biomejs/biome": "^2.2.0",
"@react-native-community/cli": "^20.0.0", "@react-native-community/cli": "^20.0.0",
"@react-native-tvos/config-tv": "^0.1.1", "@react-native-tvos/config-tv": "^0.1.1",
"@types/jest": "^29.5.12", "@types/jest": "^29.5.12",

View File

@@ -5,6 +5,7 @@ export const formatBitrate = (bitrate?: number | null) => {
if (bitrate === 0) return "0 bps"; if (bitrate === 0) return "0 bps";
const i = Number.parseInt( const i = Number.parseInt(
Math.floor(Math.log(bitrate) / Math.log(1000)).toString(), Math.floor(Math.log(bitrate) / Math.log(1000)).toString(),
10,
); );
return `${Math.round((bitrate / 1000 ** i) * 100) / 100} ${sizes[i]}`; return `${Math.round((bitrate / 1000 ** i) * 100) / 100} ${sizes[i]}`;
}; };