import js from '@eslint/js' import reactHooks from 'eslint-plugin-react-hooks' import globals from 'globals' import tseslint from 'typescript-eslint' export default tseslint.config( { ignores: ['build-server/**', 'dist/**', 'node_modules/**'] }, js.configs.recommended, ...tseslint.configs.recommended, { files: ['web/src/**/*.{ts,tsx}'], languageOptions: { globals: { ...globals.browser, ...globals.vitest } }, plugins: { 'react-hooks': reactHooks }, rules: { ...reactHooks.configs.recommended.rules } }, { files: ['server/src/**/*.ts'], languageOptions: { globals: globals.node } } )