feat: biome check
This commit is contained in:
@@ -1 +1 @@
|
||||
@import "tailwindcss";
|
||||
@import "tailwindcss";
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -82,7 +82,7 @@ function useController(controller: ControllerClass, component: any, props: any,
|
||||
return () => {
|
||||
instance.$destroy();
|
||||
};
|
||||
}, []);
|
||||
}, [component, controller, setView]);
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -2,8 +2,8 @@ module.exports = {
|
||||
theme: {
|
||||
extend: {
|
||||
fontFamily: {
|
||||
sans: ['Inter', 'sans-serif'],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
sans: ["Inter", "sans-serif"],
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
{
|
||||
"files": [],
|
||||
"references": [
|
||||
{ "path": "./tsconfig.app.json" },
|
||||
{ "path": "./tsconfig.node.json" }
|
||||
]
|
||||
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user