Skip to content

Commit

Permalink
chore(config): reformat without prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgrasset committed Jul 13, 2024
1 parent 86a83e5 commit 165f4d5
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 100 deletions.
88 changes: 44 additions & 44 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
env: {
browser: true,
es2021: true,
node: true,
},
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "@typescript-eslint", "simple-import-sort"],
rules: {
indent: ["error", 4],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
"eol-last": 1,
"no-multiple-empty-lines": ["error", { max: 1, maxEOF: 0 }],
"space-unary-ops": [
2,
{
words: true,
nonwords: true,
},
extends: [
"eslint:recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
],
"no-trailing-spaces": "error",
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": ["error"],
"object-curly-spacing": ["error", "always"],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-unused-vars": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/no-unescaped-entities": "off",
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "@typescript-eslint", "simple-import-sort"],
rules: {
indent: ["error", 4],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
"eol-last": 1,
"no-multiple-empty-lines": ["error", { max: 1, maxEOF: 0 }],
"space-unary-ops": [
2,
{
words: true,
nonwords: true,
},
],
"no-trailing-spaces": "error",
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": ["error"],
"object-curly-spacing": ["error", "always"],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-unused-vars": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/no-unescaped-entities": "off",
},
};
110 changes: 55 additions & 55 deletions src/sections/Statistics/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,77 +5,77 @@ import CountUp from "react-countup";

import { Information } from "../../components";
import {
bacPlus2Projects,
bacPlus3Projects,
bacPlus5Projects,
endOfStudyProjects,
skills,
bacPlus2Projects,
bacPlus3Projects,
bacPlus5Projects,
endOfStudyProjects,
skills,
} from "../../data";

export function Statistics() {
const projectsCount = useMemo(
() =>
bacPlus2Projects.length +
const projectsCount = useMemo(
() =>
bacPlus2Projects.length +
bacPlus3Projects.length +
bacPlus5Projects.length +
endOfStudyProjects.length,
[],
);
const experience = useMemo(() => new Date().getFullYear() - 2018, []);
const hardskills = useMemo(() => skills.map((skill) => skill.name), []);
const softskills = [
"Proactif",
"Organisé",
"Polyvalent",
"Autodidacte",
"Passionné",
"Attentif",
"Autonome",
];
[],
);
const experience = useMemo(() => new Date().getFullYear() - 2018, []);
const hardskills = useMemo(() => skills.map((skill) => skill.name), []);
const softskills = [
"Proactif",
"Organisé",
"Polyvalent",
"Autodidacte",
"Passionné",
"Attentif",
"Autonome",
];

return (
<section className="section-statistics">
<ul className="section-statistics__list">
<li className="section-statistics__list-item">
<span className="section-statistics__list-item__count">
return (
<section className="section-statistics">
<ul className="section-statistics__list">
<li className="section-statistics__list-item">
<span className="section-statistics__list-item__count">
+<CountUp start={1} end={experience} duration={0.4} />
</span>
</span>
Années d'experience
</li>
<li className="section-statistics__list-item">
<span className="section-statistics__list-item__count">
</li>
<li className="section-statistics__list-item">
<span className="section-statistics__list-item__count">
+<CountUp end={projectsCount} duration={1} />
</span>
</span>
Projets réalisés
</li>
<li
className="section-statistics__list-item section-statistics__list-item--separator"
aria-hidden
>
</li>
<li
className="section-statistics__list-item section-statistics__list-item--separator"
aria-hidden
>
|
</li>
<li className="section-statistics__list-item">
<span className="section-statistics__list-item__count">
</li>
<li className="section-statistics__list-item">
<span className="section-statistics__list-item__count">
Hardskills
</span>
</span>
+ <CountUp end={hardskills.length} duration={1} /> technologies
maitrisées
<Information content={hardskills.join(", ") + "..."} />
</li>
<li
className="section-statistics__list-item section-statistics__list-item--separator"
aria-hidden
>
<Information content={hardskills.join(", ") + "..."} />
</li>
<li
className="section-statistics__list-item section-statistics__list-item--separator"
aria-hidden
>
|
</li>
<li className="section-statistics__list-item">
<span className="section-statistics__list-item__count">
</li>
<li className="section-statistics__list-item">
<span className="section-statistics__list-item__count">
Softskills
</span>
</span>
+ <CountUp end={softskills.length} duration={1} /> qualités
<Information content={softskills.join(", ") + "..."} />
</li>
</ul>
</section>
);
<Information content={softskills.join(", ") + "..."} />
</li>
</ul>
</section>
);
}
2 changes: 1 addition & 1 deletion vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { defineConfig } from "vite";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react()],
});

0 comments on commit 165f4d5

Please sign in to comment.