Closed
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
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 |