Skip to content

Commit 4584876

Browse files
committed
linting updates
1 parent 65ab060 commit 4584876

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

desktop/eslint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ export default defineConfig([
1010
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"], languageOptions: { globals: globals.browser } },
1111
tseslint.configs.recommended,
1212
pluginReact.configs.flat.recommended,
13+
{
14+
rules: {
15+
"react/react-in-jsx-scope": "off",
16+
},
17+
},
1318
]);

desktop/src/App.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function AppContent() {
3232
const { config, workspaces, executables, isLoading, hasError, refreshAll } =
3333
useBackendData(selectedWorkspace);
3434

35-
const { executable, executableError, isExecutableLoading } = useExecutable(
35+
const { executable, executableError } = useExecutable(
3636
selectedExecutable || ""
3737
);
3838

@@ -98,7 +98,6 @@ function AppContent() {
9898
<Viewer
9999
currentView={currentView}
100100
selectedExecutable={executable}
101-
isExecutableLoading={isExecutableLoading}
102101
executableError={executableError}
103102
welcomeMessage={welcomeMessage}
104103
workspace={

desktop/src/stories/Header.tsx

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import React from 'react';
2-
3-
import { Button } from './Button';
4-
import './header.css';
1+
import { Button } from "./Button";
2+
import "./header.css";
53

64
type User = {
75
name: string;
@@ -14,11 +12,21 @@ export interface HeaderProps {
1412
onCreateAccount?: () => void;
1513
}
1614

17-
export const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => (
15+
export const Header = ({
16+
user,
17+
onLogin,
18+
onLogout,
19+
onCreateAccount,
20+
}: HeaderProps) => (
1821
<header>
1922
<div className="storybook-header">
2023
<div>
21-
<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
24+
<svg
25+
width="32"
26+
height="32"
27+
viewBox="0 0 32 32"
28+
xmlns="http://www.w3.org/2000/svg"
29+
>
2230
<g fill="none" fillRule="evenodd">
2331
<path
2432
d="M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z"
@@ -47,7 +55,12 @@ export const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps
4755
) : (
4856
<>
4957
<Button size="small" onClick={onLogin} label="Log in" />
50-
<Button primary size="small" onClick={onCreateAccount} label="Sign up" />
58+
<Button
59+
primary
60+
size="small"
61+
onClick={onCreateAccount}
62+
label="Sign up"
63+
/>
5164
</>
5265
)}
5366
</div>

0 commit comments

Comments
 (0)