Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/frontend-nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ jobs:
- name: Install dependencies
run: bun install

- name: Check formatting
run: bun run format:check

- name: Lint
run: bun run lint

- name: Build
run: bun run build
env:
NEXT_PUBLIC_APP_URL: http://localhost:3000
NEXT_OAUTH_CALLBACK_URL: http://localhost:8080/auth/google
NEXT_PUBLIC_API_BASE_URL: https://localhost:8080
NEXT_PUBLIC_API_BASE_URL: https://localhost:8080
3 changes: 3 additions & 0 deletions frontend-nextjs/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
build
coverage
15 changes: 15 additions & 0 deletions frontend-nextjs/.prettierrc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for run prettier formatting after save

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"editor.formatOnSave": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
457 changes: 455 additions & 2 deletions frontend-nextjs/bun.lock

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions frontend-nextjs/eslint.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
import { defineConfig } from "eslint/config";

export default defineConfig([
{
ignores: [".next/**", "node_modules/**", "dist/**", "build/**"],
},
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
plugins: { js },
extends: ["js/recommended"],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
pluginReact.configs.flat["jsx-runtime"],
{
rules: {
"react/prop-types": "off",
},
settings: {
react: {
version: "detect",
},
},
},
]);
15 changes: 13 additions & 2 deletions frontend-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start -p 3000"
"start": "next start -p 3000",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"dependencies": {
"@hello-pangea/dnd": "^18.0.1",
Expand Down Expand Up @@ -48,16 +51,24 @@
"tailwind-merge": "^3.4.0"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@tailwindcss/postcss": "^4.1.18",
"@types/node": "^25.0.3",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"autoprefixer": "^10.4.23",
"babel-plugin-react-compiler": "1.0.0",
"baseline-browser-mapping": "^2.9.11",
"eslint": "^9",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react": "^7.37.5",
"globals": "^17.5.0",
"postcss": "^8.5.6",
"prettier": "3.8.2",
"tailwindcss": "^4.1.18",
"tw-animate-css": "^1.4.0",
"typescript": "^5.9.3"
"typescript": "^5.9.3",
"typescript-eslint": "^8.58.1"
}
}
22 changes: 5 additions & 17 deletions frontend-nextjs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"compilerOptions": {
"target": "ES2017",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -23,15 +19,9 @@
}
],
"paths": {
"@/*": [
"./src/*"
],
"@assets/*": [
"./assets/*"
],
"@components/*": [
"./src/components/*"
]
"@/*": ["./src/*"],
"@assets/*": ["./assets/*"],
"@components/*": ["./src/components/*"]
}
},
"include": [
Expand All @@ -43,7 +33,5 @@
"**/*.mts",
".next/dev/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
]
"exclude": ["node_modules"]
}
Loading