23 lines
558 B
JavaScript
23 lines
558 B
JavaScript
import js from '@eslint/js';
|
|
import nextPlugin from '@next/eslint-plugin-next';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default [
|
|
{
|
|
ignores: ['.next/**', 'out/**', 'build/**', 'next-env.d.ts'],
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}'],
|
|
plugins: {
|
|
'@next/next': nextPlugin,
|
|
},
|
|
rules: {
|
|
...nextPlugin.configs.recommended.rules,
|
|
...nextPlugin.configs['core-web-vitals'].rules,
|
|
'@next/next/no-img-element': 'off',
|
|
},
|
|
},
|
|
];
|