Format code

This commit is contained in:
Zoe Roux 2024-05-12 17:30:16 +02:00
parent 0b4f40190d
commit cd46050c94
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@
"lineEnding": "lf", "lineEnding": "lf",
"lineWidth": 100, "lineWidth": 100,
"attributePosition": "auto", "attributePosition": "auto",
"ignore": ["**/.yarn/**", "**/.next/**", "**/.expo/**", "**/next-env.d.ts"] "ignore": ["**/.yarn/**", "**/.next/**", "**/.expo/**", "**/next-env.d.ts", "**/back/**"]
}, },
"organizeImports": { "organizeImports": {
"enabled": true "enabled": true
@ -33,7 +33,7 @@
"noBannedTypes": "off" "noBannedTypes": "off"
} }
}, },
"ignore": ["**/.yarn/**", "**/.next/**", "**/.expo/**", "**/next-env.d.ts"] "ignore": ["**/.yarn/**", "**/.next/**", "**/.expo/**", "**/next-env.d.ts", "**/back/**"]
}, },
"javascript": { "javascript": {
"formatter": { "formatter": {

View File

@ -150,6 +150,7 @@ const Video = forwardRef<{ seek: (value: number) => void }, VideoProps>(function
const subtitle = useAtomValue(subtitleAtom); const subtitle = useAtomValue(subtitleAtom);
useSubtitle(ref, subtitle, fonts); useSubtitle(ref, subtitle, fonts);
// biome-ignore lint/correctness/useExhaustiveDependencies: do not restart on startPosition change
useLayoutEffect(() => { useLayoutEffect(() => {
if (!ref?.current || !source.uri) return; if (!ref?.current || !source.uri) return;
if (!hls || oldHls.current !== source.hls) { if (!hls || oldHls.current !== source.hls) {