From 49fc4b46b6620701849d9a83e9bf099f5c5cf0fc Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Tue, 24 Mar 2020 22:47:09 -0700 Subject: [PATCH] Set arrowParens option explicitly. Differential Revision: D20640296 fbshipit-source-id: 0ecaa78f964fce8297342db99be29b1a7d1cfab6 --- desktop/.eslintrc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/.eslintrc.js b/desktop/.eslintrc.js index 8e09cbdfb..6d0f5ecca 100644 --- a/desktop/.eslintrc.js +++ b/desktop/.eslintrc.js @@ -13,6 +13,10 @@ const fbjs = require('eslint-config-fbjs'); const pattern = /^\*\r?\n[\S\s]*Facebook[\S\s]* \* @format\r?\n/; 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, singleQuote: true, trailingComma: 'all',