mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Format code
This commit is contained in:
parent
bd71be580d
commit
b0f9be17de
@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "expo/tsconfig.base",
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
"strict": true
|
||||
}
|
||||
}
|
||||
|
@ -2,9 +2,7 @@
|
||||
"name": "web",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"sideEffects": [
|
||||
"./src/polyfill.ts"
|
||||
],
|
||||
"sideEffects": ["./src/polyfill.ts"],
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
|
@ -16,9 +16,9 @@
|
||||
"incremental": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"~/*": ["src/*"],
|
||||
},
|
||||
"~/*": ["src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
@ -8,11 +8,7 @@
|
||||
"lineEnding": "lf",
|
||||
"lineWidth": 100,
|
||||
"attributePosition": "auto",
|
||||
"ignore": [
|
||||
"**/.yarn/**",
|
||||
"**/.next/**",
|
||||
"**/.expo/**"
|
||||
]
|
||||
"ignore": ["**/.yarn/**", "**/.next/**", "**/.expo/**"]
|
||||
},
|
||||
"organizeImports": {
|
||||
"enabled": true
|
||||
@ -38,11 +34,7 @@
|
||||
"noBannedTypes": "off"
|
||||
}
|
||||
},
|
||||
"ignore": [
|
||||
"**/.yarn/**",
|
||||
"**/.next/**",
|
||||
"**/.expo/**"
|
||||
]
|
||||
"ignore": ["**/.yarn/**", "**/.next/**", "**/.expo/**"]
|
||||
},
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
|
@ -14,10 +14,7 @@
|
||||
"format": "biome format .",
|
||||
"format:fix": "biome format . --write"
|
||||
},
|
||||
"workspaces": [
|
||||
"apps/*",
|
||||
"packages/*"
|
||||
],
|
||||
"workspaces": ["apps/*", "packages/*"],
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.7.3",
|
||||
"typescript": "5.3.3"
|
||||
|
@ -18,9 +18,9 @@
|
||||
"incremental": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"~/*": ["src/*"],
|
||||
},
|
||||
"~/*": ["src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ import { ComponentType } from "react";
|
||||
import { View, ViewProps } from "react-native";
|
||||
import { percent, px, useYoshiki } from "yoshiki/native";
|
||||
|
||||
export const Container = <AsProps = ViewProps,>({
|
||||
export const Container = <AsProps = ViewProps>({
|
||||
as,
|
||||
...props
|
||||
}: { as?: ComponentType<AsProps> } & AsProps) => {
|
||||
|
@ -109,7 +109,7 @@ export const IconButton = forwardRef(function IconButton<AsProps = PressableProp
|
||||
);
|
||||
});
|
||||
|
||||
export const IconFab = <AsProps = PressableProps,>(
|
||||
export const IconFab = <AsProps = PressableProps>(
|
||||
props: ComponentProps<typeof IconButton<AsProps>>,
|
||||
) => {
|
||||
const { css, theme } = useYoshiki();
|
||||
|
@ -55,7 +55,7 @@ export const PosterBackground = ({
|
||||
/>
|
||||
);
|
||||
|
||||
export const ImageBackground = <AsProps = ViewProps,>({
|
||||
export const ImageBackground = <AsProps = ViewProps>({
|
||||
src,
|
||||
alt,
|
||||
quality,
|
||||
|
@ -18,9 +18,9 @@
|
||||
"incremental": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"~/*": ["src/*"],
|
||||
},
|
||||
"~/*": ["src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ export type WithLoading<Item> =
|
||||
| (Item & { isLoading: false })
|
||||
| (Partial<Item> & { isLoading: true });
|
||||
|
||||
const isPage = <T = unknown,>(obj: unknown): obj is Page<T> =>
|
||||
const isPage = <T = unknown>(obj: unknown): obj is Page<T> =>
|
||||
(typeof obj === "object" && obj && "items" in obj) || false;
|
||||
|
||||
export const Fetch = <Data,>({
|
||||
|
@ -35,7 +35,7 @@ export * from "react-native-video";
|
||||
|
||||
import { Audio, Subtitle, useToken } from "@kyoo/models";
|
||||
import { IconButton, Menu } from "@kyoo/primitives";
|
||||
import { ComponentProps, forwardRef, useEffect, } from "react";
|
||||
import { ComponentProps, forwardRef, useEffect } from "react";
|
||||
import { atom, useAtom, useAtomValue, useSetAtom } from "jotai";
|
||||
import NativeVideo, {
|
||||
VideoRef,
|
||||
|
@ -15,8 +15,8 @@
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "react-jsx",
|
||||
"incremental": true,
|
||||
"incremental": true
|
||||
},
|
||||
"include": ["**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user