Skip to content

Commit a63d62f

Browse files
committed
chore: fix linter errors
1 parent 2ab12cf commit a63d62f

File tree

50 files changed

+415
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+415
-70
lines changed

src/apitypes/graphql/graphql.changes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const compareDocuments = async (
8080
return { operationChanges: [], tags: new Set() }
8181
}
8282

83-
aggregateDiffsWithRollup(merged, DIFF_META_KEY, DIFFS_AGGREGATED_META_KEY)
83+
aggregateDiffsWithRollup(merged, DIFF_META_KEY, DIFFS_AGGREGATED_META_KEY)
8484

8585
const { currentGroup, previousGroup } = ctx
8686

src/apitypes/rest/rest.changes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
} from '../../utils'
2828
import {
2929
aggregateDiffsWithRollup,
30-
apiDiff,
30+
apiDiff,
3131
breaking,
3232
Diff,
3333
DIFF_META_KEY,
@@ -118,7 +118,7 @@ export const compareDocuments = async (
118118
return { operationChanges: [], tags: new Set() }
119119
}
120120

121-
aggregateDiffsWithRollup(merged, DIFF_META_KEY, DIFFS_AGGREGATED_META_KEY)
121+
aggregateDiffsWithRollup(merged, DIFF_META_KEY, DIFFS_AGGREGATED_META_KEY)
122122

123123
const tags = new Set<string>()
124124
const operationChanges: OperationChanges[] = []

src/components/compare/compare.operations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async function compareCurrentApiType(
142142
const pairedDocs = await calculatePairedDocs(operationPairs, pairContext)
143143
const [operationChanges, uniqueDiffsForDocPairs, tags] = await comparePairedDocs(operationsMap, pairedDocs, apiBuilder, pairContext)
144144
// Duplicates could happen in rare case when document for added/deleted operation was mapped to several documents in other version
145-
const uniqueOperationChanges = pairedDocs.length === 1 ? operationChanges
145+
const uniqueOperationChanges = pairedDocs.length === 1 ? operationChanges
146146
: removeObjectDuplicates(
147147
operationChanges,
148148
(item) => `${item.apiType}:${item.operationId ?? ''}:${item.previousOperationId ?? ''}`,
@@ -151,7 +151,7 @@ async function compareCurrentApiType(
151151
// We only need to additionally deduplicate diffs if there are multiple document pairs
152152
// because diffs coming from the same apiDiff call are already deduplicated in comparePairedDocs
153153
// This is performance optimization for common case when there is only one document pair
154-
const uniqueDiffs = uniqueDiffsForDocPairs.length === 1 ? Array.from(uniqueDiffsForDocPairs[0])
154+
const uniqueDiffs = uniqueDiffsForDocPairs.length === 1 ? Array.from(uniqueDiffsForDocPairs[0])
155155
: removeObjectDuplicates(uniqueDiffsForDocPairs.flatMap(set => Array.from(set)), calculateDiffId)
156156
const changesSummary = calculateChangeSummary(uniqueDiffs)
157157
const numberOfImpactedOperations = calculateTotalImpactedSummary(

src/components/compare/compare.utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ function removeRedundantPartialPairs<T extends [object | undefined, object | und
132132
return tuples.filter(([a, b]) => {
133133
const isPartial = a === undefined || b === undefined
134134
if (!isPartial) return true // Keep all complete pairs
135-
136-
// For partial pairs, only keep if there's no corresponding complete pair
135+
136+
// For partial pairs, only keep if there's no corresponding complete pair
137137
// with the defined value at corresponding position
138-
return a === undefined
138+
return a === undefined
139139
? !completeAtPosition[1].has(b!)
140140
: !completeAtPosition[0].has(a)
141141
})

test/declarative-changes-in-rest-package-version.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ describe('Number of declarative changes in rest package version test', () => {
8989
expect(result).toEqual(changesSummaryMatcher({ [BREAKING_CHANGE_TYPE]: 1 }))
9090
expect(result).toEqual(numberOfImpactedOperationsMatcher({ [BREAKING_CHANGE_TYPE]: 1 }))
9191
})
92-
})
92+
})

0 commit comments

Comments
 (0)