Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[restrict-template-expressions] should clarify what it means when it refers to a useful toString #6581

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issuedocumentationDocumentation ("docs") that needs adding/updating
@tom-seddon

Description

@tom-seddon

Before You File a Documentation Request Please Confirm You Have Done The Following...

Suggested Changes

Quoting the docs:

This rule reports on values used in a template literal string that aren't primitives and don't define a more useful .toString() method

But, as per#3538, it is by design that a definition of a more usefultoString is in fact ignored. The docs should ideally be updated to reflect this. Or perhaps just clarified? - clearly it's not just me that doesn't quite follow what the rules are.

Affected URL(s)

What's CRUD? The source code for the docs appears to be here, if that's any help:https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/restrict-template-expressions.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuedocumentationDocumentation ("docs") that needs adding/updating

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp