2026-09-25 20:04:08 +00:00
|
|
|
import { defineConfig, globalIgnores } from "eslint/config";
|
|
|
|
|
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
|
|
|
import nextTs from "eslint-config-next/typescript";
|
|
|
|
|
|
|
|
|
|
// `next lint` was removed in Next 16 — `npm run lint` runs the ESLint CLI
|
|
|
|
|
// against this flat config instead.
|
|
|
|
|
export default defineConfig([
|
|
|
|
|
...nextVitals,
|
|
|
|
|
...nextTs,
|
|
|
|
|
globalIgnores([
|
|
|
|
|
".next/**",
|
|
|
|
|
"out/**",
|
|
|
|
|
"build/**",
|
|
|
|
|
"next-env.d.ts",
|
|
|
|
|
"public/**",
|
|
|
|
|
".worktrees/**",
|
fix: harden workforce, plant and financials
Improve workforce scanning, site transfers and timesheet exports.
Audit plant imports, duplicate identities, rates and dashboard totals.
Repair delivery PO selection, periodic rechecks and receiving guards.
Align financial ledgers, supplier periods and mobile layouts.
Add the site map preview, shared theme controls and audit evidence.
Verify 3,455 application tests, six fuel export tests, TypeScript and
an optimized production build. Clean up a leaked test timer and keep
local worktrees and generated reports out of ESLint traversal.
Changed-file lint passes; repository-wide lint retains 33 existing
errors in unchanged files.
2026-10-19 11:18:31 +00:00
|
|
|
".claude/worktrees/**",
|
|
|
|
|
".remember/**",
|
|
|
|
|
"reports/**",
|
2026-09-25 20:04:08 +00:00
|
|
|
".superpowers/**",
|
|
|
|
|
"RAW_DOCS/**",
|
|
|
|
|
".kilo/**",
|
|
|
|
|
".opencode/**",
|
|
|
|
|
".freebuff/**",
|
|
|
|
|
".playwright-mcp/**",
|
2026-10-25 21:12:57 +00:00
|
|
|
// foreman is a standalone Ink terminal tool, not part of the Next app.
|
|
|
|
|
"foreman/**",
|
2026-09-25 20:04:08 +00:00
|
|
|
]),
|
2026-10-25 21:12:57 +00:00
|
|
|
{
|
|
|
|
|
// Node scripts and config files: CommonJS requires and loosely typed
|
|
|
|
|
// one-off helpers are normal here.
|
|
|
|
|
files: ["scripts/**", "next.config.js"],
|
|
|
|
|
rules: {
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
|
"@typescript-eslint/no-require-imports": "off",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
files: ["**/*.{js,jsx,mjs,ts,tsx,mts,cts}"],
|
|
|
|
|
// New React Compiler rules from eslint-config-next 16: surfaced as
|
|
|
|
|
// warnings until the existing effects/refs are reworked deliberately.
|
|
|
|
|
rules: {
|
|
|
|
|
"react-hooks/set-state-in-effect": "warn",
|
|
|
|
|
"react-hooks/refs": "warn",
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-09-25 20:04:08 +00:00
|
|
|
]);
|