Skip to content

Change Request: Enable JSX reference tracking #19495

@nzakas

Description

@nzakas

ESLint version

HEAD

What problem do you want to solve?

ESLint currently doesn't track JSX references. For example:

import { Card } from "./card.jsx";

export function createCard(name) {
    return <Card name={name} />;
}

Right now, ESLint doesn't know that <Card> is a reference to the Card import.

What do you think is the correct solution?

Enable JSX reference tracking in eslint-scope. This has already been added to eslint-scope but has not been enabled in ESLint.

Participation

  • I am willing to submit a pull request for this change.

Additional comments

Tracking for v10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionbreakingThis change is backwards-incompatiblecoreRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLint

    Type

    No type

    Projects

    Status

    Complete

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions