-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionbreakingThis change is backwards-incompatibleThis change is backwards-incompatiblecoreRelates to ESLint's core APIs and featuresRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLint
Description
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.
fregante and silverwindkarlhorkykarlhorky
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionbreakingThis change is backwards-incompatibleThis change is backwards-incompatiblecoreRelates to ESLint's core APIs and featuresRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLint