Skip to content

Commit fdb3d7b

Browse files
committed
chore: switch to no semi
1 parent f8b67aa commit fdb3d7b

File tree

6 files changed

+308
-307
lines changed

6 files changed

+308
-307
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ deno add @kt3k/cell
3535
## Hello world
3636

3737
```ts
38-
import { type Context, register } from "@kt3k/cell";
38+
import { type Context, register } from "@kt3k/cell"
3939

4040
function MyComponent({ on }: Context) {
4141
on("click", () => {
42-
alert("hello");
43-
});
42+
alert("hello")
43+
})
4444
}
4545

46-
register(MyComponent, "js-hello");
46+
register(MyComponent, "js-hello")
4747
```
4848

4949
```
@@ -58,15 +58,15 @@ The next component mirrors the input value of `<input>` element to another DOM
5858
element.
5959

6060
```ts
61-
import { type Context, register } from "@kt3k/cell";
61+
import { type Context, register } from "@kt3k/cell"
6262

6363
function Mirroring({ on, query }: Context) {
6464
on("input", () => {
65-
query(".dest").textContent = query(".src").value;
66-
});
65+
query(".dest").textContent = query(".src").value
66+
})
6767
}
6868

69-
register(Mirroring, "js-mirroring");
69+
register(Mirroring, "js-mirroring")
7070
```
7171

7272
```
@@ -100,15 +100,15 @@ By calling `on.outside(event, handler)`, you can handle the event outside of the
100100
component's DOM.
101101

102102
```ts
103-
import { type Context, register } from "@kt3k/cell";
103+
import { type Context, register } from "@kt3k/cell"
104104

105105
function OutsideClickComponent({ on }: Context) {
106106
on.outside("click", ({ e }) => {
107-
console.log("The outside of my-component has been clicked!");
108-
});
107+
console.log("The outside of my-component has been clicked!")
108+
})
109109
}
110110

111-
register(OutsideClickComponent, "js-outside-click");
111+
register(OutsideClickComponent, "js-outside-click")
112112
```
113113

114114
## Using Cell directly from the browser

deno.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@
2323
"@std/assert": "jsr:@std/assert@^1.0.0",
2424
"@std/async": "jsr:@std/async@^1.0.0",
2525
"@std/testing": "jsr:@std/testing@^1.0.0"
26+
},
27+
"fmt": {
28+
"options": {
29+
"semiColons": false
30+
}
2631
}
2732
}

dom_polyfill.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import { DOMParser } from "@b-fuze/deno-dom";
2-
// deno-lint-ignore no-explicit-any
3-
(globalThis as any).document = new DOMParser().parseFromString(
1+
import { DOMParser } from "@b-fuze/deno-dom" // deno-lint-ignore no-explicit-any
2+
;(globalThis as any).document = new DOMParser().parseFromString(
43
"<body></body>",
54
"text/html",
6-
);
7-
// deno-lint-ignore no-explicit-any
8-
(document as any).readyState = "complete";
5+
) // deno-lint-ignore no-explicit-any
6+
;(document as any).readyState = "complete"

0 commit comments

Comments
 (0)