diff --git a/desktop/app/src/chrome/settings/KeyboardShortcutInput.tsx b/desktop/app/src/chrome/settings/KeyboardShortcutInput.tsx index 8b22e63a3..b19b5cb4c 100644 --- a/desktop/app/src/chrome/settings/KeyboardShortcutInput.tsx +++ b/desktop/app/src/chrome/settings/KeyboardShortcutInput.tsx @@ -114,8 +114,9 @@ const KeyboardShortcutInput = (props: { ); const [pressedKeys, setPressedKeys] = useState(initialPressedKeys); - const [isShortcutValid, setIsShortcutValid] = - useState(undefined); + const [isShortcutValid, setIsShortcutValid] = useState( + undefined, + ); useEffect(() => { if (!isShortcutValid) { diff --git a/desktop/app/src/ui/components/ContextMenuProvider.tsx b/desktop/app/src/ui/components/ContextMenuProvider.tsx index 6f2c886e1..0c4e8bbdc 100644 --- a/desktop/app/src/ui/components/ContextMenuProvider.tsx +++ b/desktop/app/src/ui/components/ContextMenuProvider.tsx @@ -22,8 +22,9 @@ const Container = styled.div({ }); Container.displayName = 'ContextMenuProvider:Container'; -export const ContextMenuContext = - createContext(undefined); +export const ContextMenuContext = createContext( + undefined, +); /** * 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. diff --git a/desktop/app/src/ui/components/PopoverProvider.tsx b/desktop/app/src/ui/components/PopoverProvider.tsx index b6d656ce4..73e74f0cd 100644 --- a/desktop/app/src/ui/components/PopoverProvider.tsx +++ b/desktop/app/src/ui/components/PopoverProvider.tsx @@ -63,11 +63,10 @@ const PopoverElement = (props: { children: ReactNode; }) => { const ref = useRef(null); - const [dimensions, setDimensions] = - useState<{ - width: number; - height: number; - } | null>(null); + const [dimensions, setDimensions] = useState<{ + width: number; + height: number; + } | null>(null); useEffect(() => { if (!ref.current) { return; diff --git a/desktop/babel-transformer/package.json b/desktop/babel-transformer/package.json index c43107fbf..678c332f6 100644 --- a/desktop/babel-transformer/package.json +++ b/desktop/babel-transformer/package.json @@ -32,7 +32,7 @@ "devDependencies": { "@types/jest": "26.0.23", "jest": "^26.6.3", - "prettier": "^2.3.0", + "prettier": "^2.3.1", "rimraf": "^3.0.2", "ts-jest": "^26.5.6", "ts-node": "^9.1.1", diff --git a/desktop/doctor/package.json b/desktop/doctor/package.json index 23c7d6998..ced1a7e2a 100644 --- a/desktop/doctor/package.json +++ b/desktop/doctor/package.json @@ -17,7 +17,7 @@ "eslint-plugin-prettier": "^3.4.0", "eslint-plugin-react": "^7.24.0", "jest": "^26.6.3", - "prettier": "^2.3.0", + "prettier": "^2.3.1", "ts-jest": "^26.5.6", "tslint-config-prettier": "^1.18.0", "typescript": "^4.3.2" diff --git a/desktop/eslint-plugin-flipper/package.json b/desktop/eslint-plugin-flipper/package.json index 8bee6f0e2..fdedb758f 100644 --- a/desktop/eslint-plugin-flipper/package.json +++ b/desktop/eslint-plugin-flipper/package.json @@ -18,7 +18,7 @@ "@typescript-eslint/parser": "^4.26.0", "flipper-test-utils": "0.0.0", "jest": "^26.6.3", - "prettier": "^2.3.0", + "prettier": "^2.3.1", "rimraf": "^3.0.2", "ts-jest": "^26.5.6", "ts-node": "^9.1.1", diff --git a/desktop/flipper-plugin/src/plugin/PluginContext.tsx b/desktop/flipper-plugin/src/plugin/PluginContext.tsx index 3cb5ee2f5..93b2aa6ba 100644 --- a/desktop/flipper-plugin/src/plugin/PluginContext.tsx +++ b/desktop/flipper-plugin/src/plugin/PluginContext.tsx @@ -11,10 +11,9 @@ import {createContext, useContext} from 'react'; import {SandyPluginInstance, PluginFactory} from './Plugin'; import {SandyDevicePluginInstance, DevicePluginFactory} from './DevicePlugin'; -export const SandyPluginContext = - createContext( - undefined, - ); +export const SandyPluginContext = createContext< + SandyPluginInstance | SandyDevicePluginInstance | undefined +>(undefined); export function usePluginInstance(): | SandyPluginInstance diff --git a/desktop/package.json b/desktop/package.json index 75216d0bf..c28b23038 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -172,7 +172,7 @@ "p-filter": "^2.1.0", "p-map": "^4.0.0", "patch-package": "^6.4.7", - "prettier": "^2.3.0", + "prettier": "^2.3.1", "pretty-format": "^26.1.0", "promisify-child-process": "^4.1.0", "react-async": "^10.0.0", diff --git a/desktop/pkg-lib/package.json b/desktop/pkg-lib/package.json index 314a06f65..1a5dabc00 100644 --- a/desktop/pkg-lib/package.json +++ b/desktop/pkg-lib/package.json @@ -25,7 +25,7 @@ "globby": "^11.0.3", "jest": "^26.6.3", "mock-fs": "^4.14.0", - "prettier": "^2.3.0", + "prettier": "^2.3.1", "rimraf": "^3.0.2", "ts-jest": "^26.5.6", "ts-node": "^9.1.1", diff --git a/desktop/pkg/package.json b/desktop/pkg/package.json index c2145cf52..ded897a7d 100644 --- a/desktop/pkg/package.json +++ b/desktop/pkg/package.json @@ -36,7 +36,7 @@ "flipper-test-utils": "0.0.0", "globby": "^11.0.3", "jest": "^26.6.3", - "prettier": "^2.3.0", + "prettier": "^2.3.1", "rimraf": "^3.0.2", "ts-jest": "^26.5.6", "ts-node": "^9.1.1", diff --git a/desktop/plugins/public/logs/index.tsx b/desktop/plugins/public/logs/index.tsx index 8ada3aa2a..6c0a21f10 100644 --- a/desktop/plugins/public/logs/index.tsx +++ b/desktop/plugins/public/logs/index.tsx @@ -116,8 +116,9 @@ export function devicePlugin(client: DevicePluginClient) { persist: 'logs', }); const isPaused = createState(true); - const tableManagerRef = - createRef>(); + const tableManagerRef = createRef< + undefined | DataTableManager + >(); client.onDeepLink((payload: unknown) => { if (typeof payload === 'string') { diff --git a/desktop/yarn.lock b/desktop/yarn.lock index 4ccf083e0..648a8248c 100644 --- a/desktop/yarn.lock +++ b/desktop/yarn.lock @@ -10736,10 +10736,10 @@ prettier@^1.14.2: resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== -prettier@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18" - integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w== +prettier@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.1.tgz#76903c3f8c4449bc9ac597acefa24dc5ad4cbea6" + integrity sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA== pretty-format@^25.5.0: version "25.5.0"