Skip to content

📎 Port no-unnecessary-template-expression from typescript-eslint #6988

@siketyan

Description

@siketyan

https://typescript-eslint.io/rules/no-unnecessary-template-expression/

This rule was called no-useless-template-literals in the past.
In terraform land it's the Interpolation-only expressions are deprecated warning.

Basically:

const MYSTR = "Hello";

const myComplicatedObject = {
  value: `${MYSTR}` // warning "no-useless-template-literals" -> change to value: MYSTR
}

Originally posted by @awoimbee in #6987

Want to contribute? Let us know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LinterArea: linterL-JavaScriptLanguage: JavaScript and super languagesS-FeatureStatus: new feature to implementS-Help-wantedStatus: you're familiar with the code base and want to help the project

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions