From aa365b990b8a834522216dafed23db1c62d93ad1 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Mon, 28 Jan 2019 07:04:41 -0800 Subject: [PATCH] Restore "fb" preset (#363) Summary: I must have run this locally on an outdated version of eslint or the plugin, because I did not see all the formatting errors. This is because `eslint-plugin-prettier` dropped support for the `fb` preset (see https://github.com/prettier/eslint-plugin-prettier/pull/113/files). This restores the equivalent ruleset explicitly. Pull Request resolved: https://github.com/facebook/flipper/pull/363 Reviewed By: danielbuechele Differential Revision: D13839021 Pulled By: passy fbshipit-source-id: 59e27a241e8aada8648b175ab8abbdfbd391556e --- .eslintrc.js | 12 +++++++++++- src/utils/promise.js | 0 2 files changed, 11 insertions(+), 1 deletion(-) delete mode 100644 src/utils/promise.js diff --git a/.eslintrc.js b/.eslintrc.js index af0bcb7ff..674e21af7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -27,6 +27,16 @@ module.exports = { // additional rules for this project 'header/header': [2, 'block', {pattern}], - 'prettier/prettier': [2, {requirePragma: true}], + 'prettier/prettier': [ + 2, + { + requirePragma: true, + singleQuote: true, + trailingComma: 'all', + bracketSpacing: false, + jsxBracketSameLine: true, + parser: 'flow', + }, + ], }, }; diff --git a/src/utils/promise.js b/src/utils/promise.js deleted file mode 100644 index e69de29bb..000000000