diff --git a/app/client/.eslintrc.js b/app/client/.eslintrc.js index 30bd6ceda3..f04ec7fe45 100644 --- a/app/client/.eslintrc.js +++ b/app/client/.eslintrc.js @@ -21,7 +21,6 @@ const eslintConfig = { "testing-library/no-unnecessary-act": "off", "@typescript-eslint/prefer-nullish-coalescing": "off", "@typescript-eslint/strict-boolean-expressions": "off", - "@typescript-eslint/no-explicit-any": "off", "react/display-name": "off", "react/prop-types": "off", // `no-restricted-imports` is disabled, as recommended in https://typescript-eslint.io/rules/no-restricted-imports/. diff --git a/app/client/src/IDE/Components/HeaderEditorSwitcher.tsx b/app/client/src/IDE/Components/HeaderEditorSwitcher.tsx index b3a1e727f5..77525671ab 100644 --- a/app/client/src/IDE/Components/HeaderEditorSwitcher.tsx +++ b/app/client/src/IDE/Components/HeaderEditorSwitcher.tsx @@ -23,6 +23,8 @@ const SwitchTrigger = styled.div<{ active: boolean }>` `; const HeaderEditorSwitcher = React.forwardRef( + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any (props: HeaderEditorSwitcherProps, ref: any) => { const { active, className, prefix, title, titleTestId, ...rest } = props; diff --git a/app/client/src/UITelemetry/PageLoadInstrumentation.ts b/app/client/src/UITelemetry/PageLoadInstrumentation.ts index 917baece3b..8d47c4972a 100644 --- a/app/client/src/UITelemetry/PageLoadInstrumentation.ts +++ b/app/client/src/UITelemetry/PageLoadInstrumentation.ts @@ -295,6 +295,8 @@ export class PageLoadInstrumentation extends InstrumentationBase { encodedBodySize, entryType, fetchStart, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any firstInterimResponseStart: (entry as any).firstInterimResponseStart, initiatorType, nextHopProtocol, @@ -308,6 +310,8 @@ export class PageLoadInstrumentation extends InstrumentationBase { transferSize, url, workerStart, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any renderBlockingStatus: (entry as any).renderBlockingStatus, }, entry.startTime, diff --git a/app/client/src/UITelemetry/generateTraces.ts b/app/client/src/UITelemetry/generateTraces.ts index 1f26128489..d2864ee299 100644 --- a/app/client/src/UITelemetry/generateTraces.ts +++ b/app/client/src/UITelemetry/generateTraces.ts @@ -109,6 +109,8 @@ export const startAndEndSpanForFn = ( return res; }; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export function wrapFnWithParentTraceContext(parentSpan: Span, fn: () => any) { const parentContext = trace.setSpan(context.active(), parentSpan); return context.with(parentContext, fn); diff --git a/app/client/src/WidgetProvider/constants.ts b/app/client/src/WidgetProvider/constants.ts index d519689336..d5772b07a2 100644 --- a/app/client/src/WidgetProvider/constants.ts +++ b/app/client/src/WidgetProvider/constants.ts @@ -29,6 +29,8 @@ import type { export interface WidgetSizeConfig { viewportMinWidth: number; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any configuration: (props: any) => Record; } @@ -36,13 +38,16 @@ interface ResizableValues { vertical?: boolean; horizontal?: boolean; } +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any type ResizableOptions = ResizableValues | ((props: any) => ResizableValues); export interface AutoDimensionValues { width?: boolean; height?: boolean; } export type AutoDimensionOptions = - | AutoDimensionValues + | AutoDimensionValues // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any | ((props: any) => AutoDimensionValues); export interface AutoLayoutConfig { @@ -70,7 +75,8 @@ export interface AnvilConfig { isLargeWidget: boolean; // min/max sizes for the widget widgetSize?: - | SizeConfig + | SizeConfig // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any | ((props: any, isPreviewMode: boolean) => SizeConfig); } @@ -115,11 +121,15 @@ export interface WidgetConfiguration extends WidgetBaseConfiguration { contentConfig?: PropertyPaneConfig[]; styleConfig?: PropertyPaneConfig[]; default: Record; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any meta: Record; derived: DerivedPropertiesMap; loadingProperties?: Array; stylesheetConfig?: Stylesheet; autocompleteDefinitions?: AutocompletionDefinitions; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any setterConfig?: Record; }; methods?: Record; @@ -217,11 +227,14 @@ export type AutocompleteDefinitionFunction = ( widgetProps: WidgetProps, extraDefsToDefine?: ExtraDef, configTree?: WidgetEntityConfig, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ) => Record; export type AutocompletionDefinitions = - | Record - | AutocompleteDefinitionFunction; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any + Record | AutocompleteDefinitionFunction; const staticProps = omit( WIDGET_STATIC_PROPS, @@ -471,8 +484,12 @@ export interface WidgetBlueprint { type: string; size?: { rows: number; cols: number }; position: { top?: number; left?: number }; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any props: Record; }>; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any operations?: any; } diff --git a/app/client/src/WidgetProvider/factory/decorators.ts b/app/client/src/WidgetProvider/factory/decorators.ts index ed94ddf1f1..1dbc737333 100644 --- a/app/client/src/WidgetProvider/factory/decorators.ts +++ b/app/client/src/WidgetProvider/factory/decorators.ts @@ -17,6 +17,8 @@ export function freeze( ) { const originalFunction = descriptor.value; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any descriptor.value = (...args: any[]) => { const result = originalFunction.apply(target, args); diff --git a/app/client/src/WidgetProvider/factory/index.tsx b/app/client/src/WidgetProvider/factory/index.tsx index 967a339db5..b29097283f 100644 --- a/app/client/src/WidgetProvider/factory/index.tsx +++ b/app/client/src/WidgetProvider/factory/index.tsx @@ -43,6 +43,8 @@ import type { } from "layoutSystems/anvil/utils/paste/types"; import { call } from "redux-saga/effects"; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any type WidgetDerivedPropertyType = any; export type DerivedPropertiesMap = Record; export type WidgetType = (typeof WidgetFactory.widgetTypes)[number]; @@ -60,6 +62,8 @@ class WidgetFactory { static widgetsMap: Map = new Map(); + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any static widgetBuilderMap: Map = new Map(); static initialize( @@ -655,6 +659,8 @@ export type WidgetTypeConfigMap = Record< string, { defaultProperties: Record; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any metaProperties: Record; derivedProperties: WidgetDerivedPropertyType; } diff --git a/app/client/src/WidgetProvider/factory/registrationHelper.tsx b/app/client/src/WidgetProvider/factory/registrationHelper.tsx index 1efe998eb5..082c2cb78c 100644 --- a/app/client/src/WidgetProvider/factory/registrationHelper.tsx +++ b/app/client/src/WidgetProvider/factory/registrationHelper.tsx @@ -15,6 +15,8 @@ export const registerWidgets = (widgets: (typeof BaseWidget)[]) => { const widgetAndBuilders = widgets.map((widget) => { const { eagerRender = false, needsMeta = false } = widget.getConfig(); + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const ProfiledWidget: any = withBaseWidgetHOC( widget, needsMeta, diff --git a/app/client/src/WidgetQueryGenerators/GSheets/index.ts b/app/client/src/WidgetQueryGenerators/GSheets/index.ts index fed3841500..597f1b44f7 100644 --- a/app/client/src/WidgetQueryGenerators/GSheets/index.ts +++ b/app/client/src/WidgetQueryGenerators/GSheets/index.ts @@ -57,6 +57,8 @@ export default abstract class GSheets extends BaseQueryGenerator { const { select } = widgetConfig; if (select && formConfig.sheetName) { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const queryPayload: any = { type: QUERY_TYPE.SELECT, name: `Find_${removeSpecialChars(formConfig.sheetName)}`, diff --git a/app/client/src/WidgetQueryGenerators/MongoDB/index.ts b/app/client/src/WidgetQueryGenerators/MongoDB/index.ts index eaf0b6d88d..edb6618a0a 100644 --- a/app/client/src/WidgetQueryGenerators/MongoDB/index.ts +++ b/app/client/src/WidgetQueryGenerators/MongoDB/index.ts @@ -30,6 +30,8 @@ export default abstract class MongoDB extends BaseQueryGenerator { const { select } = widgetConfig; if (select) { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const queryPayload: any = { type: QUERY_TYPE.SELECT, name: `Find_${removeSpecialChars(formConfig.tableName)}`, diff --git a/app/client/src/actions/actionSelectorActions.ts b/app/client/src/actions/actionSelectorActions.ts index 39f9206f7e..63b6b83218 100644 --- a/app/client/src/actions/actionSelectorActions.ts +++ b/app/client/src/actions/actionSelectorActions.ts @@ -13,6 +13,8 @@ export const setEvaluatedActionSelectorField = (payload: { id: string; evaluatedValue: { value: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any errors: any[]; }; }) => ({ diff --git a/app/client/src/actions/appCollabActions.ts b/app/client/src/actions/appCollabActions.ts index beed67436f..b9aae62556 100644 --- a/app/client/src/actions/appCollabActions.ts +++ b/app/client/src/actions/appCollabActions.ts @@ -19,6 +19,8 @@ export const collabStopEditingAppEvent = (appId: string) => }); // App Editor presence Redux actions +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const collabSetAppEditors = (payload: any) => ({ type: ReduxActionTypes.APP_COLLAB_LIST_EDITORS, payload, @@ -41,6 +43,8 @@ export const collabStopSharingPointerEvent = (pageId?: string) => payload: pageId, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const collabShareUserPointerEvent = (payload: any) => pageLevelWebsocketWriteEvent({ type: PAGE_LEVEL_SOCKET_EVENTS.SHARE_USER_POINTER, @@ -48,11 +52,15 @@ export const collabShareUserPointerEvent = (payload: any) => }); // Pointer Sharing Redux actions +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const collabSetEditorsPointersData = (payload: any) => ({ type: ReduxActionTypes.APP_COLLAB_SET_EDITORS_POINTER_DATA, payload, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const collabUnsetEditorsPointersData = (payload: any) => ({ type: ReduxActionTypes.APP_COLLAB_UNSET_EDITORS_POINTER_DATA, payload, @@ -62,6 +70,8 @@ export const collabResetEditorsPointersData = () => ({ type: ReduxActionTypes.APP_COLLAB_RESET_EDITORS_POINTER_DATA, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const collabConcurrentPageEditorsData = (payload: any) => ({ type: ReduxActionTypes.APP_COLLAB_SET_CONCURRENT_PAGE_EDITORS, payload, diff --git a/app/client/src/actions/batchActions.ts b/app/client/src/actions/batchActions.ts index 1722c62867..a15ee8670b 100644 --- a/app/client/src/actions/batchActions.ts +++ b/app/client/src/actions/batchActions.ts @@ -4,6 +4,8 @@ import type { } from "@appsmith/constants/ReduxActionConstants"; import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const batchAction = (action: EvaluationReduxAction) => ({ type: ReduxActionTypes.BATCHED_UPDATE, payload: action, @@ -11,6 +13,8 @@ export const batchAction = (action: EvaluationReduxAction) => ({ export type BatchAction = ReduxAction>; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const batchActionSuccess = (actions: ReduxAction[]) => ({ type: ReduxActionTypes.BATCH_UPDATES_SUCCESS, payload: actions, diff --git a/app/client/src/actions/canvasSelectionActions.ts b/app/client/src/actions/canvasSelectionActions.ts index 99bbb6aab3..a4e3f8fc1c 100644 --- a/app/client/src/actions/canvasSelectionActions.ts +++ b/app/client/src/actions/canvasSelectionActions.ts @@ -40,6 +40,8 @@ export const selectAllWidgetsInAreaAction = ( snapColumnSpace: number; snapRowSpace: number; }, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ): ReduxAction => { return { type: ReduxActionTypes.SELECT_WIDGETS_IN_AREA, diff --git a/app/client/src/actions/controlActions.tsx b/app/client/src/actions/controlActions.tsx index 77f8295114..cb25a25145 100644 --- a/app/client/src/actions/controlActions.tsx +++ b/app/client/src/actions/controlActions.tsx @@ -9,6 +9,8 @@ import type { DynamicPath } from "utils/DynamicBindingUtils"; export const updateWidgetPropertyRequest = ( widgetId: string, propertyPath: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any propertyValue: any, ): ReduxAction => { return { @@ -113,6 +115,8 @@ export const updateMultipleMetaWidgetPropertiesAction = ( export interface UpdateWidgetPropertyRequestPayload { widgetId: string; propertyPath: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any propertyValue: any; } diff --git a/app/client/src/actions/datasourceActions.ts b/app/client/src/actions/datasourceActions.ts index 7f3176d083..6a13308b1e 100644 --- a/app/client/src/actions/datasourceActions.ts +++ b/app/client/src/actions/datasourceActions.ts @@ -305,6 +305,8 @@ export interface addMockRequest isGeneratePageMode?: string; skipRedirection?: boolean; }> { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any extraParams?: any; } @@ -360,7 +362,11 @@ type errorPayload = string; export interface executeDatasourceReduxActionPayload { datasourceId: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any template?: Record; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any data?: Record; isGeneratePage: boolean; } @@ -378,9 +384,13 @@ export const executeDatasourceQuery = ({ }: { onErrorCallback?: (payload: errorPayload) => void; onSuccessCallback?: ( + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any payload: executeDatasourceQuerySuccessPayload, ) => void; payload: executeDatasourceReduxActionPayload; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any }): executeDatasourceQueryReduxAction => { return { type: ReduxActionTypes.EXECUTE_DATASOURCE_QUERY_INIT, diff --git a/app/client/src/actions/evaluationActions.ts b/app/client/src/actions/evaluationActions.ts index a67bb783b6..d54d5f4389 100644 --- a/app/client/src/actions/evaluationActions.ts +++ b/app/client/src/actions/evaluationActions.ts @@ -76,7 +76,11 @@ export const setDependencyMap = ( // Called when a form is being setup, for setting up the base condition evaluations for the form export const initFormEvaluations = ( + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any editorConfig: any, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any settingConfig: any, formId: string, ) => { diff --git a/app/client/src/actions/gitSyncActions.ts b/app/client/src/actions/gitSyncActions.ts index fdda241f5a..f950bc5f88 100644 --- a/app/client/src/actions/gitSyncActions.ts +++ b/app/client/src/actions/gitSyncActions.ts @@ -20,7 +20,11 @@ import type { ResponseMeta } from "api/ApiResponses"; export interface GitStatusParams { compareRemote?: boolean; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any onSuccessCallback?: (data: any) => void; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any onErrorCallback?: (error: Error, response?: any) => void; } @@ -73,12 +77,16 @@ export interface ConnectToGitResponse { interface ConnectToGitRequestParams { payload: ConnectToGitPayload; onSuccessCallback?: (payload: ConnectToGitResponse) => void; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any onErrorCallback?: (error: any, response?: any) => void; } export interface ConnectToGitReduxAction extends ReduxAction { onSuccessCallback?: (response: ConnectToGitResponse) => void; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any onErrorCallback?: (error: Error, response?: any) => void; } @@ -151,6 +159,8 @@ export const fetchBranchesInit = (payload?: { pruneBranches: boolean }) => ({ payload, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const fetchBranchesSuccess = (payload: any) => ({ type: ReduxActionTypes.FETCH_BRANCHES_SUCCESS, payload, @@ -193,11 +203,15 @@ export const discardChanges = ( payload, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const discardChangesSuccess = (payload: any) => ({ type: ReduxActionTypes.GIT_DISCARD_CHANGES_SUCCESS, payload, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const discardChangesFailure = (payload: any) => ({ type: ReduxActionErrorTypes.GIT_DISCARD_CHANGES_ERROR, payload: { error: payload.error, show: false }, @@ -420,6 +434,8 @@ export const importAppViaGitStatusReset = () => ({ }); // todo define type +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const importAppViaGitError = (error: any) => ({ type: ReduxActionTypes.IMPORT_APPLICATION_FROM_GIT_ERROR, payload: error, @@ -429,26 +445,36 @@ export const resetSSHKeys = () => ({ type: ReduxActionTypes.RESET_SSH_KEY_PAIR, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const deleteBranchInit = (payload: any) => ({ type: ReduxActionTypes.DELETE_BRANCH_INIT, payload, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const deleteBranchSuccess = (payload: any) => ({ type: ReduxActionTypes.DELETE_BRANCH_SUCCESS, payload, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const deleteBranchError = (payload: any) => ({ type: ReduxActionErrorTypes.DELETE_BRANCH_ERROR, payload, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const deleteBranchWarning = (payload: any) => ({ type: ReduxActionErrorTypes.DELETE_BRANCH_WARNING, payload, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const deletingBranch = (payload: any) => ({ type: ReduxActionTypes.DELETING_BRANCH, payload, @@ -502,6 +528,8 @@ export const triggerAutocommitSuccessAction = () => ({ }); export interface TriggerAutocommitErrorActionPayload { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any error: any; show: boolean; } @@ -535,6 +563,8 @@ export const resetAutocommitProgressAction = () => ({ }); export interface AutocommitProgressErrorActionPayload { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any error: any; show: boolean; } diff --git a/app/client/src/actions/globalSearchActions.ts b/app/client/src/actions/globalSearchActions.ts index 762b2c0acf..d75270cbac 100644 --- a/app/client/src/actions/globalSearchActions.ts +++ b/app/client/src/actions/globalSearchActions.ts @@ -24,6 +24,8 @@ export const setGlobalSearchCategory = ( payload: category, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const setGlobalSearchFilterContext = (payload: any) => ({ type: ReduxActionTypes.SET_SEARCH_FILTER_CONTEXT, payload, diff --git a/app/client/src/actions/pageActions.tsx b/app/client/src/actions/pageActions.tsx index 6a4a4c84a2..a3ca5d61fc 100644 --- a/app/client/src/actions/pageActions.tsx +++ b/app/client/src/actions/pageActions.tsx @@ -321,6 +321,8 @@ export interface WidgetAddChild { parentColumnSpace: number; newWidgetId: string; tabId: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any props?: Record; dynamicBindingPathList?: DynamicPath[]; } @@ -384,12 +386,16 @@ export interface WidgetAddChildren { export interface WidgetUpdateProperty { widgetId: string; propertyPath: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any propertyValue: any; } export const updateWidget = ( operation: WidgetOperation, widgetId: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any payload: any, ): ReduxAction< | WidgetAddChild @@ -430,11 +436,15 @@ export const updateAppStore = ( }; export interface ReduxActionWithExtraParams extends ReduxAction { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any extraParams: Record; } export interface GenerateCRUDSuccess { page: { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any layouts: Array; id: string; baseId: string; @@ -467,6 +477,8 @@ export interface GenerateTemplatePageActionPayload { columns?: string[]; searchColumn?: string; mode?: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any pluginSpecificParams?: Record; } @@ -590,6 +602,8 @@ export const resetApplicationWidgets = () => ({ type: ReduxActionTypes.RESET_APPLICATION_WIDGET_STATE_REQUEST, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const fetchPageDSLs = (payload?: any) => ({ type: ReduxActionTypes.POPULATE_PAGEDSLS_INIT, payload, diff --git a/app/client/src/actions/pluginActionActions.ts b/app/client/src/actions/pluginActionActions.ts index f91db8686a..5a0ddab2ca 100644 --- a/app/client/src/actions/pluginActionActions.ts +++ b/app/client/src/actions/pluginActionActions.ts @@ -287,6 +287,8 @@ export const saveActionName = (payload: { id: string; name: string }) => ({ export interface SetActionPropertyPayload { actionId: string; propertyName: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any value: any; skipSave?: boolean; } @@ -303,6 +305,8 @@ export const setActionProperty = ( export interface UpdateActionPropertyActionPayload { id: string; field: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any value: any; } diff --git a/app/client/src/actions/pluginActions.ts b/app/client/src/actions/pluginActions.ts index 2639440463..cf6ec43c93 100644 --- a/app/client/src/actions/pluginActions.ts +++ b/app/client/src/actions/pluginActions.ts @@ -29,8 +29,14 @@ export const fetchPluginFormConfigs = ( }); export interface PluginFormsPayload { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any formConfigs: Record; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any editorConfigs: Record; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any settingConfigs: Record; dependencies: Record; datasourceFormButtonConfigs: Record; diff --git a/app/client/src/actions/userActions.ts b/app/client/src/actions/userActions.ts index f0c265f903..46d2b0c96b 100644 --- a/app/client/src/actions/userActions.ts +++ b/app/client/src/actions/userActions.ts @@ -26,6 +26,8 @@ export const logoutUserSuccess = (isEmptyInstance: boolean) => ({ payload: isEmptyInstance, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const logoutUserError = (error: any) => ({ type: ReduxActionErrorTypes.LOGOUT_USER_ERROR, payload: { @@ -46,12 +48,16 @@ export const verifyInvite = (payload: VerifyTokenRequest) => ({ payload, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const verifyInviteError = (error: any) => ({ type: ReduxActionErrorTypes.VERIFY_INVITE_ERROR, payload: { error }, }); export const invitedUserSignup = ( + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any payload: TokenPasswordUpdateRequest & { resolve: any; reject: any }, ) => ({ type: ReduxActionTypes.INVITED_USER_SIGNUP_INIT, @@ -62,6 +68,8 @@ export const invitedUserSignupSuccess = () => ({ type: ReduxActionTypes.INVITED_USER_SIGNUP_SUCCESS, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const invitedUserSignupError = (error: any) => ({ type: ReduxActionErrorTypes.INVITED_USER_SIGNUP_ERROR, payload: { @@ -119,6 +127,8 @@ export const fetchFeatureFlagsSuccess = (payload: FeatureFlags) => ({ payload, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const fetchFeatureFlagsError = (error: any) => ({ type: ReduxActionErrorTypes.FETCH_FEATURE_FLAGS_ERROR, payload: { error, show: false }, @@ -138,6 +148,8 @@ export const fetchProductAlertSuccess = (productAlert: ProductAlertState) => ({ payload: productAlert, }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const fetchProductAlertFailure = (error: any) => ({ type: ReduxActionErrorTypes.FETCH_PRODUCT_ALERT_FAILED, payload: { error, show: false }, diff --git a/app/client/src/actions/websocketActions.ts b/app/client/src/actions/websocketActions.ts index ced07b5b89..93449e6ff7 100644 --- a/app/client/src/actions/websocketActions.ts +++ b/app/client/src/actions/websocketActions.ts @@ -15,6 +15,8 @@ export const setIsPageLevelWebsocketConnected = (payload: boolean) => ({ export const appLevelWebsocketWriteEvent = (payload: { type: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any payload?: any; }) => ({ type: ReduxSagaChannels.WEBSOCKET_APP_LEVEL_WRITE_CHANNEL, @@ -22,6 +24,8 @@ export const appLevelWebsocketWriteEvent = (payload: { }); export const pageLevelWebsocketWriteEvent = (payload: { type: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any payload?: any; }) => ({ type: ReduxSagaChannels.WEBSOCKET_PAGE_LEVEL_WRITE_CHANNEL, diff --git a/app/client/src/actions/widgetSidebarActions.tsx b/app/client/src/actions/widgetSidebarActions.tsx index 00c67467fc..a5dfb11921 100644 --- a/app/client/src/actions/widgetSidebarActions.tsx +++ b/app/client/src/actions/widgetSidebarActions.tsx @@ -10,6 +10,8 @@ export const fetchWidgetCards = () => { }; }; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const errorFetchingWidgetCards = (error: any) => { return { type: ReduxActionErrorTypes.FETCH_WIDGET_CARDS_ERROR, diff --git a/app/client/src/api/ActionAPI.tsx b/app/client/src/api/ActionAPI.tsx index debfa333ee..1a5e1502b9 100644 --- a/app/client/src/api/ActionAPI.tsx +++ b/app/client/src/api/ActionAPI.tsx @@ -58,6 +58,8 @@ export type ActionExecutionResponse = ApiResponse<{ isExecutionSuccess: boolean; request: ActionApiResponseReq; errorType?: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any dataTypes: any[]; }> & { clientMeta: { @@ -180,6 +182,8 @@ class ActionAPI extends API { ...apiConfig.actionConfiguration, autoGeneratedHeaders: apiConfig.actionConfiguration.autoGeneratedHeaders?.map( + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any (header: any) => ({ ...header, isInvalid: undefined, @@ -187,6 +191,8 @@ class ActionAPI extends API { ) ?? undefined, }, datasource: apiConfig.datasource && { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ...(apiConfig as any).datasource, datasourceStorages: undefined, isValid: undefined, diff --git a/app/client/src/api/Api.ts b/app/client/src/api/Api.ts index 7f3a0dd014..14c880394a 100644 --- a/app/client/src/api/Api.ts +++ b/app/client/src/api/Api.ts @@ -26,6 +26,8 @@ const requestInterceptors = [ apiRequestInterceptor, ]; requestInterceptors.forEach((interceptor) => { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any axiosInstance.interceptors.request.use(interceptor as any); }); @@ -37,6 +39,8 @@ axiosInstance.interceptors.response.use( class Api { static async get( url: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any queryParams?: any, config: AxiosRequestConfig = {}, ) { @@ -48,7 +52,11 @@ class Api { static async post( url: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any body?: any, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any queryParams?: any, config: AxiosRequestConfig = {}, ) { @@ -64,7 +72,11 @@ class Api { static async put( url: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any body?: any, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any queryParams?: any, config: AxiosRequestConfig = {}, ) { @@ -80,7 +92,11 @@ class Api { static async patch( url: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any body?: any, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any queryParams?: any, config: AxiosRequestConfig = {}, ) { @@ -96,6 +112,8 @@ class Api { static async delete( url: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any queryParams?: any, config: AxiosRequestConfig = {}, ) { diff --git a/app/client/src/api/DatasourcesApi.ts b/app/client/src/api/DatasourcesApi.ts index 1ba5810ba2..8a5a3c2739 100644 --- a/app/client/src/api/DatasourcesApi.ts +++ b/app/client/src/api/DatasourcesApi.ts @@ -15,6 +15,8 @@ export interface CreateDatasourceConfig { } // type executeQueryData = Array<{ key?: string; value?: string }>; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any type executeQueryData = Record; interface executeDatasourceQueryRequest { @@ -33,6 +35,8 @@ class DatasourcesApi extends API { static async createDatasource( datasourceConfig: Partial, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ): Promise { // This here abomination is to remove several fields that are not accepted by the server. for (const [name, storage] of Object.entries( @@ -61,6 +65,8 @@ class DatasourcesApi extends API { }, }, }, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any } as any; } @@ -68,11 +74,15 @@ class DatasourcesApi extends API { } // Need for when we add strict type checking back on server + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any static cleanAuthenticationObject(authentication: any): any { if (!authentication) { return undefined; } + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const clean: any = { authenticationType: authentication.authenticationType ?? "dbAuth", }; @@ -133,6 +143,8 @@ class DatasourcesApi extends API { datasourceConfig: Partial, pluginId: string, workspaceId: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ): Promise { const payload = { ...datasourceConfig, @@ -160,6 +172,8 @@ class DatasourcesApi extends API { static async updateDatasource( datasourceConfig: Partial, id: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ): Promise { return API.put(DatasourcesApi.url + `/${id}`, datasourceConfig); } @@ -167,6 +181,8 @@ class DatasourcesApi extends API { // Api to update specific datasource storage/environment configuration static async updateDatasourceStorage( datasourceStorage: Partial, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ): Promise { const payload = { ...datasourceStorage, @@ -187,6 +203,8 @@ class DatasourcesApi extends API { return API.put(DatasourcesApi.url + `/datasource-storages`, payload); } + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any static async deleteDatasource(id: string): Promise { return API.delete(DatasourcesApi.url + `/${id}`); } @@ -194,6 +212,8 @@ class DatasourcesApi extends API { static async fetchDatasourceStructure( id: string, ignoreCache = false, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ): Promise { return API.get( DatasourcesApi.url + `/${id}/structure?ignoreCache=${ignoreCache}`, @@ -211,6 +231,8 @@ class DatasourcesApi extends API { workspaceId: string, pluginId: string, packageName: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ): Promise { return API.post(DatasourcesApi.url + `/mocks`, { name, diff --git a/app/client/src/api/PageApi.tsx b/app/client/src/api/PageApi.tsx index 8ed4046f23..c8d75dcb15 100644 --- a/app/client/src/api/PageApi.tsx +++ b/app/client/src/api/PageApi.tsx @@ -147,6 +147,8 @@ export interface GenerateTemplatePageRequest { columns?: string[]; searchColumn?: string; mode?: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any pluginSpecificParams?: Record; } diff --git a/app/client/src/api/PluginApi.ts b/app/client/src/api/PluginApi.ts index 61c8793583..3fc4a87fa1 100644 --- a/app/client/src/api/PluginApi.ts +++ b/app/client/src/api/PluginApi.ts @@ -37,8 +37,14 @@ export interface Plugin { } export interface PluginFormPayload { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any form: any[]; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any editor: any[]; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any setting: any[]; dependencies: DependencyMap; formButton: string[]; @@ -75,6 +81,8 @@ class PluginsApi extends Api { // Definition to fetch the dynamic data via the URL passed in the config static async fetchDynamicFormValues( url: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any body: Record, ): Promise> { return Api.post(url, body); @@ -89,6 +97,8 @@ class PluginsApi extends Api { static async uploadFiles( pluginId: string, files: File[], + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any params?: Record, ): Promise> { const url = this.dynamicTriggerURLForInternalPlugins(pluginId); diff --git a/app/client/src/ce/RouteParamsMiddleware.ts b/app/client/src/ce/RouteParamsMiddleware.ts index da7900c1dc..939bf5b6b4 100644 --- a/app/client/src/ce/RouteParamsMiddleware.ts +++ b/app/client/src/ce/RouteParamsMiddleware.ts @@ -12,6 +12,8 @@ import type { import urlBuilder from "@appsmith/entities/URLRedirect/URLAssembly"; import type { Middleware } from "redux"; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const handler = (action: ReduxAction) => { let appParams: ApplicationURLParams = {}; let pageParams: PageURLParams[] = []; @@ -124,6 +126,8 @@ export const handler = (action: ReduxAction) => { }; const routeParamsMiddleware: Middleware = + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any () => (next: any) => (action: ReduxAction) => { handler(action); return next(action); diff --git a/app/client/src/ce/actions/helpers.ts b/app/client/src/ce/actions/helpers.ts index 8382a109d6..ee6248051e 100644 --- a/app/client/src/ce/actions/helpers.ts +++ b/app/client/src/ce/actions/helpers.ts @@ -71,6 +71,8 @@ export const createNewApiActionBasedOnEditorType = ( parentEntityId: string, parentEntityType: ActionParentEntityTypeInterface, apiType: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ): any => { if (parentEntityId) { return createNewAPIBasedOnParentEntity( diff --git a/app/client/src/ce/actions/settingsAction.ts b/app/client/src/ce/actions/settingsAction.ts index 3fe5c14165..1f9911ac9c 100644 --- a/app/client/src/ce/actions/settingsAction.ts +++ b/app/client/src/ce/actions/settingsAction.ts @@ -1,5 +1,7 @@ import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const saveSettings = (settings: any, needsRestart = true) => ({ type: ReduxActionTypes.SAVE_ADMIN_SETTINGS, payload: { diff --git a/app/client/src/ce/api/ApiUtils.ts b/app/client/src/ce/api/ApiUtils.ts index 1b7f0a52b6..0f48d8365f 100644 --- a/app/client/src/ce/api/ApiUtils.ts +++ b/app/client/src/ce/api/ApiUtils.ts @@ -60,6 +60,8 @@ export const ENV_ENABLED_ROUTES_REGEX = new RegExp( `^(${ENV_ENABLED_ROUTES.join("|")})($|/)`, ); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any const makeExecuteActionResponse = (response: any): ActionExecutionResponse => ({ ...response.data, clientMeta: { @@ -146,6 +148,8 @@ export const apiSuccessResponseInterceptor = ( }; // Handle different api failure scenarios +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const apiFailureResponseInterceptor = async (error: any) => { // this can be extended to other errors we want to catch. // in this case it is 413. diff --git a/app/client/src/ce/api/ApplicationApi.tsx b/app/client/src/ce/api/ApplicationApi.tsx index 74782e62a2..d7ca7f642a 100644 --- a/app/client/src/ce/api/ApplicationApi.tsx +++ b/app/client/src/ce/api/ApplicationApi.tsx @@ -166,6 +166,8 @@ export interface FetchUsersApplicationsWorkspacesResponse extends ApiResponse { workspaceApplications: Array; user: string; newReleasesCount?: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any releaseItems?: Array>; }; } @@ -175,6 +177,8 @@ export interface FetchApplicationsOfWorkspaceResponse extends ApiResponse { export interface FetchReleaseItemsResponse extends ApiResponse { data: { newReleasesCount: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any releaseItems: Array>; }; } @@ -308,6 +312,8 @@ export class ApplicationApi extends Api { static async fetchAllApplicationsOfWorkspace( workspaceId: string, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ): Promise { return Api.get(ApplicationApi.baseURL + "/home?workspaceId=" + workspaceId); } diff --git a/app/client/src/ce/api/JSActionAPI.tsx b/app/client/src/ce/api/JSActionAPI.tsx index 6e18d265f7..c6b4dce4ce 100644 --- a/app/client/src/ce/api/JSActionAPI.tsx +++ b/app/client/src/ce/api/JSActionAPI.tsx @@ -43,6 +43,8 @@ export interface CreateJSCollectionRequest { export interface SetFunctionPropertyPayload { action: JSAction; propertyName: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any value: any; } export interface RefactorAction { @@ -81,7 +83,11 @@ class JSActionAPI extends API { jsConfig.actions?.map((action) => ({ ...action, entityReferenceType: undefined, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any datasource: (action as any).datasource && { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ...(action as any).datasource, isValid: undefined, new: undefined, @@ -100,7 +106,11 @@ class JSActionAPI extends API { jsConfig.actions?.map((action) => ({ ...action, entityReferenceType: undefined, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any datasource: (action as any).datasource && { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ...(action as any).datasource, isValid: undefined, new: undefined, @@ -128,7 +138,11 @@ class JSActionAPI extends API { jsConfig.actions?.map((action) => ({ ...action, entityReferenceType: undefined, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any datasource: (action as any).datasource && { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ...(action as any).datasource, isValid: undefined, new: undefined, @@ -176,7 +190,11 @@ class JSActionAPI extends API { (action) => ({ ...action, entityReferenceType: undefined, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any datasource: (action as any).datasource && { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ...(action as any).datasource, isValid: undefined, new: undefined, diff --git a/app/client/src/ce/components/EnvConfigSection/index.tsx b/app/client/src/ce/components/EnvConfigSection/index.tsx index 94a4298254..ef2e83ceaa 100644 --- a/app/client/src/ce/components/EnvConfigSection/index.tsx +++ b/app/client/src/ce/components/EnvConfigSection/index.tsx @@ -3,6 +3,8 @@ import { renderDatasourceSection } from "pages/Editor/DataSourceEditor/Datasourc export interface Props { currentEnv: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any config: any; datasource: Datasource; viewMode: boolean | undefined; diff --git a/app/client/src/ce/components/JSRemoteExecutionView/index.tsx b/app/client/src/ce/components/JSRemoteExecutionView/index.tsx index 079cd221ae..41e13cbc1b 100644 --- a/app/client/src/ce/components/JSRemoteExecutionView/index.tsx +++ b/app/client/src/ce/components/JSRemoteExecutionView/index.tsx @@ -1,3 +1,5 @@ +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export default function JSRemoteExecutionView({}: any) { return null; } diff --git a/app/client/src/ce/components/RunHistory/index.tsx b/app/client/src/ce/components/RunHistory/index.tsx index 356a2df85c..d502a4936f 100644 --- a/app/client/src/ce/components/RunHistory/index.tsx +++ b/app/client/src/ce/components/RunHistory/index.tsx @@ -1,3 +1,5 @@ +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export default function RunHistory({}: any) { return null; } diff --git a/app/client/src/ce/components/SwitchEnvironment/index.tsx b/app/client/src/ce/components/SwitchEnvironment/index.tsx index d4fa7db184..827bd3c150 100644 --- a/app/client/src/ce/components/SwitchEnvironment/index.tsx +++ b/app/client/src/ce/components/SwitchEnvironment/index.tsx @@ -53,6 +53,8 @@ export interface Props { viewMode?: boolean; editorId: string; onChangeEnv?: () => void; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any startSwitchEnvMessage: (...strArgs: any[]) => string; } diff --git a/app/client/src/ce/components/WorkspaceSettingsTabs/index.tsx b/app/client/src/ce/components/WorkspaceSettingsTabs/index.tsx index c8907d0105..7bea36fd58 100644 --- a/app/client/src/ce/components/WorkspaceSettingsTabs/index.tsx +++ b/app/client/src/ce/components/WorkspaceSettingsTabs/index.tsx @@ -104,6 +104,8 @@ export const WorkspaceSettingsTabs = ({ const MemberSettingsComponent = ( ( ), diff --git a/app/client/src/ce/components/editorComponents/GPT/index.tsx b/app/client/src/ce/components/editorComponents/GPT/index.tsx index 092dcfe265..a23e560fd5 100644 --- a/app/client/src/ce/components/editorComponents/GPT/index.tsx +++ b/app/client/src/ce/components/editorComponents/GPT/index.tsx @@ -24,6 +24,8 @@ export interface TAIWrapperProps { children?: React.ReactNode; isOpen: boolean; currentValue: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any update?: (...args: any) => void; triggerContext?: CodeEditorExpected; enableAIAssistance: boolean; diff --git a/app/client/src/ce/configs/types.ts b/app/client/src/ce/configs/types.ts index 5f31651214..24b67ea175 100644 --- a/app/client/src/ce/configs/types.ts +++ b/app/client/src/ce/configs/types.ts @@ -13,6 +13,8 @@ export interface AppsmithUIConfigs { dsn: string; release: string; environment: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any integrations: any[]; normalizeDepth: number; tracesSampleRate: number; diff --git a/app/client/src/ce/constants/ReduxActionConstants.tsx b/app/client/src/ce/constants/ReduxActionConstants.tsx index 3a300e5cae..140f10aa81 100644 --- a/app/client/src/ce/constants/ReduxActionConstants.tsx +++ b/app/client/src/ce/constants/ReduxActionConstants.tsx @@ -1205,7 +1205,11 @@ export interface EvaluationReduxAction extends ReduxAction { } export interface PromisePayload { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any reject: any; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any resolve: any; } @@ -1302,6 +1306,8 @@ export interface ApplicationPayload { export interface WorkspaceDetails { workspace: Workspace; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any applications: any[]; } diff --git a/app/client/src/ce/constants/messages.ts b/app/client/src/ce/constants/messages.ts index c5775ce571..7fce411506 100644 --- a/app/client/src/ce/constants/messages.ts +++ b/app/client/src/ce/constants/messages.ts @@ -1,9 +1,8 @@ import type { PageErrorMessageProps } from "pages/common/ErrorPages/Components/PageErrorMessage"; -export function createMessage( - format: (...strArgs: any[]) => string, - ...args: any[] -) { +export // TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function createMessage(format: (...strArgs: any[]) => string, ...args: any[]) { return format(...args); } diff --git a/app/client/src/ce/entities/DataTree/actionTriggers.ts b/app/client/src/ce/entities/DataTree/actionTriggers.ts index 14e0ba7e15..02bcec021c 100644 --- a/app/client/src/ce/entities/DataTree/actionTriggers.ts +++ b/app/client/src/ce/entities/DataTree/actionTriggers.ts @@ -124,6 +124,8 @@ export type ClearStoreActionDescription = ActionDescriptionInterface< export type DownloadActionDescription = ActionDescriptionInterface< { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any data: any; name: string; type: string; @@ -191,6 +193,8 @@ export type StopWatchingCurrentLocationDescription = ActionDescriptionInterface< >; export type ConfirmationModalDescription = ActionDescriptionInterface< + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any Record | undefined, "CONFIRMATION_MODAL" >; diff --git a/app/client/src/ce/entities/DataTree/dataTreeAction.ts b/app/client/src/ce/entities/DataTree/dataTreeAction.ts index 5f973d5e83..ede7b85838 100644 --- a/app/client/src/ce/entities/DataTree/dataTreeAction.ts +++ b/app/client/src/ce/entities/DataTree/dataTreeAction.ts @@ -12,6 +12,8 @@ import type { export const generateDataTreeAction = ( action: ActionData, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any editorConfig: any[], dependencyConfig: DependencyMap = {}, ): { diff --git a/app/client/src/ce/entities/DataTree/dataTreeJSAction.ts b/app/client/src/ce/entities/DataTree/dataTreeJSAction.ts index 2eb9818c94..172a9e2a7c 100644 --- a/app/client/src/ce/entities/DataTree/dataTreeJSAction.ts +++ b/app/client/src/ce/entities/DataTree/dataTreeJSAction.ts @@ -19,6 +19,8 @@ export const generateDataTreeJSAction = ( const meta: Record = {}; const dynamicBindingPathList = []; const bindingPaths: Record = {}; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const variableList: Record = {}; const variables = js.config?.variables; const listVariables: Array = []; @@ -40,6 +42,8 @@ export const generateDataTreeJSAction = ( const dependencyMap: DependencyMap = {}; dependencyMap["body"] = []; const actions = js.config.actions; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const actionsData: Record = {}; if (actions) { for (let i = 0; i < actions.length; i++) { diff --git a/app/client/src/ce/entities/DataTree/dataTreeModuleInstance.ts b/app/client/src/ce/entities/DataTree/dataTreeModuleInstance.ts index f79e1ab720..82d18d6fa0 100644 --- a/app/client/src/ce/entities/DataTree/dataTreeModuleInstance.ts +++ b/app/client/src/ce/entities/DataTree/dataTreeModuleInstance.ts @@ -3,7 +3,8 @@ import type { ModuleInstance } from "@appsmith/constants/ModuleInstanceConstants export const generateModuleInstance = ( // eslint-disable-next-line @typescript-eslint/no-unused-vars moduleInstance: ModuleInstance, - // eslint-disable-next-line @typescript-eslint/no-unused-vars + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any moduleInstanceEntities: any, ) => { return { diff --git a/app/client/src/ce/entities/DataTree/types.ts b/app/client/src/ce/entities/DataTree/types.ts index 317002a8da..d91fdc5b23 100644 --- a/app/client/src/ce/entities/DataTree/types.ts +++ b/app/client/src/ce/entities/DataTree/types.ts @@ -20,6 +20,8 @@ import type { LayoutSystemTypes } from "layoutSystems/types"; import type { Module } from "@appsmith/constants/ModuleConstants"; import type { ModuleInstance } from "@appsmith/constants/ModuleInstanceConstants"; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export type ActionDispatcher = (...args: any[]) => ActionDescription; export const ENTITY_TYPE = { @@ -97,6 +99,8 @@ export interface JSActionEntityConfig extends EntityConfig { } export interface JSActionEntity { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any [propName: string]: any; body?: string; ENTITY_TYPE: typeof ENTITY_TYPE.JSACTION; @@ -176,6 +180,8 @@ export interface WidgetEntityConfig widgetId: string; defaultMetaProps: Array; type: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any __setters?: Record; } @@ -187,6 +193,8 @@ export interface AppsmithEntity extends Omit { export interface DataTreeSeed { actions: ActionDataState; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any editorConfigs: Record; pluginDependencyConfig: Record; widgets: CanvasWidgetsReduxState; @@ -199,6 +207,8 @@ export interface DataTreeSeed { isMobile: boolean; moduleInputs: Module["inputsForm"]; moduleInstances: Record | null; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any moduleInstanceEntities: any; layoutSystemType: LayoutSystemTypes; loadingEntities: LoadingEntitiesState; diff --git a/app/client/src/ce/entities/IDE/constants.ts b/app/client/src/ce/entities/IDE/constants.ts index c762841b88..59aa3c3be1 100644 --- a/app/client/src/ce/entities/IDE/constants.ts +++ b/app/client/src/ce/entities/IDE/constants.ts @@ -126,6 +126,8 @@ export interface EntityItem { export type UseRoutes = Array<{ key: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any component: ComponentType; path: string[]; exact: boolean; diff --git a/app/client/src/ce/entities/URLRedirect/URLAssembly.test.ts b/app/client/src/ce/entities/URLRedirect/URLAssembly.test.ts index 9fdb8e309f..f9ae3bb8e4 100644 --- a/app/client/src/ce/entities/URLRedirect/URLAssembly.test.ts +++ b/app/client/src/ce/entities/URLRedirect/URLAssembly.test.ts @@ -141,6 +141,8 @@ describe(".getQueryStringfromObject", () => { test.each(cases.map((x) => [x.index, x.input, x.expected]))( "test case %d", (_, input, expected) => { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const result = getQueryStringfromObject(input as any); expect(result).toStrictEqual(expected); }, diff --git a/app/client/src/ce/entities/URLRedirect/URLAssembly.ts b/app/client/src/ce/entities/URLRedirect/URLAssembly.ts index 28f7885029..8bcdfd8cd7 100644 --- a/app/client/src/ce/entities/URLRedirect/URLAssembly.ts +++ b/app/client/src/ce/entities/URLRedirect/URLAssembly.ts @@ -18,6 +18,8 @@ export interface URLBuilderParams { suffix?: string; branch?: string; hash?: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any params?: Record; basePageId?: string | null; persistExistingParams?: boolean; @@ -86,9 +88,13 @@ const fetchQueryParamsToPersist = (persistExistingParams: boolean) => { if (persistExistingParams) { params = { ...existingParams }; } else { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any params = { branch, embed } as any; } // test param to make sure a query param is present in the URL during dev and tests + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any if ((window as any).Cypress) { params = { a: "b", ...params }; } diff --git a/app/client/src/ce/hooks/datasourceEditorHooks.tsx b/app/client/src/ce/hooks/datasourceEditorHooks.tsx index 806fa67982..aa8bd6d067 100644 --- a/app/client/src/ce/hooks/datasourceEditorHooks.tsx +++ b/app/client/src/ce/hooks/datasourceEditorHooks.tsx @@ -123,6 +123,8 @@ export const useHeaderActions = ( className={"t--generate-template"} isDisabled={!canGeneratePage} kind="secondary" + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any onClick={(e: any) => { e.stopPropagation(); e.preventDefault(); diff --git a/app/client/src/ce/pages/AdminSettings/config/general.tsx b/app/client/src/ce/pages/AdminSettings/config/general.tsx index 9427a7228e..9694bf8918 100644 --- a/app/client/src/ce/pages/AdminSettings/config/general.tsx +++ b/app/client/src/ce/pages/AdminSettings/config/general.tsx @@ -147,6 +147,8 @@ export const APPSMITH_ALLOWED_FRAME_ANCESTORS_SETTING: Setting = { ], }, format: formatEmbedSettings, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any parse: (value: { value: string; additionalData?: any }) => { // Retrieve values from local storage while switching to limit by url option const sources = isUndefined(value.additionalData) diff --git a/app/client/src/ce/pages/AdminSettings/config/types.ts b/app/client/src/ce/pages/AdminSettings/config/types.ts index 976f544ba4..889f6cbe19 100644 --- a/app/client/src/ce/pages/AdminSettings/config/types.ts +++ b/app/client/src/ce/pages/AdminSettings/config/types.ts @@ -55,7 +55,11 @@ export type Setting = ControlType & { id: string; category?: string; controlSubType?: SettingSubtype; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any format?: (value: any) => any; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any parse?: (value: any) => any; helpText?: string; label?: React.ReactNode; @@ -63,20 +67,32 @@ export type Setting = ControlType & { placeholder?: string; validate?: (value: string, setting?: Setting) => string | void; url?: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any children?: any; subCategory?: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any value?: any; text?: string; textSuffix?: React.ReactElement; action?: ( + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any dispatch: Dispatch>, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any settings?: Record, ) => void; sortOrder?: number; subText?: string; toggleText?: (value: boolean) => string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any isVisible?: (values?: Record) => boolean; isHidden?: boolean; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any isDisabled?: (values?: Record) => boolean; calloutType?: CalloutKind; advanced?: Setting[]; diff --git a/app/client/src/ce/pages/Applications/CreateNewAppsOption.test.tsx b/app/client/src/ce/pages/Applications/CreateNewAppsOption.test.tsx index 97f9290e98..2b1d0ac0a6 100644 --- a/app/client/src/ce/pages/Applications/CreateNewAppsOption.test.tsx +++ b/app/client/src/ce/pages/Applications/CreateNewAppsOption.test.tsx @@ -75,6 +75,8 @@ const defaultStoreState = { }; const mockStore = configureStore([]); describe("CreateNewAppsOption", () => { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any let store: any; it("Should not render skip button if no application is present", () => { store = mockStore(defaultStoreState); diff --git a/app/client/src/ce/pages/Applications/PrivateEmbedSettings.tsx b/app/client/src/ce/pages/Applications/PrivateEmbedSettings.tsx index d479f3a377..12cfbc2dca 100644 --- a/app/client/src/ce/pages/Applications/PrivateEmbedSettings.tsx +++ b/app/client/src/ce/pages/Applications/PrivateEmbedSettings.tsx @@ -1,4 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/no-unused-vars +// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any export const PrivateEmbedSettings = (props: any) => { return null; }; diff --git a/app/client/src/ce/pages/Applications/ResourceListLoader.tsx b/app/client/src/ce/pages/Applications/ResourceListLoader.tsx index 9d364b4ab8..af8eee80fa 100644 --- a/app/client/src/ce/pages/Applications/ResourceListLoader.tsx +++ b/app/client/src/ce/pages/Applications/ResourceListLoader.tsx @@ -20,6 +20,8 @@ function ResourceListLoader({ isMobile, resources }: ResourcesLoaderProps) { const resourcesToUse = resources?.length ? resources : DEAFULT_RESOURCES; return ( + {/* TODO: Fix this the next time the file is edited */} + {/* eslint-disable-next-line @typescript-eslint/no-explicit-any */} {resourcesToUse.map((resource: any) => { return ( diff --git a/app/client/src/ce/pages/Applications/index.tsx b/app/client/src/ce/pages/Applications/index.tsx index 09e81b4fdb..4eb181e91f 100644 --- a/app/client/src/ce/pages/Applications/index.tsx +++ b/app/client/src/ce/pages/Applications/index.tsx @@ -278,6 +278,8 @@ const AnvilTitleTag = ( export function LeftPaneSection(props: { heading: string; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any children?: any; isFetchingWorkspaces: boolean; isBannerVisible?: boolean; @@ -297,6 +299,8 @@ export function LeftPaneSection(props: { { name: getNextEntityName( "Untitled workspace ", + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any fetchedWorkspaces.map((el: any) => el.name), ), }, @@ -370,7 +374,8 @@ export const textIconStyles = (props: { color: string; hover: string }) => { export function WorkspaceMenuItem({ isFetchingWorkspaces, selected, - workspace, + workspace, // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any }: any) { const history = useHistory(); const location = useLocation(); @@ -400,6 +405,8 @@ export function WorkspaceMenuItem({ ); } +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const submitCreateWorkspaceForm = async (data: any, dispatch: any) => { const result = await createWorkspaceSubmitHandler(data, dispatch); return result; @@ -512,6 +519,8 @@ export const WorkspaceSelectorWrapper = styled.div` padding: 24px 10px 0; `; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export function ApplicationsSection(props: any) { const { activeWorkspaceId, applications, packages, workflows, workspaces } = props; @@ -739,6 +748,8 @@ export function ApplicationsSection(props: any) { createNewApplication( getNextEntityName( "Untitled application ", + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any applications.map((el: any) => el.name), ), workspaceId, @@ -946,6 +957,8 @@ export function ApplicationsSection(props: any) { ); } +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const ApplictionsMainPage = (props: any) => { const { searchKeyword } = props; const location = useLocation(); @@ -964,12 +977,16 @@ export const ApplictionsMainPage = (props: any) => { const isLicensePage = useRouteMatch("/license")?.isExact; const isBannerVisible = showBanner && (isHomePage || isLicensePage); + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any let workspaces: any; if (!isFetchingWorkspaces) { workspaces = fetchedWorkspaces; } else { workspaces = loadingUserWorkspaces.map( (loadingWorkspaces) => loadingWorkspaces.workspace, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any ) as any; } @@ -1075,6 +1092,8 @@ export interface ApplicationProps { fetchEntities: boolean; workspaceId: string | null; }) => void; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any workspaces: any; currentUser?: User; searchKeyword: string | undefined; @@ -1161,6 +1180,8 @@ export const mapStateToProps = (state: AppState) => ({ isReconnectModalOpen: getIsReconnectingDatasourcesModalOpen(state), }); +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const mapDispatchToProps = (dispatch: any) => ({ getAllWorkspaces: ({ fetchEntities, diff --git a/app/client/src/ce/pages/Editor/Explorer/Entity/getEntityProperties.ts b/app/client/src/ce/pages/Editor/Explorer/Entity/getEntityProperties.ts index 63b4bcc072..583a4204ed 100644 --- a/app/client/src/ce/pages/Editor/Explorer/Entity/getEntityProperties.ts +++ b/app/client/src/ce/pages/Editor/Explorer/Entity/getEntityProperties.ts @@ -84,11 +84,15 @@ enum ActionEntityPublicProperties { } const getActionBindings = ( + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any entity: any, entityProperties: EntityProperty[], entityType: string, entityName: string, ) => { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const config = (entityDefinitions.ACTION as any)(entity as any); entityProperties = Object.keys(config || {}) @@ -165,6 +169,8 @@ export const getEntityPropertiesMap: Record< string, ( entity: DataTreeEntityObject, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any entityProperties: any, entityType: string, entityName: string, diff --git a/app/client/src/ce/pages/Editor/Explorer/ModuleInstanceEntity.tsx b/app/client/src/ce/pages/Editor/Explorer/ModuleInstanceEntity.tsx index c14998526c..02f73105fd 100644 --- a/app/client/src/ce/pages/Editor/Explorer/ModuleInstanceEntity.tsx +++ b/app/client/src/ce/pages/Editor/Explorer/ModuleInstanceEntity.tsx @@ -1,5 +1,7 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const ExplorerModuleInstanceEntity = (props: any) => { return null; }; diff --git a/app/client/src/ce/pages/Upgrade/types.ts b/app/client/src/ce/pages/Upgrade/types.ts index 19411d51a1..88a7694bb5 100644 --- a/app/client/src/ce/pages/Upgrade/types.ts +++ b/app/client/src/ce/pages/Upgrade/types.ts @@ -13,6 +13,8 @@ export interface CarouselTrigger { export interface Carousel { triggers: CarouselTrigger[]; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any targets: any[]; design: | "split-left-trigger" diff --git a/app/client/src/ce/pages/common/ConvertEntityNotification.tsx b/app/client/src/ce/pages/common/ConvertEntityNotification.tsx index 424ad1f014..a9da82c8d3 100644 --- a/app/client/src/ce/pages/common/ConvertEntityNotification.tsx +++ b/app/client/src/ce/pages/common/ConvertEntityNotification.tsx @@ -1,4 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/no-unused-vars +// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any function ConvertEntityNotification(props: any) { return null; } diff --git a/app/client/src/ce/pages/common/PackageSearchItem.tsx b/app/client/src/ce/pages/common/PackageSearchItem.tsx index 97690014fb..f816ed4fc4 100644 --- a/app/client/src/ce/pages/common/PackageSearchItem.tsx +++ b/app/client/src/ce/pages/common/PackageSearchItem.tsx @@ -1,4 +1,6 @@ interface Props { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any searchedPackages: any; } diff --git a/app/client/src/ce/pages/workspace/InviteUsersForm.tsx b/app/client/src/ce/pages/workspace/InviteUsersForm.tsx index 4419789096..803a0fb2ac 100644 --- a/app/client/src/ce/pages/workspace/InviteUsersForm.tsx +++ b/app/client/src/ce/pages/workspace/InviteUsersForm.tsx @@ -167,7 +167,11 @@ const validateFormValues = (values: { } }; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any const validate = (values: any) => { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const errors: any = {}; if (!(values.users && values.users.length > 0)) { errors["users"] = createMessage(INVITE_USERS_VALIDATION_EMAILS_EMPTY); @@ -225,6 +229,8 @@ export function InviteUserText({ } export function CustomRolesRamp() { + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const [dynamicProps, setDynamicProps] = useState({}); const rampLinkSelector = getRampLink({ section: RampSection.WorkspaceShare, @@ -271,8 +277,12 @@ export function CustomRolesRamp() { ); } +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any function InviteUsersForm(props: any) { const [emailError, setEmailError] = useState(""); + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const [selectedOption, setSelectedOption] = useState([]); const showRampSelector = showProductRamps(RAMP_NAME.CUSTOM_ROLES); const canShowRamp = useSelector(showRampSelector); @@ -344,7 +354,9 @@ function InviteUsersForm(props: any) { const styledRoles = props.options && props.options.length > 0 ? props.options - : props.roles.map((role: any) => { + : // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any + props.roles.map((role: any) => { return { key: role.id, value: role.name?.split(" - ")[0], @@ -373,7 +385,11 @@ function InviteUsersForm(props: any) { }; const inviteUsersSubmitHandler = async ( + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any values: any, + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any dispatch: any, recaptchaToken?: string, ) => { @@ -410,6 +426,8 @@ function InviteUsersForm(props: any) { }; const captchaWrappedInviteUsersSubmitHandler = handleSubmit( + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any async (values: any, dispatch: any) => { try { if ( @@ -539,6 +557,8 @@ export const mapStateToProps = ( }; }; +// TODO: Fix this the next time the file is edited +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const mapDispatchToProps = (dispatch: any) => ({ fetchAllRoles: (workspaceId: string) => dispatch(fetchRolesForWorkspace(workspaceId)), diff --git a/app/client/src/ce/pages/workspace/Members.tsx b/app/client/src/ce/pages/workspace/Members.tsx index 6b730e3310..06905bc629 100644 --- a/app/client/src/ce/pages/workspace/Members.tsx +++ b/app/client/src/ce/pages/workspace/Members.tsx @@ -236,6 +236,8 @@ export default function MemberSettings(props: PageProps) { onOpenConfirmationModal(); }; + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any const onDeleteMember = (data?: any) => { if (!userToBeDeleted && !data) return null; dispatch( @@ -327,6 +329,8 @@ export default function MemberSettings(props: PageProps) { MEMBERS_TAB_TITLE(filteredData?.length, !isGACEnabled), ), accessor: "users", + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any Cell: function UserCell(props: any) { const member = props.cell.row.original; return ( @@ -352,6 +356,8 @@ export default function MemberSettings(props: PageProps) { { Header: "Resource", accessor: "resource", + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any Cell: function ResourceCell(cellProps: any) { return ( @@ -366,11 +372,15 @@ export default function MemberSettings(props: PageProps) { { Header: "Role", accessor: "permissionGroupName", + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any Cell: function DropdownCell(cellProps: any) { const data = cellProps.cell.row.original; const allRoles = useSelector(getAllRoles); const roles = allRoles - ? allRoles.map((role: any) => { + ? // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any + allRoles.map((role: any) => { return { key: role.id, value: role.name?.split(" - ")[0], @@ -400,6 +410,8 @@ export default function MemberSettings(props: PageProps) { roleChangingUserInfo.username === data.username } listHeight={400} + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any onSelect={(_value: string, option: any) => { dispatch( changeWorkspaceUserRole(workspaceId, option.key, data.username), @@ -435,6 +447,8 @@ export default function MemberSettings(props: PageProps) { { Header: "Actions", accessor: "actions", + // TODO: Fix this the next time the file is edited + // eslint-disable-next-line @typescript-eslint/no-explicit-any Cell: function DeleteCell(cellProps: any) { return (