mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
dc2037c0f1
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37915 Enable the `prettier-plugin-hermes-parser` in xplat. This plugin enables the use of `hermes-parser` which is significantly faster than the current flow parser prettier bundles (improves formatting time by ~50%) and also brings support for the latest Prettier 3.0.0 printing logic for JS. This upgrade is required in order to enable upcoming Flow features that add new syntax. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D46748891 fbshipit-source-id: 3775ef9afa7c04e565fa4fcf8ca5b410f49d35a1
20 lines
307 B
Plaintext
20 lines
307 B
Plaintext
{
|
|
"arrowParens": "avoid",
|
|
"bracketSameLine": true,
|
|
"bracketSpacing": false,
|
|
"requirePragma": true,
|
|
"singleQuote": true,
|
|
"trailingComma": "all",
|
|
"endOfLine": "lf",
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"*.js"
|
|
],
|
|
"options": {
|
|
"parser": "hermes"
|
|
}
|
|
}
|
|
]
|
|
}
|