import eslint from '@eslint/js'; import turboPlugin from 'eslint-plugin-turbo'; import tseslint from 'typescript-eslint'; /** * A shared ESLint configuration for the repository. * * @type {import("eslint").Linter.Config[]} * */ export const config = tseslint.config( eslint.configs.recommended, tseslint.configs.recommended, [ { plugins: { turbo: turboPlugin, }, rules: { 'turbo/no-undeclared-env-vars': 'warn', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-empty-object-type': 'off', '@typescript-eslint/no-unused-vars': [ 'error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_', }, ], }, }, { ignores: ['dist/**', 'prisma/client/**'], }, ] );