Set arrowParens option explicitly.

Differential Revision: D20640296

fbshipit-source-id: 0ecaa78f964fce8297342db99be29b1a7d1cfab6
This commit is contained in:
Michael Bolin
2020-03-24 22:47:09 -07:00
committed by Facebook GitHub Bot
parent 37f0260116
commit 49fc4b46b6

View File

@@ -13,6 +13,10 @@ const fbjs = require('eslint-config-fbjs');
const pattern = /^\*\r?\n[\S\s]*Facebook[\S\s]* \* @format\r?\n/; const pattern = /^\*\r?\n[\S\s]*Facebook[\S\s]* \* @format\r?\n/;
const prettierConfig = { const prettierConfig = {
// arrowParens=always is the default for Prettier 2.0, but other configs
// at Facebook appear to be leaking into this file, which is still on
// Prettier 1.x at the moment, so it is best to be explicit.
arrowParens: 'always',
requirePragma: true, requirePragma: true,
singleQuote: true, singleQuote: true,
trailingComma: 'all', trailingComma: 'all',