Skip to content

Commit

Permalink
fix: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
berviantoleo committed Jul 18, 2023
1 parent 95c53bc commit bfa4557
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions examples/demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function App(): JSX.Element {
setMode((prevMode) => (prevMode === "light" ? "dark" : "light"));
},
}),
[]
[],
);

const theme = React.useMemo(
Expand All @@ -22,7 +22,7 @@ export default function App(): JSX.Element {
mode,
},
}),
[mode]
[mode],
);
return (
<ColorModeContext.Provider value={colorMode}>
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/src/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const useStyles = makeStyles(() =>
title: {
flexGrow: 1,
},
})
}),
);

export default function MainPage(): JSX.Element {
Expand Down
4 changes: 2 additions & 2 deletions examples/demo/src/components/Readonly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ReactMultiCrop, IOutputData } from "@berviantoleo/react-multi-crop";

function convertToImage(
name: string,
output: IOutputData
output: IOutputData,
): JSX.Element | undefined {
const canvasElement = output.canvasElement?.toDataURL();

Expand All @@ -18,7 +18,7 @@ function convertToImage(

export default function Readonly(): JSX.Element {
const [selectedValue, setSelectedValue] = React.useState<IOutputData | null>(
null
null,
);
const [hoverValue, setHoverValue] = React.useState<IOutputData | null>(null);

Expand Down
10 changes: 5 additions & 5 deletions examples/demo/src/serviceWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const isLocalhost = Boolean(
window.location.hostname === "[::1]" ||
// 127.0.0.1/8 is considered localhost for IPv4.
window.location.hostname.match(
/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
)
/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/,
),
);

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand All @@ -44,7 +44,7 @@ export function register(config: Record<string, any>): void {
navigator.serviceWorker.ready.then(() => {
console.log(
"This web app is being served cache-first by a service " +
"worker. To learn more, visit https://bit.ly/CRA-PWA"
"worker. To learn more, visit https://bit.ly/CRA-PWA",
);
});
} else {
Expand Down Expand Up @@ -73,7 +73,7 @@ function registerValidSW(swUrl: string, config: Record<string, any>) {
// content until all client tabs are closed.
console.log(
"New content is available and will be used when all " +
"tabs for this page are closed. See https://bit.ly/CRA-PWA."
"tabs for this page are closed. See https://bit.ly/CRA-PWA.",
);

// Execute callback
Expand Down Expand Up @@ -124,7 +124,7 @@ function checkValidServiceWorker(swUrl: string, config: Record<string, any>) {
})
.catch(() => {
console.log(
"No internet connection found. App is running in offline mode."
"No internet connection found. App is running in offline mode.",
);
});
}
Expand Down

0 comments on commit bfa4557

Please sign in to comment.