Messenger/packages/mobile/eslint.config.mjs
Заид Омар Медхат | Zaid Omar Medhat f653b083aa f
2026-07-13 12:32:00 +05:00

33 lines
862 B
JavaScript

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',
},
},
];