Upgrade prettier
Summary: ohsopretty Reviewed By: fabiomassimo Differential Revision: D28930276 fbshipit-source-id: faaca8cc53c2fe42a8e010d5c1b1d79e89190858
This commit is contained in:
committed by
Facebook GitHub Bot
parent
25b7f88843
commit
edbb41b49b
@@ -114,8 +114,9 @@ const KeyboardShortcutInput = (props: {
|
|||||||
);
|
);
|
||||||
const [pressedKeys, setPressedKeys] =
|
const [pressedKeys, setPressedKeys] =
|
||||||
useState<PressedKeys>(initialPressedKeys);
|
useState<PressedKeys>(initialPressedKeys);
|
||||||
const [isShortcutValid, setIsShortcutValid] =
|
const [isShortcutValid, setIsShortcutValid] = useState<boolean | undefined>(
|
||||||
useState<boolean | undefined>(undefined);
|
undefined,
|
||||||
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isShortcutValid) {
|
if (!isShortcutValid) {
|
||||||
|
|||||||
@@ -22,8 +22,9 @@ const Container = styled.div({
|
|||||||
});
|
});
|
||||||
Container.displayName = 'ContextMenuProvider:Container';
|
Container.displayName = 'ContextMenuProvider:Container';
|
||||||
|
|
||||||
export const ContextMenuContext =
|
export const ContextMenuContext = createContext<ContextMenuManager | undefined>(
|
||||||
createContext<ContextMenuManager | undefined>(undefined);
|
undefined,
|
||||||
|
);
|
||||||
/**
|
/**
|
||||||
* Flipper's root is already wrapped with this component, so plugins should not
|
* Flipper's root is already wrapped with this component, so plugins should not
|
||||||
* need to use this. ContextMenu is what you probably want to use.
|
* need to use this. ContextMenu is what you probably want to use.
|
||||||
|
|||||||
@@ -63,8 +63,7 @@ const PopoverElement = (props: {
|
|||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
}) => {
|
}) => {
|
||||||
const ref = useRef<HTMLDivElement | null>(null);
|
const ref = useRef<HTMLDivElement | null>(null);
|
||||||
const [dimensions, setDimensions] =
|
const [dimensions, setDimensions] = useState<{
|
||||||
useState<{
|
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
} | null>(null);
|
} | null>(null);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "26.0.23",
|
"@types/jest": "26.0.23",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"prettier": "^2.3.0",
|
"prettier": "^2.3.1",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"ts-jest": "^26.5.6",
|
"ts-jest": "^26.5.6",
|
||||||
"ts-node": "^9.1.1",
|
"ts-node": "^9.1.1",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"eslint-plugin-prettier": "^3.4.0",
|
"eslint-plugin-prettier": "^3.4.0",
|
||||||
"eslint-plugin-react": "^7.24.0",
|
"eslint-plugin-react": "^7.24.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"prettier": "^2.3.0",
|
"prettier": "^2.3.1",
|
||||||
"ts-jest": "^26.5.6",
|
"ts-jest": "^26.5.6",
|
||||||
"tslint-config-prettier": "^1.18.0",
|
"tslint-config-prettier": "^1.18.0",
|
||||||
"typescript": "^4.3.2"
|
"typescript": "^4.3.2"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@typescript-eslint/parser": "^4.26.0",
|
"@typescript-eslint/parser": "^4.26.0",
|
||||||
"flipper-test-utils": "0.0.0",
|
"flipper-test-utils": "0.0.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"prettier": "^2.3.0",
|
"prettier": "^2.3.1",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"ts-jest": "^26.5.6",
|
"ts-jest": "^26.5.6",
|
||||||
"ts-node": "^9.1.1",
|
"ts-node": "^9.1.1",
|
||||||
|
|||||||
@@ -11,10 +11,9 @@ import {createContext, useContext} from 'react';
|
|||||||
import {SandyPluginInstance, PluginFactory} from './Plugin';
|
import {SandyPluginInstance, PluginFactory} from './Plugin';
|
||||||
import {SandyDevicePluginInstance, DevicePluginFactory} from './DevicePlugin';
|
import {SandyDevicePluginInstance, DevicePluginFactory} from './DevicePlugin';
|
||||||
|
|
||||||
export const SandyPluginContext =
|
export const SandyPluginContext = createContext<
|
||||||
createContext<SandyPluginInstance | SandyDevicePluginInstance | undefined>(
|
SandyPluginInstance | SandyDevicePluginInstance | undefined
|
||||||
undefined,
|
>(undefined);
|
||||||
);
|
|
||||||
|
|
||||||
export function usePluginInstance():
|
export function usePluginInstance():
|
||||||
| SandyPluginInstance
|
| SandyPluginInstance
|
||||||
|
|||||||
@@ -172,7 +172,7 @@
|
|||||||
"p-filter": "^2.1.0",
|
"p-filter": "^2.1.0",
|
||||||
"p-map": "^4.0.0",
|
"p-map": "^4.0.0",
|
||||||
"patch-package": "^6.4.7",
|
"patch-package": "^6.4.7",
|
||||||
"prettier": "^2.3.0",
|
"prettier": "^2.3.1",
|
||||||
"pretty-format": "^26.1.0",
|
"pretty-format": "^26.1.0",
|
||||||
"promisify-child-process": "^4.1.0",
|
"promisify-child-process": "^4.1.0",
|
||||||
"react-async": "^10.0.0",
|
"react-async": "^10.0.0",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
"globby": "^11.0.3",
|
"globby": "^11.0.3",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"mock-fs": "^4.14.0",
|
"mock-fs": "^4.14.0",
|
||||||
"prettier": "^2.3.0",
|
"prettier": "^2.3.1",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"ts-jest": "^26.5.6",
|
"ts-jest": "^26.5.6",
|
||||||
"ts-node": "^9.1.1",
|
"ts-node": "^9.1.1",
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
"flipper-test-utils": "0.0.0",
|
"flipper-test-utils": "0.0.0",
|
||||||
"globby": "^11.0.3",
|
"globby": "^11.0.3",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"prettier": "^2.3.0",
|
"prettier": "^2.3.1",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"ts-jest": "^26.5.6",
|
"ts-jest": "^26.5.6",
|
||||||
"ts-node": "^9.1.1",
|
"ts-node": "^9.1.1",
|
||||||
|
|||||||
@@ -116,8 +116,9 @@ export function devicePlugin(client: DevicePluginClient) {
|
|||||||
persist: 'logs',
|
persist: 'logs',
|
||||||
});
|
});
|
||||||
const isPaused = createState(true);
|
const isPaused = createState(true);
|
||||||
const tableManagerRef =
|
const tableManagerRef = createRef<
|
||||||
createRef<undefined | DataTableManager<ExtendedLogEntry>>();
|
undefined | DataTableManager<ExtendedLogEntry>
|
||||||
|
>();
|
||||||
|
|
||||||
client.onDeepLink((payload: unknown) => {
|
client.onDeepLink((payload: unknown) => {
|
||||||
if (typeof payload === 'string') {
|
if (typeof payload === 'string') {
|
||||||
|
|||||||
@@ -10736,10 +10736,10 @@ prettier@^1.14.2:
|
|||||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
|
||||||
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
|
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
|
||||||
|
|
||||||
prettier@^2.3.0:
|
prettier@^2.3.1:
|
||||||
version "2.3.0"
|
version "2.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.1.tgz#76903c3f8c4449bc9ac597acefa24dc5ad4cbea6"
|
||||||
integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==
|
integrity sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA==
|
||||||
|
|
||||||
pretty-format@^25.5.0:
|
pretty-format@^25.5.0:
|
||||||
version "25.5.0"
|
version "25.5.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user