19 lines
585 B
JavaScript
19 lines
585 B
JavaScript
import nextVitals from 'eslint-config-next/core-web-vitals'
|
|
import nextTypescript from 'eslint-config-next/typescript'
|
|
|
|
const config = [
|
|
{ ignores: ['.next/**', 'node_modules/**', 'drizzle/**'] },
|
|
...nextVitals,
|
|
...nextTypescript,
|
|
{
|
|
rules: {
|
|
// `useActionState`'s action takes (state, formData); an action that only
|
|
// needs the latter still has to name the former. `_`-prefixed is the
|
|
// call site's way of saying "unused on purpose".
|
|
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
|
},
|
|
},
|
|
]
|
|
|
|
export default config
|