Skip to content

Commit 23842d3

Browse files
authored
fix: eslint and prettier errors (#9)
A última vez que subiram códigos para a branch main, alguns arquivos ficaram sem a padronização do Eslint e do Prettier que já estavam configurados no projeto. Esse PR ajusta esses padrões de código. A pipeline de validação do lint antes estava quebrando, agora, como podemos ver, está passando com sucesso.
2 parents 4e8f41e + 88f83d1 commit 23842d3

19 files changed

+296
-195
lines changed

frontend/eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default tseslint.config([
2727
},
2828
rules: {
2929
'prettier/prettier': 'error',
30+
'react-refresh/only-export-components': 'off',
3031
},
3132
},
3233
]);

frontend/index.html

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
<!doctype html>
22
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<link rel="stylesheet" href="/src/index.css" />
8+
<title>Py013</title>
9+
</head>
310

4-
<head>
5-
<meta charset="UTF-8" />
6-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<link rel="stylesheet" href="/src/index.css">
9-
<title>Py013</title>
10-
</head>
11-
12-
<body>
13-
<div id="root" class="bg-[#173c5c]"></div>
14-
<script type="module" src="/src/main.tsx"></script>
15-
</body>
16-
17-
</html>
11+
<body>
12+
<div id="root" class="bg-[#173c5c]"></div>
13+
<script type="module" src="/src/main.tsx"></script>
14+
</body>
15+
</html>

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dev": "vite",
88
"build": "tsc -b && vite build",
99
"lint": "eslint .",
10+
"lint:fix": "eslint . --fix",
1011
"preview": "vite preview",
1112
"format": "prettier --write .",
1213
"format:check": "prettier --check ."

frontend/src/App.tsx

Lines changed: 153 additions & 66 deletions
Large diffs are not rendered by default.

frontend/src/Navbar.tsx

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
1-
import { IcBaselineDiscord } from "./components/IcBaselineDiscord";
2-
import { RiGithubFill } from "./components/RiGithubFill";
3-
import { RiWhatsappFill } from "./components/RiWhatsappFill";
4-
import { RiMailFill } from "./components/RiMailFill";
5-
import { RiLinkedinFill } from "./components/RiLinkedinFill";
1+
import { IcBaselineDiscord } from './components/IcBaselineDiscord';
2+
import { RiGithubFill } from './components/RiGithubFill';
3+
import { RiLinkedinFill } from './components/RiLinkedinFill';
4+
import { RiMailFill } from './components/RiMailFill';
5+
import { RiWhatsappFill } from './components/RiWhatsappFill';
66

77
export default function Navbar() {
88
return (
99
<div className="flex justify-between items-center bg-[#3690D9] text-white py-4 px-6">
10-
<div className="text-2xl font-bold">
11-
Py013
12-
</div>
10+
<div className="text-2xl font-bold">Py013</div>
1311

1412
<div className="flex items-center gap-8">
1513
<nav className="flex gap-6">
16-
<a href="#home" className="hover:text-[#FDD835] transition-colors">Home</a>
17-
<a href="#quem-somos" className="hover:text-[#FDD835] transition-colors">Quem Somos</a>
14+
<a href="#home" className="hover:text-[#FDD835] transition-colors">
15+
Home
16+
</a>
17+
<a
18+
href="#quem-somos"
19+
className="hover:text-[#FDD835] transition-colors"
20+
>
21+
Quem Somos
22+
</a>
1823
</nav>
1924

2025
<div className="flex gap-4">
@@ -27,4 +32,4 @@ export default function Navbar() {
2732
</div>
2833
</div>
2934
);
30-
}
35+
}

frontend/src/components/IcBaselineDiscord.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,18 @@ import React from 'react';
22
import type { SVGProps } from 'react';
33

44
export function IcBaselineDiscord(props: SVGProps<SVGSVGElement>) {
5-
return (<svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" {...props}><path fill="currentColor" d="M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12"></path></svg>);
6-
}
5+
return (
6+
<svg
7+
xmlns="http://www.w3.org/2000/svg"
8+
width={24}
9+
height={24}
10+
viewBox="0 0 24 24"
11+
{...props}
12+
>
13+
<path
14+
fill="currentColor"
15+
d="M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12"
16+
></path>
17+
</svg>
18+
);
19+
}

frontend/src/components/RiGithubFill.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@ interface RiGithubFillProps {
22
className?: string;
33
}
44

5-
export function RiGithubFill({ className = "w-6 h-6" }: RiGithubFillProps) {
5+
export function RiGithubFill({ className = 'w-6 h-6' }: RiGithubFillProps) {
66
return (
7-
<svg
8-
className={className}
9-
viewBox="0 0 24 24"
10-
fill="currentColor"
11-
>
7+
<svg className={className} viewBox="0 0 24 24" fill="currentColor">
128
<path d="M12 0C5.374 0 0 5.373 0 12 0 17.302 3.438 21.8 8.207 23.387c.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0112 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z" />
139
</svg>
1410
);
1511
}
16-

frontend/src/components/RiInstagramFill.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,18 @@ import React from 'react';
22
import type { SVGProps } from 'react';
33

44
export function RiInstagramFill(props: SVGProps<SVGSVGElement>) {
5-
return (<svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" {...props}><path fill="currentColor" d="M13.028 2c1.125.003 1.696.009 2.189.023l.194.007c.224.008.445.018.712.03c1.064.05 1.79.218 2.427.465c.66.254 1.216.598 1.772 1.153a4.9 4.9 0 0 1 1.153 1.772c.247.637.415 1.363.465 2.428c.012.266.022.487.03.712l.006.194c.015.492.021 1.063.023 2.188l.001.746v1.31a79 79 0 0 1-.023 2.188l-.006.194c-.008.225-.018.446-.03.712c-.05 1.065-.22 1.79-.466 2.428a4.9 4.9 0 0 1-1.153 1.772a4.9 4.9 0 0 1-1.772 1.153c-.637.247-1.363.415-2.427.465l-.712.03l-.194.006c-.493.014-1.064.021-2.189.023l-.746.001h-1.309a78 78 0 0 1-2.189-.023l-.194-.006a63 63 0 0 1-.712-.031c-1.064-.05-1.79-.218-2.428-.465a4.9 4.9 0 0 1-1.771-1.153a4.9 4.9 0 0 1-1.154-1.772c-.247-.637-.415-1.363-.465-2.428l-.03-.712l-.005-.194A79 79 0 0 1 2 13.028v-2.056a79 79 0 0 1 .022-2.188l.007-.194c.008-.225.018-.446.03-.712c.05-1.065.218-1.79.465-2.428A4.9 4.9 0 0 1 3.68 3.678a4.9 4.9 0 0 1 1.77-1.153c.638-.247 1.363-.415 2.428-.465c.266-.012.488-.022.712-.03l.194-.006a79 79 0 0 1 2.188-.023zM12 7a5 5 0 1 0 0 10a5 5 0 0 0 0-10m0 2a3 3 0 1 1 .001 6a3 3 0 0 1 0-6m5.25-3.5a1.25 1.25 0 0 0 0 2.5a1.25 1.25 0 0 0 0-2.5"></path></svg>);
6-
}
5+
return (
6+
<svg
7+
xmlns="http://www.w3.org/2000/svg"
8+
width={24}
9+
height={24}
10+
viewBox="0 0 24 24"
11+
{...props}
12+
>
13+
<path
14+
fill="currentColor"
15+
d="M13.028 2c1.125.003 1.696.009 2.189.023l.194.007c.224.008.445.018.712.03c1.064.05 1.79.218 2.427.465c.66.254 1.216.598 1.772 1.153a4.9 4.9 0 0 1 1.153 1.772c.247.637.415 1.363.465 2.428c.012.266.022.487.03.712l.006.194c.015.492.021 1.063.023 2.188l.001.746v1.31a79 79 0 0 1-.023 2.188l-.006.194c-.008.225-.018.446-.03.712c-.05 1.065-.22 1.79-.466 2.428a4.9 4.9 0 0 1-1.153 1.772a4.9 4.9 0 0 1-1.772 1.153c-.637.247-1.363.415-2.427.465l-.712.03l-.194.006c-.493.014-1.064.021-2.189.023l-.746.001h-1.309a78 78 0 0 1-2.189-.023l-.194-.006a63 63 0 0 1-.712-.031c-1.064-.05-1.79-.218-2.428-.465a4.9 4.9 0 0 1-1.771-1.153a4.9 4.9 0 0 1-1.154-1.772c-.247-.637-.415-1.363-.465-2.428l-.03-.712l-.005-.194A79 79 0 0 1 2 13.028v-2.056a79 79 0 0 1 .022-2.188l.007-.194c.008-.225.018-.446.03-.712c.05-1.065.218-1.79.465-2.428A4.9 4.9 0 0 1 3.68 3.678a4.9 4.9 0 0 1 1.77-1.153c.638-.247 1.363-.415 2.428-.465c.266-.012.488-.022.712-.03l.194-.006a79 79 0 0 1 2.188-.023zM12 7a5 5 0 1 0 0 10a5 5 0 0 0 0-10m0 2a3 3 0 1 1 .001 6a3 3 0 0 1 0-6m5.25-3.5a1.25 1.25 0 0 0 0 2.5a1.25 1.25 0 0 0 0-2.5"
16+
></path>
17+
</svg>
18+
);
19+
}

frontend/src/components/RiLinkedinFill.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@ interface RiLinkedinFillProps {
22
className?: string;
33
}
44

5-
export function RiLinkedinFill({ className = "w-6 h-6" }: RiLinkedinFillProps) {
5+
export function RiLinkedinFill({ className = 'w-6 h-6' }: RiLinkedinFillProps) {
66
return (
7-
<svg
8-
className={className}
9-
viewBox="0 0 24 24"
10-
fill="currentColor"
11-
>
7+
<svg className={className} viewBox="0 0 24 24" fill="currentColor">
128
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />
139
</svg>
1410
);
1511
}
16-

frontend/src/components/RiMailFill.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@ interface RiMailFillProps {
22
className?: string;
33
}
44

5-
export function RiMailFill({ className = "w-6 h-6" }: RiMailFillProps) {
5+
export function RiMailFill({ className = 'w-6 h-6' }: RiMailFillProps) {
66
return (
7-
<svg
8-
className={className}
9-
viewBox="0 0 24 24"
10-
fill="currentColor"
11-
>
7+
<svg className={className} viewBox="0 0 24 24" fill="currentColor">
128
<path d="M20 4H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2zm0 2v.511l-8 6.223-8-6.222V6h16zM4 18V9.044l7.386 5.745a.994.994 0 0 0 1.228 0L20 9.044 20.002 18H4z" />
139
</svg>
1410
);
1511
}
16-

0 commit comments

Comments
 (0)