jsx-ast-utils
jsx-ast-utils copied to clipboard
AST utility module for statically analyzing JSX
Occurs with most recent version 3.3.3. Using `@typescript-eslint/parser`. Repros: ``` ``` ``` ```
[Info - 2:53:24 AM] ESLint server is starting. [Info - 2:53:25 AM] ESLint server running in node v20.19.0 [Info - 2:53:25 AM] ESLint server is running. [Info - 2:53:26 AM]...
getPropValue(getProp(node.attributes, 'style')) for below code is returning { display: 'none' } where as it should return with expression like { display: (slideIndex === 0) ? "block" : "none" }. ``
I ran into this error prompting me to open a ticket:  ``` Running eslint ... The prop value with an expression type of JSXEmptyExpression could not be resolved. Please...
As @ljharb mentioned in https://github.com/jsx-eslint/jsx-ast-utils/pull/114#issuecomment-1869612048, he's open for a breaking change right now > if eslint forced a breaking change, at that time Iād reevaluate what we supported --- BREAKING...
I am trying to use eslint-plugin-jsx-a11y to lint [Astro](https://astro.build/) components via https://github.com/ota-meshi/eslint-plugin-astro but the JSX parser fails with: ```ts > pnpm eslint src Oops! Something went wrong! :( ESLint: 9.18.0...
ERROR The prop value with an expression type of TSInstantiationExpression could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately.
This lib is now completely dependency free š„³š