Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix @react-native/eslint-config linting of jsx files
Summary: `react-native/eslint-config` enables rules for TypeScript and `.js` files (as Flow), but seems to completely no-op if you have a `.jsx` file. Enabling it in an override leads to syntax errors because the config has not been enlightened on how to parse JSX. This would normally happen if a config extended `plugin:react/recommended`, but we are already cutomizing the React plugin rules. So we instead just directly set `ecmaFeatures: {jsx: true}` as reccomended by https://github.com/jsx-eslint/eslint-plugin-react. Changelog: [General][Breaking] - Fix react-native/eslint-config linting of jsx files Reviewed By: rickhanlonii Differential Revision: D41654962 fbshipit-source-id: 778da0928fadb86caa6a33254379d3d7dd394892
- Loading branch information