.eslintrc.js 550 B

12345678910111213141516171819
  1. module.exports = {
  2. root: true,
  3. extends: ['@react-native-community', 'plugin:prettier/recommended'],
  4. parser: '@typescript-eslint/parser',
  5. plugins: ['@typescript-eslint', 'prettier'],
  6. overrides: [
  7. {
  8. files: ['*.ts', '*.tsx'],
  9. rules: {
  10. '@typescript-eslint/no-shadow': ['warn'],
  11. 'no-shadow': 'off',
  12. 'no-undef': 'off',
  13. 'prettier/prettier': 'error',
  14. 'react-hooks/exhaustive-deps': 'warn',
  15. },
  16. },
  17. ],
  18. };