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:
committed by
Facebook Github Bot
parent
2a0f0b3dde
commit
aa365b990b
12
.eslintrc.js
12
.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',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user