From 165f4d58e6102ca42a4c5836b1f5187816022af7 Mon Sep 17 00:00:00 2001 From: Louis Grasset Date: Sat, 13 Jul 2024 20:05:39 +0200 Subject: [PATCH] chore(config): reformat without prettier --- .eslintrc.js | 88 ++++++++++---------- src/sections/Statistics/Statistics.tsx | 110 ++++++++++++------------- vite.config.mts | 2 +- 3 files changed, 100 insertions(+), 100 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 580cbc8..e2b7517 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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", + }, }; diff --git a/src/sections/Statistics/Statistics.tsx b/src/sections/Statistics/Statistics.tsx index 489e0a8..1d42e64 100644 --- a/src/sections/Statistics/Statistics.tsx +++ b/src/sections/Statistics/Statistics.tsx @@ -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 ( -
- +
+ ); } diff --git a/vite.config.mts b/vite.config.mts index 1ff0da0..d89c4f4 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -3,5 +3,5 @@ import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [react()], + plugins: [react()], });