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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions