Skip to content

Commit

Permalink
eslint autofixes
Browse files Browse the repository at this point in the history
  • Loading branch information
atilafassina committed Sep 27, 2024
1 parent efd6727 commit 2ad47f1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default defineConfig({
docsData(),
vinxiMdx.withImports({})({
define: {
"import.meta.env": `'import.meta.env'`,
"import.meta.env": "'import.meta.env'",
},
jsx: true,
jsxImportSource: "solid-js",
Expand Down
17 changes: 7 additions & 10 deletions src/ui/eraser-link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@ const getEraserLinkData = (href: string): EraserLinkData | null => {
};
};

const EraserLink = ({
linkData,
children,
}: ParentProps<{
const EraserLink = (props: ParentProps<{
linkData: EraserLinkData;
}>) => {
const workspaceUrl = `https://app.eraser.io/workspace/${linkData.workspaceId}`;
const elementParams = linkData.elementsId
? `elements=${linkData.elementsId}`
const workspaceUrl = `https://app.eraser.io/workspace/${props.linkData.workspaceId}`;

Check warning on line 34 in src/ui/eraser-link/index.tsx

View workflow job for this annotation

GitHub Actions / lint

The reactive variable 'props.linkData.workspaceId' should be used within JSX, a tracked scope (like createEffect), or inside an event handler function, or else changes will be ignored
const elementParams = props.linkData.elementsId

Check warning on line 35 in src/ui/eraser-link/index.tsx

View workflow job for this annotation

GitHub Actions / lint

The reactive variable 'props.linkData.elementsId' should be used within JSX, a tracked scope (like createEffect), or inside an event handler function, or else changes will be ignored
? `elements=${props.linkData.elementsId}`

Check warning on line 36 in src/ui/eraser-link/index.tsx

View workflow job for this annotation

GitHub Actions / lint

The reactive variable 'props.linkData.elementsId' should be used within JSX, a tracked scope (like createEffect), or inside an event handler function, or else changes will be ignored
: "";

const linkUrl = elementParams
Expand All @@ -47,8 +44,8 @@ const EraserLink = ({

// if there are no children or this was a right click-copy as markdown embed.
if (
children === undefined ||
(Array.isArray(children) && children[0] === "View on Eraser")
props.children === undefined ||

Check warning on line 47 in src/ui/eraser-link/index.tsx

View workflow job for this annotation

GitHub Actions / lint

The reactive variable 'props.children' should be used within JSX, a tracked scope (like createEffect), or inside an event handler function, or else changes will be ignored
(Array.isArray(props.children) && props.children[0] === "View on Eraser")

Check warning on line 48 in src/ui/eraser-link/index.tsx

View workflow job for this annotation

GitHub Actions / lint

The reactive variable 'props.children' should be used within JSX, a tracked scope (like createEffect), or inside an event handler function, or else changes will be ignored

Check warning on line 48 in src/ui/eraser-link/index.tsx

View workflow job for this annotation

GitHub Actions / lint

The reactive variable 'props.children[0]' should be used within JSX, a tracked scope (like createEffect), or inside an event handler function, or else changes will be ignored
) {
const imageUrl = elementParams
? `${workspaceUrl}/preview?${elementParams}&type=embed`
Expand Down Expand Up @@ -80,7 +77,7 @@ const EraserLink = ({
class="dark:text-solid-darklink break-normal text-solid-lightlink duration-100 ease-in font-semibold leading-normal transition hover:underline"
rel="noopener noreferrer"
>
{children}
{props.children}
</a>
);
};
Expand Down
16 changes: 8 additions & 8 deletions src/ui/logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const SolidStartLogo = () => (
<g clip-path="url(#clip0_0_3)">
<mask
id="mask0_0_3"
style="mask-type:luminance"
style={{"mask-type":"luminance"}}
maskUnits="userSpaceOnUse"
x="246"
y="369"
Expand All @@ -122,7 +122,7 @@ const SolidStartLogo = () => (
</g>
<mask
id="mask1_0_3"
style="mask-type:luminance"
style={{"mask-type":"luminance"}}
maskUnits="userSpaceOnUse"
x="77"
y="241"
Expand All @@ -142,7 +142,7 @@ const SolidStartLogo = () => (
</g>
<mask
id="mask2_0_3"
style="mask-type:luminance"
style={{"mask-type":"luminance"}}
maskUnits="userSpaceOnUse"
x="375"
y="167"
Expand All @@ -162,7 +162,7 @@ const SolidStartLogo = () => (
</g>
<mask
id="mask3_0_3"
style="mask-type:luminance"
style={{"mask-type":"luminance"}}
maskUnits="userSpaceOnUse"
x="199"
y="35"
Expand All @@ -182,7 +182,7 @@ const SolidStartLogo = () => (
</g>
<mask
id="mask4_0_3"
style="mask-type:luminance"
style={{"mask-type":"luminance"}}
maskUnits="userSpaceOnUse"
x="32"
y="245"
Expand All @@ -202,7 +202,7 @@ const SolidStartLogo = () => (
</g>
<mask
id="mask5_0_3"
style="mask-type:luminance"
style={{"mask-type":"luminance"}}
maskUnits="userSpaceOnUse"
x="154"
y="39"
Expand All @@ -222,7 +222,7 @@ const SolidStartLogo = () => (
</g>
<mask
id="mask6_0_3"
style="mask-type:luminance"
style={{"mask-type":"luminance"}}
maskUnits="userSpaceOnUse"
x="118"
y="106"
Expand All @@ -242,7 +242,7 @@ const SolidStartLogo = () => (
</g>
<mask
id="mask7_0_3"
style="mask-type:luminance"
style={{"mask-type":"luminance"}}
maskUnits="userSpaceOnUse"
x="108"
y="110"
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
extend: {
fontFamily: {
sans: "var(--font-geist)",
display: ["var(--font-geist)", { fontFeatureSettings: '"ss01"' }],
display: ["var(--font-geist)", { fontFeatureSettings: "\"ss01\"" }],
mono: "var(--font-geist-mono)",
},
maxWidth: {
Expand Down

0 comments on commit 2ad47f1

Please sign in to comment.