Fixed a bunch of prettier errors after upgrading

Summary: prettier upgrade uncovered more errors

Reviewed By: passy

Differential Revision: D18474908

fbshipit-source-id: b1553000fb3386f2bbd9defdd3332618e4b9c867
This commit is contained in:
Michel Weststrate
2019-11-13 08:34:45 -08:00
committed by Facebook Github Bot
parent 677f7b5b5f
commit f2d12f1025
22 changed files with 167 additions and 169 deletions

View File

@@ -81,18 +81,15 @@ class ExportDataPluginSheet extends Component<Props> {
selectedElements={getActivePersistentPlugins(
pluginStates,
plugins,
).reduce(
(acc, plugin) => {
if (
plugins.selectedPlugins.length <= 0 ||
plugins.selectedPlugins.includes(plugin)
) {
acc.add(plugin);
}
return acc;
},
new Set([]) as Set<string>,
)}
).reduce((acc, plugin) => {
if (
plugins.selectedPlugins.length <= 0 ||
plugins.selectedPlugins.includes(plugin)
) {
acc.add(plugin);
}
return acc;
}, new Set([]) as Set<string>)}
onHide={onHide}
/>
);

View File

@@ -47,7 +47,7 @@ import {BackgroundColorProperty} from 'csstype';
import {StyledOtherComponent} from 'create-emotion-styled';
import SupportRequestFormManager from '../fb-stubs/SupportRequestFormManager';
type FlipperPlugins = (typeof FlipperPlugin)[];
type FlipperPlugins = typeof FlipperPlugin[];
type PluginsByCategory = [string, FlipperPlugins][];
const ListItem = styled('div')(({active}: {active?: boolean}) => ({