Skip to content

Commit 24574f2

Browse files
committed
Fix ESLint errors in tsx files
1 parent 30912c3 commit 24574f2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

types/tests/17-schema-infer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Props, c } from "core";
1+
import { Component, c } from "core";
22

33
const x1: Component<{
44
value1: number[];
@@ -25,7 +25,7 @@ x1.props = {
2525

2626
const X1 = c(x1);
2727

28-
function x2({ value1 = [1, 2, 3] }: Props<typeof x2>) {
28+
function x2() {
2929
return <host></host>;
3030
}
3131

@@ -40,5 +40,5 @@ const X2 = c(x1);
4040
value2={new Date()}
4141
value3={new MouseEvent("click")}
4242
value4={document.createElement("div")}
43-
value6={(count: number) => {}}
43+
value6={() => {}}
4444
/>;

types/tests/2-basic-Component.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { c, Component } from "core";
33
const myComponent: Component<
44
{ value: string },
55
{ onChange: CustomEvent<{ id: number }>; myMethod(value: number): void }
6-
> = ({ value }) => {
7-
return <host shadowDom>{value}</host>;
8-
};
6+
> = ({ value }) => <host shadowDom>{value}</host>;
97

108
myComponent.props = {
119
value: String,

0 commit comments

Comments
 (0)