Skip to content

Commit 36032ca

Browse files
joker23claude
andcommitted
refactor: revert lint fixes (isolated to PR #1316)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a4fc59f commit 36032ca

24 files changed

Lines changed: 60 additions & 60 deletions

File tree

packages/sdk/browser/contract-tests/entity/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line prettier/prettier
12
import './style.css';
23
import TestHarnessWebSocket from './TestHarnessWebSocket';
34

packages/shared/common/__tests__/internal/events/EventSender.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ describe('given an event sender', () => {
218218
eventSender.sendEventData(LDEventType.AnalyticsEvents, testEventData1),
219219
);
220220

221-
const errorMessage = 'Received error 413 for event posting - giving up permanently';
221+
const errorMessage = `Received error 413 for event posting - giving up permanently`;
222222

223223
const { status, error } = eventSenderResult;
224224

packages/shared/common/__tests__/subsystem/DataSystem/CompositeDataSource.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ it('falls back to FDv1 synchronizers when FDv1 fallback error is reported', asyn
409409
DataSourceState.Closed,
410410
new LDFlagDeliveryFallbackError(
411411
DataSourceErrorKind.ErrorResponse,
412-
'Response header indicates to fallback to FDv1',
412+
`Response header indicates to fallback to FDv1`,
413413
403,
414414
),
415415
);
@@ -656,7 +656,7 @@ it('it reports DataSourceState Closed when all synchronizers report Closed with
656656
expect(statusCallback).toHaveBeenNthCalledWith(5, DataSourceState.Interrupted, expect.anything()); // sync2 closed with unrecoverable error
657657
expect(statusCallback).toHaveBeenNthCalledWith(6, DataSourceState.Closed, {
658658
name: 'ExhaustedDataSources',
659-
message: 'CompositeDataSource has exhausted all configured initializers and synchronizers.',
659+
message: `CompositeDataSource has exhausted all configured initializers and synchronizers.`,
660660
});
661661
});
662662

packages/shared/common/src/AttributeReference.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ export default class AttributeReference {
110110
for (let index = 0; index < components.length; index += 1) {
111111
const component = components[index];
112112
if (
113-
current !== null
114-
&& current !== undefined
113+
current !== null &&
114+
current !== undefined &&
115115
// See https://eslint.org/docs/rules/no-prototype-builtins
116-
&& Object.prototype.hasOwnProperty.call(current, component)
117-
&& typeof current === 'object'
116+
Object.prototype.hasOwnProperty.call(current, component) &&
117+
typeof current === 'object' &&
118118
// We do not want to allow indexing into an array.
119-
&& !Array.isArray(current)
119+
!Array.isArray(current)
120120
) {
121121
current = current[component];
122122
} else {
@@ -140,8 +140,8 @@ export default class AttributeReference {
140140

141141
public compare(other: AttributeReference) {
142142
return (
143-
this.depth === other.depth
144-
&& this._components.every((value, index) => value === other.getComponent(index))
143+
this.depth === other.depth &&
144+
this._components.every((value, index) => value === other.getComponent(index))
145145
);
146146
}
147147

packages/shared/common/src/ContextFilter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ export default class ContextFilter {
141141
kind: string,
142142
redactAnonymousAttributes: boolean,
143143
): any {
144-
const redactAllAttributes
145-
= this._allAttributesPrivate || (redactAnonymousAttributes && single.anonymous === true);
144+
const redactAllAttributes =
145+
this._allAttributesPrivate || (redactAnonymousAttributes && single.anonymous === true);
146146
const { cloned, excluded } = cloneWithRedactions(
147147
single,
148148
this._getAttributesToFilter(context, single, kind, redactAllAttributes),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export * from './LDContext';
21
export * from './LDContextCommon';
32
export * from './LDContextMeta';
43
export * from './LDMultiKindContext';
54
export * from './LDSingleKindContext';
65
export * from './LDUser';
6+
export * from './LDContext';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export * from './context';
2-
export * from './data';
3-
export * from './integrations';
42
export * from './logging';
3+
export * from './data';
54
export * from './options';
65
export * from './platform';
76
export * as subsystem from './subsystem';
7+
export * from './integrations';

packages/shared/common/src/api/subsystem/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { LDStreamProcessor } from './LDStreamProcessor';
77
export {
88
DataSource,
99
DataSourceState,
10-
LDContextDeduplicator,
1110
LDDataSourceFactory,
12-
LDDeliveryStatus,
1311
LDEventProcessor,
12+
LDContextDeduplicator,
1413
LDEventSender,
15-
LDEventSenderResult,
14+
LDDeliveryStatus,
1615
LDEventType,
16+
LDEventSenderResult,
1717
LDStreamProcessor,
1818
};

packages/shared/common/src/datasource/Backoff.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export class DefaultBackoff {
6868
// If the last successful connection was active for more than the RESET_INTERVAL, then we
6969
// return to the initial retry delay.
7070
if (
71-
this._activeSince !== undefined
72-
&& timeStampMs - this._activeSince > this._retryResetIntervalMillis
71+
this._activeSince !== undefined &&
72+
timeStampMs - this._activeSince > this._retryResetIntervalMillis
7373
) {
7474
this._retryCount = 0;
7575
}

packages/shared/common/src/datasource/CompositeDataSource.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class CompositeDataSource implements DataSource {
147147

148148
// this error indicates we should fallback to only using FDv1 synchronizers
149149
if (err instanceof LDFlagDeliveryFallbackError) {
150-
this._logger?.debug('Falling back to FDv1');
150+
this._logger?.debug(`Falling back to FDv1`);
151151
this._syncFactories = this._fdv1Synchronizers;
152152
}
153153
}
@@ -190,7 +190,7 @@ export class CompositeDataSource implements DataSource {
190190
transition: 'stop',
191191
err: {
192192
name: 'ExhaustedDataSources',
193-
message: 'CompositeDataSource has exhausted all configured initializers and synchronizers.',
193+
message: `CompositeDataSource has exhausted all configured initializers and synchronizers.`,
194194
},
195195
});
196196
}

0 commit comments

Comments
 (0)