Skip to content

Instantly share code, notes, and snippets.

@aluiziodeveloper
Created December 19, 2025 14:47
Show Gist options
  • Select an option

  • Save aluiziodeveloper/483ceb55ecf9f1f0b6a4e641c7a0d001 to your computer and use it in GitHub Desktop.

Select an option

Save aluiziodeveloper/483ceb55ecf9f1f0b6a4e641c7a0d001 to your computer and use it in GitHub Desktop.
eslint.config.mjs
import eslint from '@eslint/js';
import { defineConfig } from 'eslint/config';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default defineConfig(
{
ignores: ['eslint.config.mjs', 'node_modules/**', 'dist/**', 'build/**', 'coverage/**', '*.js', '*.d.ts'],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
eslintPluginPrettierRecommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
ecmaVersion: 5,
sourceType: 'module',
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'warn',
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-namespace': 'off'
},
},
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment