Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 635ac1b

Browse files
gkzfacebook-github-bot
authored andcommittedSep 15, 2020
Update various Xplat Prettier configs to specify arrowParens: avoid
Summary: Since Prettier 2.0, the default for the `arrowParens` option has changed from `avoid` to `always`. In preparation for upgrading Prettier in Xplat to 2.1, add `arrowParens: 'avoid'` explicitly to configurations that were missing it so that we do not have a change of behaviour when upgrading. Changelog: [Internal] Reviewed By: bolinfest Differential Revision: D23666397 fbshipit-source-id: 665f20d1419d0d664a6ef5cddc46f441b20eeb51
1 parent 845e9ea commit 635ac1b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎.prettierrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"singleQuote": true,
44
"trailingComma": "all",
55
"bracketSpacing": false,
6-
"jsxBracketSameLine": true
6+
"jsxBracketSameLine": true,
7+
"arrowParens": "avoid"
78
}

‎template/_prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ module.exports = {
33
jsxBracketSameLine: true,
44
singleQuote: true,
55
trailingComma: 'all',
6+
arrowParens: 'avoid',
67
};

0 commit comments

Comments
 (0)