Fix Flipper lints #10
Summary: Grey -> gray. "Cancelled" seems quite common in APIs though, so I disabled that. A few promise cleanups Reviewed By: aigoncharov Differential Revision: D31323610 fbshipit-source-id: c8863d995936f451c24eb408fe5c26677187f089
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fe3eda024b
commit
4aa7439fbf
@@ -389,6 +389,7 @@ function createBasePluginResult(
|
||||
deactivate: () => pluginInstance.deactivate(),
|
||||
exportStateAsync: () =>
|
||||
pluginInstance.exportState(createStubIdler(), () => {}),
|
||||
// eslint-disable-next-line node/no-sync
|
||||
exportState: () => pluginInstance.exportStateSync(),
|
||||
triggerDeepLink: async (deepLink: unknown) => {
|
||||
pluginInstance.triggerDeepLink(deepLink);
|
||||
|
||||
@@ -172,6 +172,7 @@ export function wrapInteractionHandler<T extends Function>(
|
||||
const initialEnd = Date.now();
|
||||
if (typeof res?.then === 'function' && typeof res?.catch === 'function') {
|
||||
// async / promise
|
||||
// eslint-disable-next-line promise/catch-or-return
|
||||
res.then(
|
||||
() => r(initialEnd),
|
||||
(error: any) => r(initialEnd, error),
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
/* eslint-disable promise/catch-or-return */
|
||||
|
||||
import {render, fireEvent} from '@testing-library/react';
|
||||
import {TestUtils} from '../../';
|
||||
import {sleep} from '../../utils/sleep';
|
||||
|
||||
@@ -27,7 +27,7 @@ export const presetColors = Object.values({
|
||||
blue: '#4267b2', // Blue - Active-state nav glyphs, nav bars, links, buttons
|
||||
green: '#42b72a', // Green - Confirmation, success, commerce and status
|
||||
red: '#FC3A4B', // Red - Badges, error states
|
||||
blueGrey: '#5f6673', // Blue Grey
|
||||
blueGray: '#5f6673', // Blue Grey
|
||||
slate: '#b9cad2', // Slate
|
||||
aluminum: '#a3cedf', // Aluminum
|
||||
seaFoam: '#54c7ec', // Sea Foam
|
||||
|
||||
Reference in New Issue
Block a user