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

[ban-ts-comment] add option to allow a ts-comment if there is a description with it #2093

Closed
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin rulegood first issueGood for newcomershas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@dimitropoulos

Description

@dimitropoulos

[Feature Request] @typescript-eslint/require-ts-comment-description

Rule Details

Examples of 👎incorrect code for this rule:

//@ts-expect-errorconstx:string=1;//@ts-ignoreconstx:string=1;

Examples of 👍correct code for this rule:

//@ts-expect-error because this code is testing a compiler I'm writingconstx:string=1;//@ts-ignore: because this code is testing a compiler I'm writingconstx:string=1;

Options

{"rules": {"@typescript-eslint/require-ts-comment-description":"error"  }}

The configuration looks like this:

interfaceOptions{'ts-expect-error'?:boolean;'ts-ignore'?:boolean;'ts-nocheck'?:boolean;'ts-check'?:boolean;}constdefaultOptions:Options={'ts-expect-error':true,'ts-ignore':true,'ts-nocheck':true,'ts-check':true,};

Additional Info

There is a similar rule inhttps://mysticatea.github.io/eslint-plugin-eslint-comments/rules/require-description.html.

Ithought typescript-eslint had such a rule, but apparently not. My apologies if I just missed it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement: plugin rule optionNew rule option for an existing eslint-plugin rulegood first issueGood for newcomershas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    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