Add prettier

This commit is contained in:
Ana Custura 2026-06-02 12:21:25 +01:00
parent 205675b086
commit 5e5c7e8964
7 changed files with 1051 additions and 3 deletions

View file

@ -4,6 +4,7 @@ import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'
import eslintConfigPrettier from "eslint-config-prettier";
export default defineConfig([
globalIgnores(['dist']),
@ -14,6 +15,7 @@ export default defineConfig([
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
eslintConfigPrettier,
],
languageOptions: {
globals: globals.browser,

1045
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -10,8 +10,12 @@
"preview": "vite preview"
},
"dependencies": {
"antd": "^6.4.3",
"oidc-client-ts": "^3.5.0",
"react": "^19.2.6",
"react-dom": "^19.2.6"
"react-dom": "^19.2.6",
"react-oidc-context": "^3.3.1",
"react-router": "^7.16.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
@ -20,6 +24,7 @@
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"eslint": "^10.3.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.6.0",

0
src/UserContext.tsx Normal file
View file

0
src/account.tsx Normal file
View file

0
src/home.tsx Normal file
View file

0
src/profile.tsx Normal file
View file