module.exports = { root: true, parser: '@typescript-eslint/parser', parserOptions: { project: './tsconfig.json', tsconfigRootDir: __dirname, ecmaFeatures: { jsx: true, }, }, plugins: ['@typescript-eslint', 'react', 'react-native'], extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react/recommended', 'plugin:react-native/all', '@react-native', ], rules: { 'no-console': 'off', 'react-native/no-inline-styles': 0, 'react-native/split-platform-components': 2, 'react-native/no-raw-text': 0, 'react-native/no-single-element-style-arrays': 2, 'react-native/no-unused-styles': 'off', 'react/jsx-key': 'off', 'react/no-children-prop': 'off', '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-raw-text': 'off', '@typescript-eslint/no-empty-interface': 2, '@typescript-eslint/no-empty-function': 1, 'react-hooks/exhaustive-deps': 0, 'prettier/prettier': 1, '@typescript-eslint/no-explicit-any': 0, '@typescript-eslint/ban-types': [ 'off', { extendDefaults: true, types: { '{}': false, }, }, ], semi: 0, }, overrides: [ { files: ['*.ts', '*.mts', '*.cts', '*.tsx'], rules: { 'no-undef': 'off', '@typescript-eslint/no-unused-vars': 'off', 'react-native/no-color-literals': 'off', 'react-native/sort-styles': 'off', 'no-mixed-spaces-and-tabs': 'off', '@typescript-eslint/no-explicit-any': 0, 'react/no-unstable-nested-components': 0, 'react-hooks/rules-of-hooks': 0, 'no-shadow': 'off', '@typescript-eslint/no-shadow': 0, }, }, ], settings: { react: { version: 'detect', }, }, ignorePatterns: ['.eslintrc.js'], }