diff --git a/.eslintrc.js b/.eslintrc.js index cf8285406b..6162de0f50 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -92,7 +92,7 @@ module.exports = { 'no-multiple-empty-lines': [ERROR, { 'max': 1, 'maxEOF': 0 }], 'object-curly-spacing': [ERROR, 'always'], 'quotes': OFF(UNKNOWN), - 'semi': [ERROR, 'always'], + 'semi': SUCCESSOR(TYPESCRIPT_EXTENSION), 'space-before-function-paren': [ERROR, { anonymous: 'never', named: 'never', asyncArrow: 'always' }], 'space-infix-ops': SUCCESSOR(TYPESCRIPT_EXTENSION), 'space-unary-ops': ERROR, @@ -139,12 +139,14 @@ module.exports = { '@typescript-eslint/consistent-type-definitions': [ERROR, 'interface'], '@typescript-eslint/explicit-module-boundary-types': OFF(UNKNOWN), '@typescript-eslint/keyword-spacing': ERROR, + '@typescript-eslint/member-delimiter-style': ERROR, '@typescript-eslint/no-empty-function': OFF(UNKNOWN), '@typescript-eslint/no-namespace': [ERROR, { allowDeclarations: true }], '@typescript-eslint/no-redeclare': ERROR, '@typescript-eslint/no-unused-vars': [ERROR, { ignoreRestSiblings: true }], '@typescript-eslint/no-use-before-define': ERROR, '@typescript-eslint/space-infix-ops': ERROR, + '@typescript-eslint/semi': [ERROR, 'always'], '@typescript-eslint/quotes': [ERROR, 'single', { avoidEscape: true }], 'simple-import-sort/imports': ERROR, diff --git a/packages/insomnia-app/app/__mocks__/node-libcurl.ts b/packages/insomnia-app/app/__mocks__/node-libcurl.ts index 455ba2974b..961361bbd9 100644 --- a/packages/insomnia-app/app/__mocks__/node-libcurl.ts +++ b/packages/insomnia-app/app/__mocks__/node-libcurl.ts @@ -19,7 +19,7 @@ class Curl extends EventEmitter { EFFECTIVE_URL: 'EFFECTIVE_URL', SIZE_DOWNLOAD: 'SIZE_DOWNLOAD', TOTAL_TIME: 'TOTAL_TIME', - } + }; static option = { ACCEPT_ENCODING: 'ACCEPT_ENCODING', @@ -62,7 +62,7 @@ class Curl extends EventEmitter { VERBOSE: 'VERBOSE', WRITEFUNCTION: 'WRITEFUNCTION', XFERINFOFUNCTION: 'XFERINFOFUNCTION', - } + }; static getVersion() { return 'libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0'; diff --git a/packages/insomnia-app/app/common/constants.ts b/packages/insomnia-app/app/common/constants.ts index 16989cc8cd..8fe2805d36 100644 --- a/packages/insomnia-app/app/common/constants.ts +++ b/packages/insomnia-app/app/common/constants.ts @@ -332,7 +332,7 @@ export type DashboardSortOrder = | 'name-desc' | 'created-asc' | 'created-desc' - | 'modified-desc' + | 'modified-desc'; export const DASHBOARD_SORT_ORDERS = [ SORT_MODIFIED_DESC, diff --git a/packages/insomnia-app/app/common/render.ts b/packages/insomnia-app/app/common/render.ts index 3967adee9c..053a6a09e6 100644 --- a/packages/insomnia-app/app/common/render.ts +++ b/packages/insomnia-app/app/common/render.ts @@ -46,7 +46,7 @@ export interface RenderContextAndKeys { keys: { name: string; value: any; - }[] + }[]; } export type HandleGetRenderContext = () => Promise; diff --git a/packages/insomnia-app/app/models/response.ts b/packages/insomnia-app/app/models/response.ts index 586be5a0a3..5aafe66c4c 100644 --- a/packages/insomnia-app/app/models/response.ts +++ b/packages/insomnia-app/app/models/response.ts @@ -220,7 +220,7 @@ export function getBodyStream( } export const getBodyBuffer = ( - response?: { bodyPath?: string, bodyCompression?: Compression }, + response?: { bodyPath?: string; bodyCompression?: Compression }, readFailureValue?: TFail | null, ) => getBodyBufferFromPath( response?.bodyPath || '', diff --git a/packages/insomnia-app/app/network/grpc/method.ts b/packages/insomnia-app/app/network/grpc/method.ts index 9be8bd7ef7..dcfa71a690 100644 --- a/packages/insomnia-app/app/network/grpc/method.ts +++ b/packages/insomnia-app/app/network/grpc/method.ts @@ -2,7 +2,7 @@ import { MethodDefinition } from '@grpc/grpc-js'; import { ValueOf } from 'type-fest'; // TODO(TSCONVERSION) remove this alias and type MethodDefinition correctly -export type GrpcMethodDefinition = MethodDefinition +export type GrpcMethodDefinition = MethodDefinition; export const GrpcMethodTypeEnum = { unary: 'unary', diff --git a/packages/insomnia-app/app/network/multipart.ts b/packages/insomnia-app/app/network/multipart.ts index 1abbe02fd9..dbfddba722 100644 --- a/packages/insomnia-app/app/network/multipart.ts +++ b/packages/insomnia-app/app/network/multipart.ts @@ -8,7 +8,7 @@ import type { RequestBodyParameter } from '../models/request'; export const DEFAULT_BOUNDARY = 'X-INSOMNIA-BOUNDARY'; interface Multipart { - boundary: typeof DEFAULT_BOUNDARY, + boundary: typeof DEFAULT_BOUNDARY; filePath: string; contentLength: number; } diff --git a/packages/insomnia-app/app/plugins/index.ts b/packages/insomnia-app/app/plugins/index.ts index 356b112640..d3d436992c 100644 --- a/packages/insomnia-app/app/plugins/index.ts +++ b/packages/insomnia-app/app/plugins/index.ts @@ -16,15 +16,15 @@ import { showError } from '../ui/components/modals/index'; import type { PluginTheme } from './misc'; export interface Module { - templateTags?: PluginTemplateTag[], - requestHooks?: ((requstContext: any) => void)[], - responseHooks?: ((responseContext: any) => void)[], - themes?: PluginTheme[], - requestGroupActions?: OmitInternal[], - requestActions?: OmitInternal[], - workspaceActions?: OmitInternal[], - documentActions?: OmitInternal[], - configGenerators?: OmitInternal[], + templateTags?: PluginTemplateTag[]; + requestHooks?: ((requstContext: any) => void)[]; + responseHooks?: ((responseContext: any) => void)[]; + themes?: PluginTheme[]; + requestGroupActions?: OmitInternal[]; + requestActions?: OmitInternal[]; + workspaceActions?: OmitInternal[]; + documentActions?: OmitInternal[]; + configGenerators?: OmitInternal[]; } export interface Plugin { diff --git a/packages/insomnia-app/app/plugins/install.ts b/packages/insomnia-app/app/plugins/install.ts index b48e02478e..d7c2145a7e 100644 --- a/packages/insomnia-app/app/plugins/install.ts +++ b/packages/insomnia-app/app/plugins/install.ts @@ -17,7 +17,7 @@ interface InsomniaPlugin { dist: { shasum: string; tarball: string; - } + }; } export default async function(lookupName: string) { diff --git a/packages/insomnia-app/app/sync/git/mem-client.ts b/packages/insomnia-app/app/sync/git/mem-client.ts index 326e05ee46..825b99a0ba 100644 --- a/packages/insomnia-app/app/sync/git/mem-client.ts +++ b/packages/insomnia-app/app/sync/git/mem-client.ts @@ -114,7 +114,7 @@ export class MemClient { async writeFile( filePath: string, data: Buffer | string, - options: BufferEncoding | { encoding?: BufferEncoding, flag?: string; } = {}, + options: BufferEncoding | { encoding?: BufferEncoding; flag?: string } = {}, ) { filePath = path.normalize(filePath); diff --git a/packages/insomnia-app/app/sync/ignore-keys.ts b/packages/insomnia-app/app/sync/ignore-keys.ts index 2603bf0442..2fd303f9fe 100644 --- a/packages/insomnia-app/app/sync/ignore-keys.ts +++ b/packages/insomnia-app/app/sync/ignore-keys.ts @@ -6,7 +6,7 @@ const DELETE_KEY: keyof BaseModel = 'modified'; type ResetModelKeys = { [K in keyof T]?: T[K] | null; -} +}; // Keys for VCS to reset before computing changes // We can't always delete keys diff --git a/packages/insomnia-app/app/sync/vcs/initialize-backend-project.ts b/packages/insomnia-app/app/sync/vcs/initialize-backend-project.ts index 6d88e1ed69..270e30003d 100644 --- a/packages/insomnia-app/app/sync/vcs/initialize-backend-project.ts +++ b/packages/insomnia-app/app/sync/vcs/initialize-backend-project.ts @@ -8,7 +8,7 @@ import { VCS } from './vcs'; const blankStage = {}; -export const initializeLocalBackendProjectAndMarkForSync = async ({ vcs, workspace }: { vcs: VCS; workspace: Workspace; }) => { +export const initializeLocalBackendProjectAndMarkForSync = async ({ vcs, workspace }: { vcs: VCS; workspace: Workspace }) => { if (!isCollection(workspace)) { // Don't initialize and mark for sync unless we're in a collection return; diff --git a/packages/insomnia-app/app/sync/vcs/util.ts b/packages/insomnia-app/app/sync/vcs/util.ts index d475ef52eb..8a0032e7de 100644 --- a/packages/insomnia-app/app/sync/vcs/util.ts +++ b/packages/insomnia-app/app/sync/vcs/util.ts @@ -561,7 +561,7 @@ export const interceptAccessError = async ( resourceName, resourceType = strings.collection.singular.toLowerCase(), }: { - callback: () => T | Promise, + callback: () => T | Promise; action: string; resourceName: string; resourceType?: string; diff --git a/packages/insomnia-app/app/sync/vcs/vcs.ts b/packages/insomnia-app/app/sync/vcs/vcs.ts index 538672d736..4cf7488cad 100644 --- a/packages/insomnia-app/app/sync/vcs/vcs.ts +++ b/packages/insomnia-app/app/sync/vcs/vcs.ts @@ -1230,7 +1230,7 @@ export class VCS { const symmetricKey = await crypt.generateAES256Key(); const symmetricKeyStr = JSON.stringify(symmetricKey); - const teamKeys: {accountId: string, encSymmetricKey: string}[] = []; + const teamKeys: {accountId: string; encSymmetricKey: string}[] = []; let encSymmetricKey: string | undefined; if (teamId) { diff --git a/packages/insomnia-app/app/ui/components/activity-toggle.tsx b/packages/insomnia-app/app/ui/components/activity-toggle.tsx index d56f2776f1..063bb9176e 100644 --- a/packages/insomnia-app/app/ui/components/activity-toggle.tsx +++ b/packages/insomnia-app/app/ui/components/activity-toggle.tsx @@ -7,7 +7,7 @@ import type { Workspace } from '../../models/workspace'; interface Props { activity: GlobalActivity; - handleActivityChange: (options: {workspaceId?: string, nextActivity: GlobalActivity}) => Promise; + handleActivityChange: (options: {workspaceId?: string; nextActivity: GlobalActivity}) => Promise; workspace: Workspace; } diff --git a/packages/insomnia-app/app/ui/components/base/button.tsx b/packages/insomnia-app/app/ui/components/base/button.tsx index 2ce59ea88e..0480260585 100644 --- a/packages/insomnia-app/app/ui/components/base/button.tsx +++ b/packages/insomnia-app/app/ui/components/base/button.tsx @@ -4,15 +4,15 @@ import React, { ButtonHTMLAttributes, CSSProperties, PureComponent, ReactNode } import { AUTOBIND_CFG } from '../../../common/constants'; export interface ButtonProps { - children: ReactNode, - value?: T, - className?: string, - onDisabledClick?: React.MouseEventHandler | ((value: T | undefined, e: React.MouseEvent) => void), - onClick?: React.MouseEventHandler | ((value: T | undefined, e: React.MouseEvent) => void), - disabled?: boolean, - tabIndex?: number, - type?: ButtonHTMLAttributes['type'], - id?: string, + children: ReactNode; + value?: T; + className?: string; + onDisabledClick?: React.MouseEventHandler | ((value: T | undefined, e: React.MouseEvent) => void); + onClick?: React.MouseEventHandler | ((value: T | undefined, e: React.MouseEvent) => void); + disabled?: boolean; + tabIndex?: number; + type?: ButtonHTMLAttributes['type']; + id?: string; // TODO(TSCONVERSION) figure out why so many components pass this yet it isn't used title?: string; style?: CSSProperties; diff --git a/packages/insomnia-app/app/ui/components/base/copy-button.tsx b/packages/insomnia-app/app/ui/components/base/copy-button.tsx index 0f6f55dea6..54b1530337 100644 --- a/packages/insomnia-app/app/ui/components/base/copy-button.tsx +++ b/packages/insomnia-app/app/ui/components/base/copy-button.tsx @@ -6,10 +6,10 @@ import React, { PureComponent, ReactNode } from 'react'; import { AUTOBIND_CFG } from '../../../common/constants'; interface Props extends ButtonProps { - content: string | Function, - children?: ReactNode, - title?: string, - confirmMessage?: string, + content: string | Function; + children?: ReactNode; + title?: string; + confirmMessage?: string; } interface State { @@ -20,7 +20,7 @@ interface State { class CopyButton extends PureComponent { state: State = { showConfirmation: false, - } + }; _triggerTimeout: NodeJS.Timeout | null = null; diff --git a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-button.tsx b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-button.tsx index 9e7b62c291..571f51947e 100644 --- a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-button.tsx +++ b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-button.tsx @@ -1,9 +1,9 @@ import React, { ButtonHTMLAttributes, PureComponent, ReactNode } from 'react'; interface Props extends ButtonHTMLAttributes { - children: ReactNode, - noWrap?: boolean, - className?: string, + children: ReactNode; + noWrap?: boolean; + className?: string; } class DropdownButton extends PureComponent { diff --git a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-divider.tsx b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-divider.tsx index 308420c754..8e76b0d3c6 100644 --- a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-divider.tsx +++ b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-divider.tsx @@ -2,7 +2,7 @@ import classnames from 'classnames'; import React, { PureComponent, ReactNode } from 'react'; interface Props { - children?: ReactNode, + children?: ReactNode; } class DropdownDivider extends PureComponent { diff --git a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-item.tsx b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-item.tsx index 16ab1ea76a..537c964127 100644 --- a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-item.tsx +++ b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-item.tsx @@ -6,15 +6,15 @@ import { AUTOBIND_CFG } from '../../../../common/constants'; interface Props { addIcon?: boolean; // TODO(TSCONVERSION) some consumers are passing this prop but it appears to be unused - title?: string, - buttonClass?: React.ComponentType, - stayOpenAfterClick?: boolean, - value?: any, - disabled?: boolean, - onClick: Function, - children: ReactNode, - className?: string, - color?: string, + title?: string; + buttonClass?: React.ComponentType; + stayOpenAfterClick?: boolean; + value?: any; + disabled?: boolean; + onClick: Function; + children: ReactNode; + className?: string; + color?: string; } @autoBindMethodsForReact(AUTOBIND_CFG) diff --git a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-right.tsx b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-right.tsx index 5420a6b5ea..378ca45cbc 100644 --- a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-right.tsx +++ b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-right.tsx @@ -2,8 +2,8 @@ import classnames from 'classnames'; import React, { PureComponent, ReactNode } from 'react'; interface Props { - children: ReactNode, - className?: string, + children: ReactNode; + className?: string; } class DropdownRight extends PureComponent { diff --git a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown.tsx b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown.tsx index 96b5228c5c..8e826006ea 100644 --- a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown.tsx +++ b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown.tsx @@ -14,26 +14,26 @@ import DropdownItem from './dropdown-item'; const dropdownsContainer = document.querySelector('#dropdowns-container'); export interface DropdownProps { - children: ReactNode, - right?: boolean, - outline?: boolean, - wide?: boolean, - onOpen?: Function, - onHide?: Function, - className?: string, - style?: CSSProperties, - beside?: boolean, + children: ReactNode; + right?: boolean; + outline?: boolean; + wide?: boolean; + onOpen?: Function; + onHide?: Function; + className?: string; + style?: CSSProperties; + beside?: boolean; } interface State { - open: boolean, - dropUp: boolean, - filter: string, - filterVisible: boolean, - filterItems?: number[] | null, - filterActiveIndex: number, - forcedPosition?: {x: number, y: number} | null, - uniquenessKey: number, + open: boolean; + dropUp: boolean; + filter: string; + filterVisible: boolean; + filterItems?: number[] | null; + filterActiveIndex: number; + forcedPosition?: {x: number; y: number} | null; + uniquenessKey: number; } @autoBindMethodsForReact(AUTOBIND_CFG) @@ -54,7 +54,7 @@ class Dropdown extends PureComponent { forcedPosition: null, // Use this to force new menu every time dropdown opens uniquenessKey: 0, - } + }; _setRef(n: HTMLDivElement) { this._node = n; diff --git a/packages/insomnia-app/app/ui/components/base/editable.tsx b/packages/insomnia-app/app/ui/components/base/editable.tsx index 944a04910e..9e4b44901c 100644 --- a/packages/insomnia-app/app/ui/components/base/editable.tsx +++ b/packages/insomnia-app/app/ui/components/base/editable.tsx @@ -20,15 +20,15 @@ export const shouldSave = (oldValue, newValue, preventBlank = false) => { }; interface Props { - onSubmit: (value?: string) => void, - value: string, - fallbackValue?: string, - blankValue?: string, - renderReadView?: Function, - singleClick?: boolean, - onEditStart?: Function, - className?: string, - preventBlank?: boolean, + onSubmit: (value?: string) => void; + value: string; + fallbackValue?: string; + blankValue?: string; + renderReadView?: Function; + singleClick?: boolean; + onEditStart?: Function; + className?: string; + preventBlank?: boolean; } interface State { @@ -39,7 +39,7 @@ interface State { class Editable extends PureComponent { state: State = { editing: false, - } + }; _input: HTMLInputElement | null = null; diff --git a/packages/insomnia-app/app/ui/components/base/lazy.ts b/packages/insomnia-app/app/ui/components/base/lazy.ts index b22c61a7a3..04e7747cd8 100644 --- a/packages/insomnia-app/app/ui/components/base/lazy.ts +++ b/packages/insomnia-app/app/ui/components/base/lazy.ts @@ -15,7 +15,7 @@ interface State { class Lazy extends PureComponent { state: State = { show: false, - } + }; show() { this.setState({ diff --git a/packages/insomnia-app/app/ui/components/base/modal.tsx b/packages/insomnia-app/app/ui/components/base/modal.tsx index 1418ac832c..2ebcb5bcc7 100644 --- a/packages/insomnia-app/app/ui/components/base/modal.tsx +++ b/packages/insomnia-app/app/ui/components/base/modal.tsx @@ -11,19 +11,19 @@ import KeydownBinder from '../keydown-binder'; let globalZIndex = 1000; export interface ModalProps { - tall?: boolean, - wide?: boolean, - skinny?: boolean, - noEscape?: boolean, - dontFocus?: boolean, - closeOnKeyCodes?: any[], - onShow?: Function, - onHide?: Function, - onCancel?: Function, - onKeyDown?: Function, - freshState?: boolean, - children?: ReactNode, - className?: string, + tall?: boolean; + wide?: boolean; + skinny?: boolean; + noEscape?: boolean; + dontFocus?: boolean; + closeOnKeyCodes?: any[]; + onShow?: Function; + onHide?: Function; + onCancel?: Function; + onKeyDown?: Function; + freshState?: boolean; + children?: ReactNode; + className?: string; } interface State { diff --git a/packages/insomnia-app/app/ui/components/base/prompt-button.tsx b/packages/insomnia-app/app/ui/components/base/prompt-button.tsx index 005b866039..1463b8dbcc 100644 --- a/packages/insomnia-app/app/ui/components/base/prompt-button.tsx +++ b/packages/insomnia-app/app/ui/components/base/prompt-button.tsx @@ -28,7 +28,7 @@ interface Props { } interface State { - state: States + state: States; } @autoBindMethodsForReact(AUTOBIND_CFG) @@ -37,7 +37,7 @@ class PromptButton extends PureComponent { _triggerTimeout: NodeJS.Timeout | null = null; state: State = { state: STATE_DEFAULT, - } + }; _confirm(...args) { if (this._triggerTimeout !== null) { diff --git a/packages/insomnia-app/app/ui/components/check-for-updates-button.tsx b/packages/insomnia-app/app/ui/components/check-for-updates-button.tsx index 85c55308e8..44f6a1cc8e 100644 --- a/packages/insomnia-app/app/ui/components/check-for-updates-button.tsx +++ b/packages/insomnia-app/app/ui/components/check-for-updates-button.tsx @@ -21,7 +21,7 @@ class CheckForUpdatesButton extends PureComponent { status: '', checking: false, updateAvailable: false, - } + }; _listenerCheckComplete(_e, updateAvailable: true, status: string) { this.setState({ diff --git a/packages/insomnia-app/app/ui/components/codemirror/code-editor.tsx b/packages/insomnia-app/app/ui/components/codemirror/code-editor.tsx index c9804abf1a..77f69361fb 100644 --- a/packages/insomnia-app/app/ui/components/codemirror/code-editor.tsx +++ b/packages/insomnia-app/app/ui/components/codemirror/code-editor.tsx @@ -86,63 +86,63 @@ const BASE_CODEMIRROR_OPTIONS: CodeMirror.EditorConfiguration = { export type CodeEditorOnChange = (value: string) => void; interface Props { - indentWithTabs?: boolean, - onChange?: CodeEditorOnChange, - onCursorActivity?: Function, - onFocus?: Function, - onBlur?: Function, - onClickLink?: CodeMirrorLinkClickCallback, - onKeyDown?: Function, - onMouseLeave?: React.MouseEventHandler, - onClick?: React.MouseEventHandler, - onPaste?: Function, - onCodeMirrorInit?: (editor: CodeMirror.EditorFromTextArea) => void, - render?: HandleRender, - nunjucksPowerUserMode?: boolean, - getRenderContext?: HandleGetRenderContext, - getAutocompleteConstants?: Function, - getAutocompleteSnippets?: Function, - keyMap?: string, - mode?: string, - id?: string, - placeholder?: string, - lineWrapping?: boolean, - hideLineNumbers?: boolean, - hideGutters?: boolean, - noMatchBrackets?: boolean, - hideScrollbars?: boolean, - fontSize?: number, - indentSize?: number, - defaultValue?: string, - tabIndex?: number, - autoPrettify?: boolean, - manualPrettify?: boolean, - noLint?: boolean, - noDragDrop?: boolean, - noStyleActiveLine?: boolean, - className?: string, - style?: Object, - updateFilter?: (filter: string) => void, - defaultTabBehavior?: boolean, - readOnly?: boolean, - type?: string, - filter?: string, - filterHistory?: string[], - singleLine?: boolean, - debounceMillis?: number, - dynamicHeight?: boolean, - autoCloseBrackets?: boolean, - hintOptions?: Object, - lintOptions?: Object, - infoOptions?: Object, - jumpOptions?: Object, - uniquenessKey?: string, - isVariableUncovered?: boolean, - raw?: boolean, + indentWithTabs?: boolean; + onChange?: CodeEditorOnChange; + onCursorActivity?: Function; + onFocus?: Function; + onBlur?: Function; + onClickLink?: CodeMirrorLinkClickCallback; + onKeyDown?: Function; + onMouseLeave?: React.MouseEventHandler; + onClick?: React.MouseEventHandler; + onPaste?: Function; + onCodeMirrorInit?: (editor: CodeMirror.EditorFromTextArea) => void; + render?: HandleRender; + nunjucksPowerUserMode?: boolean; + getRenderContext?: HandleGetRenderContext; + getAutocompleteConstants?: Function; + getAutocompleteSnippets?: Function; + keyMap?: string; + mode?: string; + id?: string; + placeholder?: string; + lineWrapping?: boolean; + hideLineNumbers?: boolean; + hideGutters?: boolean; + noMatchBrackets?: boolean; + hideScrollbars?: boolean; + fontSize?: number; + indentSize?: number; + defaultValue?: string; + tabIndex?: number; + autoPrettify?: boolean; + manualPrettify?: boolean; + noLint?: boolean; + noDragDrop?: boolean; + noStyleActiveLine?: boolean; + className?: string; + style?: Object; + updateFilter?: (filter: string) => void; + defaultTabBehavior?: boolean; + readOnly?: boolean; + type?: string; + filter?: string; + filterHistory?: string[]; + singleLine?: boolean; + debounceMillis?: number; + dynamicHeight?: boolean; + autoCloseBrackets?: boolean; + hintOptions?: Object; + lintOptions?: Object; + infoOptions?: Object; + jumpOptions?: Object; + uniquenessKey?: string; + isVariableUncovered?: boolean; + raw?: boolean; } interface State { - filter: string + filter: string; } @autoBindMethodsForReact(AUTOBIND_CFG) diff --git a/packages/insomnia-app/app/ui/components/dropdowns/git-sync-dropdown.tsx b/packages/insomnia-app/app/ui/components/dropdowns/git-sync-dropdown.tsx index 42bda81b9b..e0a58aaa0b 100644 --- a/packages/insomnia-app/app/ui/components/dropdowns/git-sync-dropdown.tsx +++ b/packages/insomnia-app/app/ui/components/dropdowns/git-sync-dropdown.tsx @@ -61,7 +61,7 @@ class GitSyncDropdown extends PureComponent { log: [], branch: '', branches: [], - } + }; _setDropdownRef(n: Dropdown) { this._dropdown = n; diff --git a/packages/insomnia-app/app/ui/components/dropdowns/method-dropdown.tsx b/packages/insomnia-app/app/ui/components/dropdowns/method-dropdown.tsx index 5db0f72ebf..654deb8678 100644 --- a/packages/insomnia-app/app/ui/components/dropdowns/method-dropdown.tsx +++ b/packages/insomnia-app/app/ui/components/dropdowns/method-dropdown.tsx @@ -10,11 +10,11 @@ const LOCALSTORAGE_KEY = 'insomnia.httpMethods'; const GRPC_LABEL = 'gRPC'; interface Props { - onChange: Function, - method: string, - right?: boolean, - showGrpc?: boolean, - className?: string, + onChange: Function; + method: string; + right?: boolean; + showGrpc?: boolean; + className?: string; } @autoBindMethodsForReact(AUTOBIND_CFG) diff --git a/packages/insomnia-app/app/ui/components/dropdowns/project-dropdown.tsx b/packages/insomnia-app/app/ui/components/dropdowns/project-dropdown.tsx index 40078799d7..096df3ab52 100644 --- a/packages/insomnia-app/app/ui/components/dropdowns/project-dropdown.tsx +++ b/packages/insomnia-app/app/ui/components/dropdowns/project-dropdown.tsx @@ -32,7 +32,7 @@ const StyledTooltip = styled(Tooltip)({ ...tooltipIconPlacementHack, }); -const TooltipIcon = ({ message, icon }: { message: string, icon: SvgIconProps['icon'] }) => ( +const TooltipIcon = ({ message, icon }: { message: string; icon: SvgIconProps['icon'] }) => ( diff --git a/packages/insomnia-app/app/ui/components/dropdowns/remote-workspaces-dropdown.tsx b/packages/insomnia-app/app/ui/components/dropdowns/remote-workspaces-dropdown.tsx index 9a7933ce65..02b2e090e8 100644 --- a/packages/insomnia-app/app/ui/components/dropdowns/remote-workspaces-dropdown.tsx +++ b/packages/insomnia-app/app/ui/components/dropdowns/remote-workspaces-dropdown.tsx @@ -15,7 +15,7 @@ interface Props { vcs?: VCS | null; } -const PullButton: FC<{disabled?: boolean, className?: string}> = ({ disabled, className }) => ( +const PullButton: FC<{disabled?: boolean; className?: string}> = ({ disabled, className }) => (