18 lines
520 B
JavaScript
18 lines
520 B
JavaScript
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
import nextVitals from 'eslint-config-next/core-web-vitals';
|
|
import prettier from 'eslint-config-prettier/flat';
|
|
import prettierPlugin from 'eslint-plugin-prettier';
|
|
|
|
export default defineConfig([
|
|
...nextVitals,
|
|
prettier,
|
|
{
|
|
plugins: { prettier: prettierPlugin },
|
|
rules: {
|
|
'prettier/prettier': 'warn',
|
|
'react/react-in-jsx-scope': 'off',
|
|
},
|
|
},
|
|
globalIgnores(['.next/**', '.yarn/**', 'out/**', 'dist/**', 'next-env.d.ts']),
|
|
]);
|