mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
65eea9d1f8
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): https://github.com/facebook/react-native/issues/24564 * Errors due to the Prettier parser being forced to be `flow` when using Typescript: https://github.com/typescript-eslint/typescript-eslint/issues/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: https://github.com/facebook/react-native/pull/24635 Differential Revision: D15122200 Pulled By: cpojer fbshipit-source-id: 56bae8a7f2d8e133b1d808091a6b73302b94d2ed
8 lines
134 B
Plaintext
8 lines
134 B
Plaintext
{
|
|
"requirePragma": true,
|
|
"singleQuote": true,
|
|
"trailingComma": "all",
|
|
"bracketSpacing": false,
|
|
"jsxBracketSameLine": true
|
|
}
|