Rewrite the Playwright suite to mock the platform-service at the Next.js proxy boundary (/api/tracker, /api/auth) so no live backend is required, and provide the env vars /api/health needs via webServer.env. Adds a login->dashboard happy path, board/list toggle and vote-prompt coverage, axe-core accessibility assertions (resolved from the workspace, no new dependency), and a no-unexpected-console-errors check. The axe gate surfaced a real bug: the roadmap type-filter and submit-modal <select> elements had no accessible name. Fixed by adding aria-labels. Also ignore coverage/test-results/playwright-report in eslint. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
26 lines
653 B
JavaScript
26 lines
653 B
JavaScript
import { defineConfig, globalIgnores } from "eslint/config";
|
|
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
import nextTs from "eslint-config-next/typescript";
|
|
|
|
const eslintConfig = defineConfig([
|
|
...nextVitals,
|
|
...nextTs,
|
|
{
|
|
rules: {
|
|
"react-hooks/set-state-in-effect": "off",
|
|
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" }],
|
|
},
|
|
},
|
|
globalIgnores([
|
|
".next/**",
|
|
"out/**",
|
|
"build/**",
|
|
"coverage/**",
|
|
"test-results/**",
|
|
"playwright-report/**",
|
|
"next-env.d.ts",
|
|
]),
|
|
]);
|
|
|
|
export default eslintConfig;
|