diff --git a/packages/eslint-config-react-native-community/index.js b/packages/eslint-config-react-native-community/index.js index c7fd706c8b2bdf..00b9bc5512588b 100644 --- a/packages/eslint-config-react-native-community/index.js +++ b/packages/eslint-config-react-native-community/index.js @@ -14,6 +14,9 @@ module.exports = { parserOptions: { sourceType: 'module', + ecmaFeatures: { + jsx: true, + }, }, extends: ['plugin:prettier/recommended'], @@ -46,6 +49,9 @@ module.exports = { 'ft-flow/use-flow-type': 1, }, }, + { + files: ['*.jsx'], + }, { files: ['*.ts', '*.tsx'], parser: '@typescript-eslint/parser',