Skip to content

Commit 9e0925b

Browse files
committed
Fix lint issues
1 parent 538032e commit 9e0925b

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"cmd/test/test_space"
6767
],
6868
"rules": {
69-
"exclude": ["no-explicit-any", "no-slow-types"]
69+
"exclude": ["no-explicit-any", "no-slow-types", "jsx-boolean-value"]
7070
}
7171
},
7272
"fmt": {

server/http_server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export class HttpServer {
268268
}
269269
c.status(200);
270270
c.header("Content-type", this.clientAssetBundle.getMimeType(assetName));
271-
let data = this.clientAssetBundle.readFileSync(
271+
const data = this.clientAssetBundle.readFileSync(
272272
assetName,
273273
);
274274
c.header("Content-length", "" + data.length);

web/components/basic_modals.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export function Button({
130130
return (
131131
<button
132132
ref={buttonRef}
133+
type="button"
133134
className={primary ? "sb-button-primary" : "sb-button"}
134135
onClick={(e) => {
135136
e.stopPropagation();

web/components/top_bar.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export function TopBar({
119119
{actionButtons.map((actionButton) => {
120120
const button = (
121121
<button
122+
type="button"
122123
onClick={(e) => {
123124
e.preventDefault();
124125
e.stopPropagation();
@@ -132,7 +133,11 @@ export function TopBar({
132133
);
133134

134135
return actionButton.href !== undefined
135-
? <a href={actionButton.href}>{button}</a>
136+
? (
137+
<a href={actionButton.href} key={actionButton.href}>
138+
{button}
139+
</a>
140+
)
136141
: button;
137142
})}
138143
</div>

0 commit comments

Comments
 (0)