Files
rdap/eslint.config.mjs
Xevion dd9433283e fix: upgrade to Next.js 16 and fix pnpm 10 compatibility
- Upgrade Next.js from 15.5.6 to 16.1.1
- Upgrade eslint-config-next to 16.1.1 for ESLint 9 flat config support
- Add required ESLint dependencies (@eslint/js, @eslint/eslintrc, typescript-eslint)
- Rewrite eslint.config.mjs to use Next.js 16's native flat config
- Fix React hooks lint errors (set-state-in-effect) by using queueMicrotask
- Fix exhaustive-deps warning in LookupInput
- Suppress false positive refs lint error in react-hook-form integration

This resolves pnpm 10's stricter package resolution and module exports handling.
2025-12-26 14:17:29 -06:00

45 lines
793 B
JavaScript

import nextConfig from "eslint-config-next";
import tseslint from "typescript-eslint";
export default [
// Base configuration with ignores
{
ignores: [
".media/**",
"coverage/**",
".next/**",
"node_modules/**",
"out/**",
"*.config.mjs",
"*.config.js",
],
},
// Next.js core web vitals config
...nextConfig,
// TypeScript recommended rules
...tseslint.configs.recommended,
// TypeScript rules requiring type checking
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parserOptions: {
project: "./tsconfig.json",
},
},
rules: {
"@typescript-eslint/consistent-type-imports": "warn",
},
},
// Allow CommonJS require in .cjs files
{
files: ["**/*.cjs"],
rules: {
"@typescript-eslint/no-require-imports": "off",
},
},
];