Template
1
0

feat: biome check

This commit is contained in:
2025-09-25 14:29:15 +02:00
parent f2ba21a7e3
commit 0819534901
68 changed files with 211 additions and 802 deletions

View File

@@ -1 +1 @@
@import "tailwindcss";
@import "tailwindcss";

View File

@@ -64,7 +64,7 @@ export class Controller<TState extends Unknown = Empty, TProps extends Unknown =
component: ReactComponent<TProps, TController>,
setView: any,
): InstanceType<TController> {
return new this(component, setView);
return new Controller(component, setView);
}
/*

View File

@@ -1,6 +1,7 @@
import React, { type FunctionComponent } from "react";
import type React from "react";
import type { FunctionComponent } from "react";
import { ControllerRefs } from "./refs.ts";
import type { ControllerRefs } from "./refs.ts";
export type ReactComponent<TProps extends Unknown, TController extends ControllerClass> = FunctionComponent<{
props: TProps;

View File

@@ -82,7 +82,7 @@ function useController(controller: ControllerClass, component: any, props: any,
return () => {
instance.$destroy();
};
}, []);
}, [component, controller, setView]);
return error;
}

View File

@@ -5,7 +5,7 @@ import { TodosController } from "./todos.controller.ts";
export const TodosView = makeControllerView(
TodosController,
({ state: { form, todos }, actions: { remove, stress } }) => {
({ state: { form, todos }, actions: { remove } }) => {
return (
<div className="min-h-screen bg-gray-100 flex flex-col items-center py-10 px-4 font-sans">
<div className="w-full max-w-2xl space-y-8">

View File

@@ -2,8 +2,8 @@ module.exports = {
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
}
}
}
}
sans: ["Inter", "sans-serif"],
},
},
},
};

View File

@@ -1,7 +1,4 @@
{
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
}