Nav apraksta

.eslintrc.js 1.0KB

123456789101112131415161718192021222324252627282930313233
  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. '@typescript-eslint/ban-ts-ignore': 'off',
  25. 'react-native/no-inline-styles': 'off',
  26. },
  27. ),
  28. },
  29. ],
  30. };