20 lines
456 B
JavaScript
20 lines
456 B
JavaScript
import { dirname } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { FlatCompat } from '@eslint/eslintrc';
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
|
|
const compat = new FlatCompat({
|
|
baseDirectory: __dirname,
|
|
});
|
|
|
|
const config = [
|
|
...compat.extends('next/core-web-vitals'),
|
|
{
|
|
ignores: ['.next/**', 'node_modules/**', '.trash/**', '.openclaw/**'],
|
|
},
|
|
];
|
|
|
|
export default config;
|