// @ts-check import eslint from '@eslint/js' import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' import tseslint from 'typescript-eslint' export default tseslint.config( { ignores: ['eslint.config.mjs'] }, eslint.configs.recommended, eslintPluginPrettierRecommended, tseslint.configs.recommended, tseslint.configs.stylistic, //tseslint.configs.recommendedTypeChecked, { languageOptions: { ecmaVersion: 5, sourceType: 'module', parserOptions: { projectService: true, tsconfigRootDir: import.meta.dirname } }, rules: { 'no-undef': 'off', 'prefer-const': ['error', { destructuring: 'all' }], '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-inferrable-types': ['error', { ignoreParameters: true, ignoreProperties: true }], '@typescript-eslint/no-unused-vars': [ 'error', { args: 'all', argsIgnorePattern: '^_', caughtErrors: 'all', caughtErrorsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_', varsIgnorePattern: '^_', ignoreRestSiblings: true } ] } } )