Skip to content

Commit 9153654

Browse files
Update packages/eslint-plugin/src/utils/ast-utils.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent f0c3db3 commit 9153654

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/eslint-plugin/src/utils/ast-utils.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,16 +293,6 @@ export function extractReturnProperties(
293293
) {
294294
properties.push(prop.key.value)
295295
}
296-
// Handle template literal keys without interpolations: { `name`: ... }
297-
else if (
298-
prop.key.type === 'TemplateLiteral' &&
299-
prop.key.expressions.length === 0
300-
) {
301-
const value = prop.key.quasis[0]?.value.cooked
302-
if (value) {
303-
properties.push(value)
304-
}
305-
}
306296
// Handle computed property keys with template literals: { [`name`]: ... }
307297
else if (
308298
prop.computed &&

0 commit comments

Comments
 (0)