Skip to content

Commit 95a58c9

Browse files
committed
chore(eslint-config): re-enable no-duplicate-type-constituents rule
1 parent 7756845 commit 95a58c9

File tree

7 files changed

+17
-27
lines changed

7 files changed

+17
-27
lines changed

configs/eslint-config-compass/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const extraTsRules = {
2626
'@typescript-eslint/no-explicit-any': 'warn',
2727
'@typescript-eslint/no-base-to-string': 'warn',
2828
'@typescript-eslint/unbound-method': 'warn',
29-
'@typescript-eslint/no-duplicate-type-constituents': 'warn',
3029
'@typescript-eslint/no-unsafe-declaration-merging': 'warn',
3130
};
3231

packages/compass-aggregations/src/modules/pipeline-builder/pipeline-ai.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,14 +430,14 @@ export const cancelAIPipelineGeneration = (): PipelineBuilderThunkAction<
430430
};
431431
};
432432

433-
type resetIsAggregationGeneratedFromQueryAction = {
433+
type ResetIsAggregationGeneratedFromQueryAction = {
434434
type: AIPipelineActionTypes.resetIsAggregationGeneratedFromQuery;
435435
};
436436

437437
export const resetIsAggregationGeneratedFromQuery =
438438
(): PipelineBuilderThunkAction<
439439
void,
440-
resetIsAggregationGeneratedFromQueryAction
440+
ResetIsAggregationGeneratedFromQueryAction
441441
> => {
442442
return (dispatch) => {
443443
dispatch({
@@ -477,9 +477,8 @@ export type AIPipelineAction =
477477
| AIPipelineFailedAction
478478
| LoadGeneratedPipelineAction
479479
| PipelineGeneratedFromQueryAction
480-
| LoadGeneratedPipelineAction
481480
| CancelAIPipelineGenerationAction
482-
| resetIsAggregationGeneratedFromQueryAction
481+
| ResetIsAggregationGeneratedFromQueryAction
483482
| ShowInputAction
484483
| HideInputAction
485484
| ChangeAIPromptTextAction;
@@ -567,7 +566,7 @@ const aiPipelineReducer: Reducer<AIPipelineState, AIPipelineAction> = (
567566
}
568567

569568
if (
570-
isAction<resetIsAggregationGeneratedFromQueryAction>(
569+
isAction<ResetIsAggregationGeneratedFromQueryAction>(
571570
action,
572571
AIPipelineActionTypes.resetIsAggregationGeneratedFromQuery
573572
)

packages/compass-aggregations/src/modules/pipeline-builder/stage-editor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ export type StageEditorAction =
171171
| ChangeStageValueAction
172172
| ChangeStageOperatorAction
173173
| ChangeStageCollapsedAction
174-
| ChangeStageOperatorAction
175174
| ChangeStageDisabledAction
176175
| StageAddAction
177176
| StageRemoveAction

packages/compass-components/src/components/workspace-container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function WorkspaceContainer({
120120
children:
121121
| React.ReactNode
122122
| ((
123-
scrollTriggerRef: (node?: Element | null | undefined) => void
123+
scrollTriggerRef: (node?: Element | null) => void
124124
) => React.ReactNode);
125125
}) {
126126
const darkMode = useDarkMode();

packages/compass-telemetry/src/telemetry-events.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ type AggregationEditedEvent = ConnectionScopedEvent<{
205205
| 'stage_renamed'
206206
| 'stage_added'
207207
| 'stage_deleted'
208-
| 'stage_reordered'
209-
| 'stage_added';
208+
| 'stage_reordered';
210209

211210
/**
212211
* The name of the stage edited.

packages/connection-storage/src/compass-renderer-connection-storage.ts

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ class CompassRendererConnectionStorage implements ConnectionStorage {
5353
return ipc;
5454
}
5555

56-
loadAll(
57-
options?: { signal?: AbortSignal | undefined } | undefined
58-
): Promise<ConnectionInfo[]> {
56+
loadAll(options?: {
57+
signal?: AbortSignal | undefined;
58+
}): Promise<ConnectionInfo[]> {
5959
return this.ipc.loadAll(options);
6060
}
6161

@@ -86,9 +86,9 @@ class CompassRendererConnectionStorage implements ConnectionStorage {
8686
return await this.ipc.getAutoConnectInfo(autoConnectPreferences);
8787
}
8888

89-
getLegacyConnections(
90-
options?: { signal?: AbortSignal | undefined } | undefined
91-
): Promise<{ name: string }[]> {
89+
getLegacyConnections(options?: {
90+
signal?: AbortSignal | undefined;
91+
}): Promise<{ name: string }[]> {
9292
return this.ipc.getLegacyConnections(options);
9393
}
9494

@@ -100,14 +100,10 @@ class CompassRendererConnectionStorage implements ConnectionStorage {
100100
return this.ipc.deserializeConnections(args);
101101
}
102102

103-
exportConnections(
104-
args?:
105-
| {
106-
options?: ExportConnectionOptions | undefined;
107-
signal?: AbortSignal | undefined;
108-
}
109-
| undefined
110-
): Promise<string> {
103+
exportConnections(args?: {
104+
options?: ExportConnectionOptions | undefined;
105+
signal?: AbortSignal | undefined;
106+
}): Promise<string> {
111107
return this.ipc.exportConnections(args);
112108
}
113109

packages/my-queries-storage/src/pipeline-storage-schema.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ type StoredLegacyPipelineStage = {
2626
stage: string;
2727
};
2828

29-
function savedPipelineToText(
30-
pipeline?: StoredLegacyPipelineStage[] | undefined
31-
): string {
29+
function savedPipelineToText(pipeline?: StoredLegacyPipelineStage[]): string {
3230
const stages =
3331
pipeline?.map(({ stageOperator, isEnabled, stage }) => {
3432
return stageToString(stageOperator, stage, !isEnabled);

0 commit comments

Comments
 (0)