- eslint.config.mjs: replace hardcoded absolute path with proper @eslint/eslintrc import - tsconfig.json: add allowImportingTsExtensions for .ts import extensions in payload.config.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
356 B
JavaScript
13 lines
356 B
JavaScript
import { FlatCompat } from '@eslint/eslintrc';
|
|
import { dirname } from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
|
|
const compat = new FlatCompat({
|
|
baseDirectory: __dirname,
|
|
});
|
|
|
|
export default [
|
|
...compat.extends('next/core-web-vitals', 'next/typescript'),
|
|
];
|