Edit: /opt/mawid/eslint.config.mjs (647B)
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettier from 'eslint-config-prettier';
export default tseslint.config(
{
ignores: ['**/node_modules/', '**/dist/', '**/.next/', '**/coverage/', '**/next-env.d.ts'],
},
js.configs.recommended,
...tseslint.configs.recommended,
prettier,
{
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', ignoreRestSiblings: true },
],
},
},
{
files: ['scripts/**/*.mjs'],
languageOptions: {
globals: { console: 'readonly', process: 'readonly', fetch: 'readonly' },
},
},
);