const js = require('@eslint/js'); const globals = require('globals'); module.exports = [ { ignores: ['node_modules/**'], }, js.configs.recommended, { files: ['**/*.js'], languageOptions: { ecmaVersion: 'latest', sourceType: 'commonjs', globals: { ...globals.node, }, }, rules: { 'no-console': 'off', 'no-empty': ['error', { allowEmptyCatch: true }], 'no-unused-vars': ['warn', { argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }], }, }, ];