From 7fed47dfeb56af35d3e8cc378d6efd26fb744d27 Mon Sep 17 00:00:00 2001 From: Hermann_Kitio Date: Fri, 17 Apr 2026 17:55:45 +0300 Subject: [PATCH] =?UTF-8?q?chore(tooling):=20ajouter=20.prettierrc=20+=20i?= =?UTF-8?q?nt=C3=A9grer=20eslint-config-prettier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- .prettierrc | 8 ++++++++ eslint.config.js | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..6c900fd --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "semi": false, + "singleQuote": true, + "trailingComma": "all", + "printWidth": 100, + "tabWidth": 2, + "arrowParens": "always" +} diff --git a/eslint.config.js b/eslint.config.js index 5e6b472..b101db6 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -3,6 +3,7 @@ import globals from 'globals' import reactHooks from 'eslint-plugin-react-hooks' import reactRefresh from 'eslint-plugin-react-refresh' import tseslint from 'typescript-eslint' +import prettierConfig from 'eslint-config-prettier' import { defineConfig, globalIgnores } from 'eslint/config' export default defineConfig([ @@ -14,6 +15,7 @@ export default defineConfig([ tseslint.configs.recommended, reactHooks.configs.flat.recommended, reactRefresh.configs.vite, + prettierConfig, ], languageOptions: { ecmaVersion: 2020,