Fix lint issues

pull/1246/head^2
Zef Hemel 2025-02-22 11:50:44 +01:00
parent 538032ea94
commit 9e0925beff
4 changed files with 9 additions and 3 deletions

View File

@ -66,7 +66,7 @@
"cmd/test/test_space"
],
"rules": {
"exclude": ["no-explicit-any", "no-slow-types"]
"exclude": ["no-explicit-any", "no-slow-types", "jsx-boolean-value"]
}
},
"fmt": {

View File

@ -268,7 +268,7 @@ export class HttpServer {
}
c.status(200);
c.header("Content-type", this.clientAssetBundle.getMimeType(assetName));
let data = this.clientAssetBundle.readFileSync(
const data = this.clientAssetBundle.readFileSync(
assetName,
);
c.header("Content-length", "" + data.length);

View File

@ -130,6 +130,7 @@ export function Button({
return (
<button
ref={buttonRef}
type="button"
className={primary ? "sb-button-primary" : "sb-button"}
onClick={(e) => {
e.stopPropagation();

View File

@ -119,6 +119,7 @@ export function TopBar({
{actionButtons.map((actionButton) => {
const button = (
<button
type="button"
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
@ -132,7 +133,11 @@ export function TopBar({
);
return actionButton.href !== undefined
? <a href={actionButton.href}>{button}</a>
? (
<a href={actionButton.href} key={actionButton.href}>
{button}
</a>
)
: button;
})}
</div>