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

[no-unused-vars] Wrong position reported #4910

Closed
Assignees
armano2
Labels
accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@bachorp

Description

@bachorp

Repro

{"parser":"@typescript-eslint/parser","plugins": ["@typescript-eslint"    ],"rules": {"@typescript-eslint/no-unused-vars":"error"    }}
functionfoo(x:null){returnx}letx=nullx=foo(x)

Expected Result

7:1  error  'x' is assigned a value but never used.  @typescript-eslint/no-unused-varsx = foo(x)^ error here

Actual Result

7:9  error  'x' is assigned a value but never used.  @typescript-eslint/no-unused-varsx = foo(x)        ^ error here

Versions

packageversion
@typescript-eslint/eslint-plugin5.22.0
@typescript-eslint/parser5.22.0
TypeScript4.6.2
ESLint8.14.0
node16.12.0

Metadata

Metadata

Assignees

Labels

accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: 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