We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c3db3 commit 9153654Copy full SHA for 9153654
packages/eslint-plugin/src/utils/ast-utils.ts
@@ -293,16 +293,6 @@ export function extractReturnProperties(
293
) {
294
properties.push(prop.key.value)
295
}
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
306
// Handle computed property keys with template literals: { [`name`]: ... }
307
else if (
308
prop.computed &&
0 commit comments