2026-05-12 22:24:51 +02:00
|
|
|
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals';
|
|
|
|
|
import prettier from 'eslint-config-prettier/flat';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
|
|
|
|
const eslintConfig = [
|
2026-05-12 22:24:51 +02:00
|
|
|
...nextCoreWebVitals,
|
|
|
|
|
prettier,
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
{
|
|
|
|
|
rules: {
|
2026-05-12 22:24:51 +02:00
|
|
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
|
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
|
|
|
// React Compiler safety rules that ship with eslint-config-next@16 /
|
|
|
|
|
// react-hooks@7. These flag setState-in-effect, ref-during-render,
|
|
|
|
|
// and impurity patterns that the upcoming React Compiler will trip
|
|
|
|
|
// on. They surfaced ~73 hits in the existing codebase on the
|
|
|
|
|
// next-16 bump — all legitimate findings but a clean-up project
|
|
|
|
|
// worth a dedicated triage pass, not a blocker for the dep
|
|
|
|
|
// upgrade. Demoted to warnings so the suite stays visible without
|
|
|
|
|
// turning every commit red. Tracked in docs/BACKLOG.md §G.
|
|
|
|
|
'react-hooks/set-state-in-effect': 'warn',
|
|
|
|
|
'react-hooks/set-state-in-render': 'warn',
|
|
|
|
|
'react-hooks/refs': 'warn',
|
|
|
|
|
'react-hooks/immutability': 'warn',
|
|
|
|
|
'react-hooks/purity': 'warn',
|
|
|
|
|
'react-hooks/incompatible-library': 'warn',
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
},
|
|
|
|
|
},
|
2026-05-12 18:16:18 +02:00
|
|
|
{
|
|
|
|
|
// Tests assert response shape via expect() — narrowing every
|
|
|
|
|
// `res.json()` to a structural type adds boilerplate without catching
|
|
|
|
|
// bugs. Allow `any` casts at JSON boundaries in test files.
|
2026-05-12 22:24:51 +02:00
|
|
|
files: ['tests/**/*.ts', 'tests/**/*.tsx'],
|
2026-05-12 18:16:18 +02:00
|
|
|
rules: {
|
2026-05-12 22:24:51 +02:00
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
2026-05-12 18:16:18 +02:00
|
|
|
},
|
|
|
|
|
},
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
{
|
2026-05-12 22:24:51 +02:00
|
|
|
ignores: ['client-portal/**', 'next-env.d.ts'],
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default eslintConfig;
|