Created
December 19, 2025 14:47
-
-
Save aluiziodeveloper/483ceb55ecf9f1f0b6a4e641c7a0d001 to your computer and use it in GitHub Desktop.
eslint.config.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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