Skip to content

Commit 872b8ee

Browse files
committed
Fix linting errors
1 parent 82821a0 commit 872b8ee

File tree

4 files changed

+61
-16
lines changed

4 files changed

+61
-16
lines changed

components/footer/index.tsx

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,41 @@ export default function Footer() {
3838
<Link href="/#donate">{t("donateTitle")}</Link>
3939
</div>
4040
<div className={classes.list}>
41-
<a href="https://github.com/TheAlgorithms/" target="_blank" rel="noreferrer">GitHub</a>
42-
<a href="https://matrix.to/#/#TheAlgorithms_community:gitter.im" target="_blank" rel="noreferrer">
41+
<a
42+
href="https://github.com/TheAlgorithms/"
43+
target="_blank"
44+
rel="noreferrer"
45+
>
46+
GitHub
47+
</a>
48+
<a
49+
href="https://matrix.to/#/#TheAlgorithms_community:gitter.im"
50+
target="_blank"
51+
rel="noreferrer"
52+
>
4353
Gitter
4454
</a>
45-
<a href="https://twitter.com/The_Algorithms" target="_blank" rel="noreferrer">X</a>
46-
<a href="https://github.com/TheAlgorithms/website" target="_blank" rel="noreferrer">
55+
<a
56+
href="https://twitter.com/The_Algorithms"
57+
target="_blank"
58+
rel="noreferrer"
59+
>
60+
X
61+
</a>
62+
<a
63+
href="https://github.com/TheAlgorithms/website"
64+
target="_blank"
65+
rel="noreferrer"
66+
>
4767
{t("sourceCodeFooter")}
4868
</a>
49-
<a href="mailto:[email protected]" target="_blank" rel="noreferrer">{t("contact")}</a>
69+
<a
70+
href="mailto:[email protected]"
71+
target="_blank"
72+
rel="noreferrer"
73+
>
74+
{t("contact")}
75+
</a>
5076
</div>
5177
<a
5278
className={classes.vercelLogo}

components/navbar/index.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
SwipeableDrawer,
1212
ListItem,
1313
} from "@material-ui/core";
14-
import NextLink from "next/link";
1514
import { JumboThemeProvider } from "hooks/themes";
1615
import Link from "components/link";
1716
import { useRouter } from "next/router";
@@ -133,7 +132,9 @@ export default function Navbar({
133132
<GithubOriginalIcon color="white" />
134133
</IconButton>
135134
{menu.map((item) => (
136-
<Button key={item.name} href={item.href} target={item.target}>{item.name}</Button>
135+
<Button key={item.name} href={item.href} target={item.target}>
136+
{item.name}
137+
</Button>
137138
))}
138139
</div>
139140
)}
@@ -152,13 +153,24 @@ export default function Navbar({
152153
</ListItem>
153154
{menu.map((item) => (
154155
<MenuItem key={item.name}>
155-
<Button href={item.href} target={item.target} className={classes.sidebarLink}>
156+
<Button
157+
href={item.href}
158+
target={item.target}
159+
className={classes.sidebarLink}
160+
>
156161
{item.name}
157162
</Button>
158163
</MenuItem>
159164
))}
160165
<MenuItem>
161-
<a className={classes.unstyledLink} href="https://github.com/TheAlgorithms" target="_blank" rel="noreferrer">GitHub</a>
166+
<a
167+
className={classes.unstyledLink}
168+
href="https://github.com/TheAlgorithms"
169+
target="_blank"
170+
rel="noreferrer"
171+
>
172+
GitHub
173+
</a>
162174
</MenuItem>
163175
<MenuItem onClick={() => switchTheme()}>
164176
{darkTheme ? t("lightModeNavbar") : t("darkModeNavbar")}

pages/index.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,17 @@ export default function Home({
261261
rel="noreferrer"
262262
aria-label={t("X")}
263263
>
264-
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512" version="1.1">
265-
<g id="surface1">
266-
<path d="M 304.757812 217.003906 L 495.394531 0 L 450.234375 0 L 284.636719 188.382812 L 152.472656 0 L 0 0 L 199.902344 284.894531 L 0 512.425781 L 45.160156 512.425781 L 219.921875 313.445312 L 359.527344 512.425781 L 512 512.425781 M 61.457031 33.347656 L 130.832031 33.347656 L 450.203125 480.71875 L 380.808594 480.71875 "/>
267-
</g>
268-
</svg>
264+
<svg
265+
xmlns="http://www.w3.org/2000/svg"
266+
width="512"
267+
height="512"
268+
viewBox="0 0 512 512"
269+
version="1.1"
270+
>
271+
<g id="surface1">
272+
<path d="M 304.757812 217.003906 L 495.394531 0 L 450.234375 0 L 284.636719 188.382812 L 152.472656 0 L 0 0 L 199.902344 284.894531 L 0 512.425781 L 45.160156 512.425781 L 219.921875 313.445312 L 359.527344 512.425781 L 512 512.425781 M 61.457031 33.347656 L 130.832031 33.347656 L 450.203125 480.71875 L 380.808594 480.71875 " />
273+
</g>
274+
</svg>
269275
</IconButton>
270276
</Card>
271277
</Tooltip>

scripts/fetch-algorithms.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,9 @@ const categoriesToSkip = ["main", "src", "algorithms", "problems"];
306306
if (match) {
307307
const algorithm = algorithms[normalizeAlgorithm(match[1])];
308308
if (algorithm) {
309-
algorithm.explanationUrl[locale.code] =
310-
`https://github.com/TheAlgorithms/Algorithms-Explanation/tree/master/${dir}`;
309+
algorithm.explanationUrl[
310+
locale.code
311+
] = `https://github.com/TheAlgorithms/Algorithms-Explanation/tree/master/${dir}`;
311312
algorithm.body[locale.code] = await renderMarkdown(
312313
(await fs.promises.readFile(dir))
313314
.toString()

0 commit comments

Comments
 (0)