import { base } from '../../eslint.config.mjs'; import reactHooks from 'eslint-plugin-react-hooks'; import globals from 'globals'; // Mobile (React Native + Expo). Same strict base as the rest of the repo, plus // react-hooks rules and native globals. Route files live in app/ (thin), logic // in src/ following FSD; the type-safety rules (no any/assertions/!) still apply. export default [ { ignores: [ '.expo/**', 'android/**', 'ios/**', 'expo-env.d.ts', 'metro.config.js', 'babel.config.js', ], }, ...base, { files: ['app/**/*.{ts,tsx}', 'src/**/*.{ts,tsx}'], languageOptions: { globals: { ...globals.browser }, }, plugins: { 'react-hooks': reactHooks, }, rules: { 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', }, }, ];