Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the Prettier config so it is not forced on users of @react-native…
…-community/eslint-config (facebook#24635) Summary: This fixes an issue where the Prettier config was set to the `fb` (Facebook) values for all users of the `react-native-community/eslint-config` package. This was due to [this line](https://github.com/facebook/react-native/blob/8f186b84aeeb2613bf6ae08f20a8547d40179007/packages/eslint-config-react-native-community/index.js#L219) in the config file. It was causing issues like these: * Errors when using newer versions of `eslint-plugin-prettier` (you had to use a version that was >1 year old): facebook#24564 * Errors due to the Prettier parser being forced to be `flow` when using Typescript: typescript-eslint/typescript-eslint#481 This PR: * Changes that line to remove the explicit `fb` config so users can set their own. * Moves the React Native Prettier config to `.prettierrc` so ESLint, Prettier, and code editors can all read from the same place. * Upgrades both `prettier` and the `eslint-plugin-prettier` to the latest versions. [General] [Fixed] - Stopped the Prettier config being set for all users of react-native-community/eslint-config Pull Request resolved: facebook#24635 Differential Revision: D15122200 Pulled By: cpojer fbshipit-source-id: 56bae8a7f2d8e133b1d808091a6b73302b94d2ed
- Loading branch information