import js from '@eslint/js'; import globals from 'globals'; import tseslint from 'typescript-eslint'; import prettier from 'eslint-plugin-prettier'; export default tseslint.config( { ignores: ['eslint.config.mjs', 'dist/**', 'node_modules/**'], }, js.configs.recommended, ...tseslint.configs.recommendedTypeChecked, { languageOptions: { globals: { ...globals.node, ...globals.jest, }, sourceType: 'commonjs', parserOptions: { projectService: true, tsconfigRootDir: import.meta.dirname, }, }, plugins: { prettier, }, rules: { 'prettier/prettier': 'error', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/no-unsafe-member-access': 'off', '@typescript-eslint/no-unsafe-call': 'off', }, }, );