Skip to content

Commit f98e37e

Browse files
committed
Disable eslint rules where they are triggering
1 parent de03798 commit f98e37e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/@ember/-internals/metal/lib/chain-tags.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ function getChainTags(
7171
// prevent closures
7272
let segment: string, descriptor: any;
7373

74-
// eslint-disable-next-line no-constant-condition
7574
while (true) {
7675
let lastSegmentEnd = segmentEnd + 1;
7776
segmentEnd = path.indexOf('.', lastSegmentEnd);
@@ -127,6 +126,7 @@ function getChainTags(
127126

128127
// If the key is an alias, we need to bootstrap it
129128
if (descriptor !== undefined && typeof descriptor.altKey === 'string') {
129+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
130130
item[segment];
131131
}
132132
}
@@ -151,6 +151,7 @@ function getChainTags(
151151
// bootstrap the alias. This is because aliases, unlike other CPs, should
152152
// always be in sync with the aliased value.
153153
if (CHAIN_PASS_THROUGH.has(descriptor)) {
154+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
154155
current[segment];
155156
}
156157
break;

packages/@ember/-internals/utils/lib/guid.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export const GUID_KEY = intern(`__ember${Date.now()}`);
7070
separate the guid into separate namespaces.
7171
@return {String} the guid
7272
*/
73+
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
7374
export function generateGuid(obj: object, prefix = GUID_PREFIX): String {
7475
let guid = prefix + uuid().toString();
7576

0 commit comments

Comments
 (0)