32 lines
770 B
JavaScript
32 lines
770 B
JavaScript
import { defineConfig, globalIgnores } from 'eslint/config'
|
|||
|
|
import nextVitals from 'eslint-config-next/core-web-vitals'
|
||
|
|
import nextTs from 'eslint-config-next/typescript'
|
||
|
|
import prettier from 'eslint-config-prettier/flat'
|
||
|
|
|
||
|
|
export default defineConfig([
|
||
|
|
...nextVitals,
|
||
|
|
...nextTs,
|
||
|
|
prettier,
|
||
|
|
{
|
||
|
|
rules: {
|
||
|
|
'@typescript-eslint/no-unused-vars': [
|
||
|
|
'warn',
|
||
|
|
{
|
||
|
|
argsIgnorePattern: '^_',
|
||
|
|
varsIgnorePattern: '^_',
|
||
|
|
caughtErrorsIgnorePattern: '^_',
|
||
|
|
destructuredArrayIgnorePattern: '^_',
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
globalIgnores([
|
||
|
|
'.next/**',
|
||
|
|
'design/**',
|
||
|
|
'media/**',
|
||
|
|
'next-env.d.ts',
|
||
|
|
'src/payload-types.ts',
|
||
|
|
'src/migrations/**',
|
||
|
|
'src/app/(payload)/admin/importMap.js',
|
||
|
|
]),
|
||
|
|
])
|