🔧(frontend) configure Prettier and ESLint

Set up Prettier with minimal configuration. Installed eslint-config-prettier to
prevent conflicts between ESLint and Prettier.
This commit is contained in:
lebaudantoine
2024-08-06 11:06:16 +02:00
committed by aleb_the_flash
parent d7b1fbaf28
commit 79519fef26
3 changed files with 38 additions and 4 deletions

View File

@@ -8,7 +8,8 @@
"build": "panda codegen && tsc -b && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"i18n:extract": "npx i18next -c i18next-parser.config.json"
"i18n:extract": "npx i18next -c i18next-parser.config.json",
"format": "prettier --write ./src"
},
"dependencies": {
"@livekit/components-react": "2.3.3",
@@ -40,10 +41,12 @@
"@typescript-eslint/parser": "7.13.1",
"@vitejs/plugin-react": "4.3.1",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-refresh": "0.4.7",
"postcss": "8.4.39",
"prettier": "3.3.3",
"typescript": "5.5.2",
"vite": "5.3.1",
"vite-tsconfig-paths": "4.3.2"