patchwise-agent-studio / web /eslint.config.js
EnergyVenom's picture
Patchwise Agent Studio: Oracle AI Agent Studio cycles
af1bee9 verified
Raw History Blame Contribute Delete
1.24 kB
import js from '@eslint/js';
import globals from 'globals';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{ ignores: ['dist', 'node_modules', 'src/api/schema.d.ts', 'test-results', 'playwright-report'] },
{
extends: [js.configs.recommended, ...tseslint.configs.strict],
files: ['**/*.{ts,tsx}'],
languageOptions: { ecmaVersion: 2022, globals: { ...globals.browser, ...globals.node } },
plugins: { 'react-hooks': reactHooks, 'react-refresh': reactRefresh },
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
},
},
{
// beUI components copied from its registry, kept as published so they can be updated from beui.dev; only the
// two style rules their code differs on are relaxed (empty prop interfaces, a guarded measure-every-render effect)
files: ['src/components/ui/**/*.{ts,tsx}'],
rules: {
'@typescript-eslint/no-empty-object-type': 'off',
'react-hooks/exhaustive-deps': 'off',
},
},
);