No Description

.eslintrc.js 1021B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. */
  9. const typescriptEslintRecommended = require('@typescript-eslint/eslint-plugin/dist/configs/recommended.json');
  10. const typescriptEslintPrettier = require('eslint-config-prettier/@typescript-eslint');
  11. module.exports = {
  12. extends: ['@react-native-community'],
  13. overrides: [
  14. {
  15. files: ['*.ts', '*.tsx'],
  16. // Apply the recommended Typescript defaults and the prettier overrides to all Typescript files
  17. rules: Object.assign(
  18. typescriptEslintRecommended.rules,
  19. typescriptEslintPrettier.rules,
  20. {
  21. '@typescript-eslint/explicit-member-accessibility': 'off',
  22. '@typescript-eslint/explicit-function-return-type': 'off',
  23. '@typescript-eslint/no-use-before-define': 'off',
  24. 'react-native/no-inline-styles': 'off',
  25. },
  26. ),
  27. },
  28. ],
  29. };