- {data.map((question) => {
+ {data.map((question, index) => {
const percentage =
maxCount > 0 ? (question.count / maxCount) * 100 : 0;
diff --git a/eslint.config.js b/eslint.config.js
index b449b6e..41482c0 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -1,3 +1,5 @@
+import nextTypescript from "eslint-config-next/typescript";
+import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { FlatCompat } from "@eslint/eslintrc";
@@ -10,11 +12,10 @@ const compat = new FlatCompat({
});
const eslintConfig = [
+ ...nextTypescript,
js.configs.recommended,
- ...compat.extends(
- "next/core-web-vitals",
- "plugin:@typescript-eslint/recommended"
- ),
+ ...nextCoreWebVitals,
+ ...compat.extends("plugin:@typescript-eslint/recommended"),
{
ignores: [
"node_modules/",
@@ -34,7 +35,7 @@ const eslintConfig = [
"prefer-const": "error",
"no-unused-vars": "warn",
},
- },
+ }
];
export default eslintConfig;
diff --git a/package.json b/package.json
index bccfeec..836ac9b 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
"dev:next-only": "next dev --turbopack",
"format": "npx prettier --write .",
"format:check": "npx prettier --check .",
- "lint": "next lint",
+ "lint": "eslint .",
"lint:fix": "npx eslint --fix",
"biome:check": "biome check .",
"biome:fix": "biome check --write .",
@@ -33,100 +33,99 @@
"lint:md:fix": "markdownlint-cli2 --fix \"**/*.md\" \"!.trunk/**\" \"!.venv/**\" \"!node_modules/**\""
},
"dependencies": {
- "@prisma/adapter-pg": "^6.10.1",
- "@prisma/client": "^6.10.1",
- "@radix-ui/react-accordion": "^1.2.11",
- "@radix-ui/react-alert-dialog": "^1.1.14",
- "@radix-ui/react-collapsible": "^1.1.11",
- "@radix-ui/react-dialog": "^1.1.14",
- "@radix-ui/react-dropdown-menu": "^2.1.15",
- "@radix-ui/react-label": "^2.1.7",
- "@radix-ui/react-select": "^2.2.5",
- "@radix-ui/react-separator": "^1.1.7",
- "@radix-ui/react-slider": "^1.3.5",
- "@radix-ui/react-slot": "^1.2.3",
- "@radix-ui/react-switch": "^1.2.5",
- "@radix-ui/react-tabs": "^1.1.12",
- "@radix-ui/react-toast": "^1.2.14",
- "@radix-ui/react-toggle": "^1.1.9",
- "@radix-ui/react-toggle-group": "^1.1.10",
- "@radix-ui/react-tooltip": "^1.2.7",
- "@rapideditor/country-coder": "^5.4.0",
+ "@prisma/adapter-pg": "^6.19.2",
+ "@prisma/client": "^6.19.2",
+ "@radix-ui/react-accordion": "^1.2.12",
+ "@radix-ui/react-alert-dialog": "^1.1.15",
+ "@radix-ui/react-collapsible": "^1.1.12",
+ "@radix-ui/react-dialog": "^1.1.15",
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
+ "@radix-ui/react-label": "^2.1.8",
+ "@radix-ui/react-select": "^2.2.6",
+ "@radix-ui/react-separator": "^1.1.8",
+ "@radix-ui/react-slider": "^1.3.6",
+ "@radix-ui/react-slot": "^1.2.4",
+ "@radix-ui/react-switch": "^1.2.6",
+ "@radix-ui/react-tabs": "^1.1.13",
+ "@radix-ui/react-toast": "^1.2.15",
+ "@radix-ui/react-toggle": "^1.1.10",
+ "@radix-ui/react-toggle-group": "^1.1.11",
+ "@radix-ui/react-tooltip": "^1.2.8",
+ "@rapideditor/country-coder": "^5.6.0",
"@tanstack/react-table": "^8.21.3",
"@types/canvas-confetti": "^1.9.0",
"@types/d3": "^7.4.3",
"@types/d3-cloud": "^1.2.9",
"@types/d3-selection": "^3.0.11",
"@types/geojson": "^7946.0.16",
- "@types/leaflet": "^1.9.19",
- "@types/node-fetch": "^2.6.12",
- "bcryptjs": "^3.0.2",
- "canvas-confetti": "^1.9.3",
+ "@types/leaflet": "^1.9.21",
+ "@types/node-fetch": "^2.6.13",
+ "bcryptjs": "^3.0.3",
+ "canvas-confetti": "^1.9.4",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"csv-parse": "^5.6.0",
"d3": "^7.9.0",
- "d3-cloud": "^1.2.7",
+ "d3-cloud": "^1.2.8",
"d3-selection": "^3.0.0",
"date-fns": "^4.1.0",
"i18n-iso-countries": "^7.14.0",
"iso-639-1": "^3.1.5",
"leaflet": "^1.9.4",
"lucide-react": "^0.525.0",
- "motion": "^12.19.2",
- "next": "^15.3.4",
- "next-auth": "^4.24.11",
+ "motion": "^12.27.1",
+ "next": "^15.5.9",
+ "next-auth": "^4.24.13",
"next-themes": "^0.4.6",
- "node-cron": "^4.1.1",
+ "node-cron": "^4.2.1",
"node-fetch": "^3.3.2",
- "pg": "^8.16.3",
- "react": "^19.1.0",
- "react-day-picker": "^9.7.0",
- "react-dom": "^19.1.0",
+ "pg": "^8.17.1",
+ "react": "^19.2.3",
+ "react-day-picker": "^9.13.0",
+ "react-dom": "^19.2.3",
"react-leaflet": "^5.0.0",
"react-markdown": "^10.1.0",
- "recharts": "^3.0.2",
+ "recharts": "^3.6.0",
"rehype-raw": "^7.0.0",
- "sonner": "^2.0.5",
- "tailwind-merge": "^3.3.1",
+ "sonner": "^2.0.7",
+ "tailwind-merge": "^3.4.0",
"vaul": "^1.1.2",
- "zod": "^3.25.67"
+ "zod": "^3.25.76"
},
"devDependencies": {
- "@eslint/eslintrc": "^3.3.1",
- "@eslint/js": "^9.30.0",
- "@playwright/test": "^1.53.1",
- "@tailwindcss/postcss": "^4.1.11",
- "@testing-library/dom": "^10.4.0",
- "@testing-library/jest-dom": "^6.6.3",
- "@testing-library/react": "^16.3.0",
- "@types/node": "^24.0.6",
+ "@eslint/js": "^9.39.2",
+ "@playwright/test": "^1.57.0",
+ "@tailwindcss/postcss": "^4.1.18",
+ "@testing-library/dom": "^10.4.1",
+ "@testing-library/jest-dom": "^6.9.1",
+ "@testing-library/react": "^16.3.2",
+ "@types/node": "^24.10.9",
"@types/node-cron": "^3.0.11",
- "@types/pg": "^8.15.4",
- "@types/react": "^19.1.8",
- "@types/react-dom": "^19.1.6",
- "@typescript-eslint/eslint-plugin": "^8.35.0",
- "@typescript-eslint/parser": "^8.35.0",
- "@vitejs/plugin-react": "^4.6.0",
+ "@types/pg": "^8.16.0",
+ "@types/react": "^19.2.8",
+ "@types/react-dom": "^19.2.3",
+ "@typescript-eslint/eslint-plugin": "^8.53.1",
+ "@typescript-eslint/parser": "^8.53.1",
+ "@vitejs/plugin-react": "^4.7.0",
"@vitest/coverage-v8": "^3.2.4",
- "concurrently": "^9.2.0",
- "eslint": "^9.30.0",
- "eslint-config-next": "^15.3.4",
- "eslint-plugin-prettier": "^5.5.1",
+ "concurrently": "^9.2.1",
+ "eslint": "^9.39.2",
+ "eslint-config-next": "^15.5.9",
+ "eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react-hooks": "^5.2.0",
"jest-axe": "^10.0.0",
"jsdom": "^26.1.0",
"markdownlint-cli2": "^0.18.1",
"node-mocks-http": "^1.17.2",
"postcss": "^8.5.6",
- "prettier": "^3.6.2",
+ "prettier": "^3.8.0",
"prettier-plugin-jinja-template": "^2.1.0",
- "prisma": "^6.10.1",
- "tailwindcss": "^4.1.11",
+ "prisma": "^6.19.2",
+ "tailwindcss": "^4.1.18",
"ts-node": "^10.9.2",
- "tsx": "^4.20.3",
- "tw-animate-css": "^1.3.4",
- "typescript": "^5.8.3",
+ "tsx": "^4.21.0",
+ "tw-animate-css": "^1.4.0",
+ "typescript": "^5.9.3",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.2.4"
},