2026-02-20 22:19:38 -08:00
|
|
|
import path from 'node:path';
|
|
|
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
|
import { FlatCompat } from '@eslint/eslintrc';
|
|
|
|
|
|
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
|
|
|
const __dirname = path.dirname(__filename);
|
|
|
|
|
const compat = new FlatCompat({ baseDirectory: __dirname });
|
2026-02-13 12:27:09 -08:00
|
|
|
|
2026-02-13 12:44:14 -08:00
|
|
|
const eslintConfig = [
|
2026-02-20 22:19:38 -08:00
|
|
|
...compat.extends('next/core-web-vitals', 'next/typescript'),
|
2026-02-13 12:27:09 -08:00
|
|
|
{
|
2026-02-20 22:19:38 -08:00
|
|
|
ignores: [
|
|
|
|
|
'nul',
|
|
|
|
|
'.next/**',
|
|
|
|
|
'.agents/**',
|
|
|
|
|
'skills/**',
|
2026-03-01 18:17:58 -08:00
|
|
|
'reference/**',
|
2026-02-20 22:19:38 -08:00
|
|
|
'next-env.d.ts',
|
|
|
|
|
],
|
2026-02-13 12:27:09 -08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}'],
|
|
|
|
|
rules: {
|
|
|
|
|
'react-hooks/set-state-in-effect': 'off',
|
|
|
|
|
'prefer-const': 'off',
|
|
|
|
|
'@typescript-eslint/no-empty-object-type': 'off',
|
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
2026-02-20 22:19:38 -08:00
|
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
2026-02-13 12:27:09 -08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
];
|
2026-03-03 16:43:42 -08:00
|
|
|
|
|
|
|
|
export default eslintConfig;
|