Personal Monorepo ❄️

chore(nix): enable denolint precommit hook

-2
projects/homepage/components/Graph.tsx
··· 233 233 const imgTexture = new THREE.TextureLoader().load( 234 234 `icons/${node.icon}`, 235 235 (texture) => { 236 - // @ts-ignore 237 236 texture.colorSpace = THREE.SRGBColorSpace; 238 237 }, 239 238 ); ··· 248 247 const imgTexture = new THREE.TextureLoader().load( 249 248 `icons/${node.icon}`, 250 249 (texture) => { 251 - // @ts-ignore 252 250 texture.colorSpace = THREE.SRGBColorSpace; 253 251 }, 254 252 );
+1 -1
projects/homepage/pages/index.tsx
··· 10 10 return ( 11 11 <> 12 12 <Head> 13 - <title>{"Niclas Overby Ⓝ"}</title> 13 + <title>Niclas Overby Ⓝ</title> 14 14 </Head> 15 15 {showing && <Graph />} 16 16 <a rel="me" href="https://mas.to/@niclasoverby" />
+1 -1
projects/wiki/components/content/AddContentFab.tsx
··· 29 29 30 30 return ( 31 31 <> 32 - <Zoom in={true}> 32 + <Zoom in> 33 33 <Fab 34 34 sx={{ 35 35 position: "fixed",
+3 -3
projects/wiki/components/content/Editor.tsx
··· 59 59 fetchMembers(node.id); 60 60 } 61 61 } 62 - const fetch = async () => { 62 + const fetch = () => { 63 63 setName(query?.name ?? ""); 64 64 setDate(parseISO(query?.createdAt ?? "")); 65 65 setContent(structuredClone(data?.content)); ··· 110 110 <CardContent> 111 111 <Grid container spacing={2}> 112 112 <Grid item xs={12}> 113 - <Stack spacing={2} direction={"row"} alignItems="center"> 113 + <Stack spacing={2} direction="row" alignItems="center"> 114 114 <TextField 115 115 value={name} 116 116 onChange={(e) => setName(e.target.value)} ··· 134 134 </Stack> 135 135 </Grid> 136 136 <Grid item xs={12}> 137 - <Stack spacing={2} direction={"row"} alignItems="center"> 137 + <Stack spacing={2} direction="row" alignItems="center"> 138 138 {![ 139 139 "wiki/group", 140 140 "wiki/event",
+1 -1
projects/wiki/components/content/PublishButton.tsx
··· 23 23 24 24 const handler = 25 25 handlePublish ?? 26 - (async () => { 26 + (() => { 27 27 update({ set: { mutable: false } }); 28 28 }); 29 29
+1 -1
projects/wiki/components/file/FileApp.tsx
··· 8 8 <Stack spacing={1}> 9 9 <Card sx={{ m: 0 }}> 10 10 <ContentHeader node={node} /> 11 - <Collapse in={true}> 11 + <Collapse in> 12 12 <FileLoader node={node} /> 13 13 </Collapse> 14 14 </Card>
+1 -1
projects/wiki/components/folder/FolderApp.tsx
··· 10 10 <> 11 11 <Card sx={{ m: 0 }}> 12 12 <ContentHeader add child={child} hideMembers node={node} /> 13 - <Collapse in={true}> 13 + <Collapse in> 14 14 <List sx={{ m: 0 }}> 15 15 <Suspense fallback={null}> 16 16 <FolderList node={node} />
+1 -1
projects/wiki/components/folder/FolderDial.tsx
··· 219 219 220 220 return ( 221 221 <> 222 - <Zoom in={true}> 222 + <Zoom in> 223 223 <SpeedDial 224 224 ariaLabel="Administrer mappe" 225 225 sx={{
+1 -1
projects/wiki/components/invite/InvitesFab.tsx
··· 20 20 }; 21 21 22 22 return ( 23 - // @ts-ignore 23 + // @ts-ignore: unknown type 24 24 <SheetReader onFileLoaded={handleFile}> 25 25 <Fab 26 26 sx={{
+1 -1
projects/wiki/components/layout/AppList.tsx
··· 42 42 label: string; 43 43 icon: React.ReactNode; 44 44 value: string; 45 - onClick: () => Promise<void>; 45 + onClick: () => void; 46 46 }) => { 47 47 return ( 48 48 <BottomNavigationAction
+1 -1
projects/wiki/components/layout/BreadCrumbs.tsx
··· 114 114 }} 115 115 > 116 116 <MimeAvatar mimeId="app/home" /> 117 - <Collapse orientation="horizontal" in={true}> 117 + <Collapse orientation="horizontal" in> 118 118 <Typography 119 119 ref={divRef} 120 120 sx={{
+2 -2
projects/wiki/components/layout/Layout.tsx
··· 85 85 // }); 86 86 // }; 87 87 // checkVersion(); 88 - window.addEventListener("focus", checkVersion); 89 - return () => window.removeEventListener("focus", checkVersion); 88 + globalThis.addEventListener("focus", checkVersion); 89 + return () => globalThis.removeEventListener("focus", checkVersion); 90 90 }, []); 91 91 92 92 if (outdated) return <OldBrowser />;
+1 -1
projects/wiki/components/sort/SortFab.tsx
··· 14 14 const link = useLink(); 15 15 const update = node.useUpdate(); 16 16 17 - const handleClick = async () => { 17 + const handleClick = () => { 18 18 startTransition(async () => { 19 19 const proms = elements.map(({ id }, index: number) => 20 20 update({ id, set: { index } }),
+1 -1
projects/wiki/components/vote/AddCommentButton.tsx
··· 7 7 const [open, setOpen] = useState(false); 8 8 const query = node.useQuery(); 9 9 10 - const handleSubmit = async () => { 10 + const handleSubmit = () => { 11 11 setOpen(true); 12 12 }; 13 13
+1 -1
projects/wiki/components/vote/AddQuestionButton.tsx
··· 7 7 const [open, setOpen] = useState(false); 8 8 const query = node.useQuery(); 9 9 10 - const handleSubmit = async () => { 10 + const handleSubmit = () => { 11 11 setOpen(true); 12 12 }; 13 13
+2 -2
projects/wiki/core/hooks/useApps.ts
··· 104 104 name: "Skærm", 105 105 mimeId: "app/screen", 106 106 active: [], 107 - onClick: async () => { 108 - window.open( 107 + onClick: () => { 108 + globalThis.open( 109 109 `/${session?.prefix?.path?.join("/")}?app=screen`, 110 110 "_blank", 111 111 );
+1 -1
projects/wiki/core/hooks/useLink.ts
··· 61 61 return router.push(`/${pushPath.join("/")}${query}`); 62 62 }; 63 63 64 - const pop = async () => { 64 + const pop = () => { 65 65 const pushPath = pathname.split("/").slice(0, -1).map(decodeURI); 66 66 return router.push(`/${pushPath.join("/")}`); 67 67 };
+4 -4
projects/wiki/core/theme/ThemeSchemeContext.tsx
··· 36 36 } 37 37 }, []); 38 38 39 - const generateThemeScheme = async (colorBase: string) => { 39 + const generateThemeScheme = (colorBase: string) => { 40 40 const theme = themeFromSourceColor(argbFromHex(colorBase), [ 41 41 { 42 42 name: "custom-1", ··· 67 67 dark[key] = color; 68 68 } 69 69 const scheme: M3ThemeScheme = { 70 - // @ts-ignore 70 + // @ts-ignore: needs to be replaced anyway 71 71 light, 72 - // @ts-ignore 72 + // @ts-ignore: needs to be replaced anyway 73 73 dark, 74 - // @ts-ignore 74 + // @ts-ignore: needs to be replaced anyway 75 75 tones: paletteTones, 76 76 }; 77 77 setThemeScheme(scheme);
+1
projects/wiki/core/types/html-to-docx.d.ts
··· 1 1 declare module "html-to-docx" { 2 + import { Buffer } from "node:buffer"; 2 3 interface Margins { 3 4 /** 4 5 * top <Number> distance between the top of the text margins for the main document and the top of the page for all pages in this section in TWIP.
+1 -1
projects/wiki/pages/404.tsx
··· 8 8 router.push(router.asPath); 9 9 }, [router.asPath]); 10 10 11 - return <></>; 11 + return <> </>; 12 12 }; 13 13 14 14 export default P404;
+1
shells/default.nix
··· 10 10 } 11 11 { 12 12 git-hooks.hooks = { 13 + denolint.enable = true; 13 14 biome.enable = true; 14 15 alejandra.enable = true; 15 16 statix.enable = true;