-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspackage: ast-specIssues related to @typescript-eslint/ast-specIssues related to @typescript-eslint/ast-spec
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Relevant Package
ast-spec
Playground Link
Repro Code
type value = TSESTree.JSXAttribute['value']
// ^?
ESLint Config
No response
tsconfig
No response
Expected Result
type value = TSESTree.JSXAttribute['value']
// ^? type value = TSESTree.JSXElement | TSESTree.JSXExpression | TSESTree.Literal | null
Actual Result
type value = TSESTree.JSXAttribute['value']
// ^? type value = TSESTree.JSXExpression | TSESTree.Literal | null
Additional Info
ESLint Stylistic has JSXAttribute > JSXElement
in the rule listener: source code. this is not yet supported by ast-spec
:
typescript-eslint/packages/ast-spec/src/jsx/JSXAttribute/spec.ts
Lines 8 to 12 in 920f909
export interface JSXAttribute extends BaseNode { | |
type: AST_NODE_TYPES.JSXAttribute; | |
name: JSXIdentifier | JSXNamespacedName; | |
value: JSXExpression | Literal | null; | |
} |
This is the code that produces JSXAttribute > JSXElement
:
<App horror=<div /> />
Versions
package | version |
---|---|
@typescript-eslint/typescript-estree |
6.19.0 |
TypeScript |
5.3.3 |
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspackage: ast-specIssues related to @typescript-eslint/ast-specIssues related to @typescript-eslint/ast-spec