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] False positive when var is used in @jsxFrag #2514

Open
Labels
accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or requestpackage: parserIssues related to @typescript-eslint/parser
@dbartholomae

Description

@dbartholomae
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I haveread the FAQ and my problem is not listed.

Repro

{extends: ["plugin:@typescript-eslint/recommended","plugin:react/recommended"],parser: "@typescript-eslint/parser",parserOptions: {project: "tsconfig.json",sourceType: "module",ecmaFeatures: {jsx: true,    }},rules: {"react/prop-types":0}}
/*@jsx MD *//*@jsxFrag Fragment */importMDfrom"..";import{Fragment}from".";<>Test</>;

Expected Result

This should lint just fine.

Actual Result

warning  'Fragment' is defined but never used  @typescript-eslint/no-unused-vars

Versions

packageversion
@typescript-eslint/eslint-plugin4.1.1-alpha.5
@typescript-eslint/parser4.1.1-alpha.5
TypeScript4.0.2
ESLint7.8.1
node12.18.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or requestpackage: parserIssues related to @typescript-eslint/parser

    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