Files
convex-monorepo-payload/tools/eslint/react.ts
T
Gabriel Brown a12bf6071b
Build and Push Next App / quality (push) Successful in 1m8s
Build and Push Next App / build-next (push) Successful in 2m59s
Move to infisical. Create local dev environment. Add ci gates. Modernize repo
2026-06-21 14:04:02 -05:00

23 lines
648 B
TypeScript

import type { Linter } from 'eslint';
import reactPlugin from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import { defineConfig } from 'eslint/config';
const reactFlat = reactPlugin.configs.flat as Record<string, Linter.Config>;
export const reactConfig = defineConfig(
{
files: ['**/*.ts', '**/*.tsx'],
...reactFlat.recommended,
...reactFlat['jsx-runtime'],
languageOptions: {
...reactFlat.recommended?.languageOptions,
...reactFlat['jsx-runtime']?.languageOptions,
globals: {
React: 'writable',
},
},
},
reactHooks.configs.flat['recommended-latest']!,
);