leilo2
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { defineConfig, globalIgnores } from 'eslint/config';
|
||||
import nextVitals from 'eslint-config-next/core-web-vitals';
|
||||
|
||||
const eslintConfig = defineConfig([
|
||||
...nextVitals,
|
||||
// Override default ignores of eslint-config-next.
|
||||
globalIgnores([
|
||||
// Default ignores of eslint-config-next:
|
||||
'.next/**',
|
||||
'out/**',
|
||||
'build/**',
|
||||
'next-env.d.ts',
|
||||
]),
|
||||
{
|
||||
settings: {
|
||||
// Fix for ESLint 10+: eslint-plugin-react uses context.getFilename() (legacy API)
|
||||
// which was removed in ESLint 10 flat config. Declaring the version explicitly
|
||||
// prevents the plugin from trying to auto-detect it and failing.
|
||||
react: { version: '19' },
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
export default eslintConfig;
|
||||
Reference in New Issue
Block a user