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
This commit is contained in:
Pascal Hartig
2019-01-28 07:04:41 -08:00
committed by Facebook Github Bot
parent 2a0f0b3dde
commit aa365b990b
2 changed files with 11 additions and 1 deletions

View File

@@ -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',
},
],
},
};

View File