.eslintrc.js 870B

123456789101112131415161718192021222324
  1. const typescriptEslintRecommended = require('@typescript-eslint/eslint-plugin/dist/configs/recommended.json');
  2. const typescriptEslintPrettier = require('eslint-config-prettier/@typescript-eslint');
  3. module.exports = {
  4. extends: ['@react-native-community'],
  5. overrides: [
  6. {
  7. files: ['*.ts', '*.tsx'],
  8. // Apply the recommended Typescript defaults and the prettier overrides to all Typescript files
  9. rules: Object.assign(
  10. typescriptEslintRecommended.rules,
  11. typescriptEslintPrettier.rules,
  12. {
  13. '@typescript-eslint/explicit-member-accessibility': 'off',
  14. '@typescript-eslint/explicit-function-return-type': 'off',
  15. '@typescript-eslint/no-use-before-define': 'off',
  16. '@typescript-eslint/ban-ts-ignore': 'off',
  17. 'react-native/no-inline-styles': 'off',
  18. },
  19. ),
  20. },
  21. ],
  22. };