mirror of
https://github.com/Xevion/rdap.git
synced 2026-01-31 06:25:28 -06:00
- 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.
45 lines
793 B
JavaScript
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",
|
|
},
|
|
},
|
|
];
|