Skip to content

.map expressions directly under a Fragment are being ignored #106

Closed
@GiyoMoon

Description

@GiyoMoon

Describe the bug
The plugin doesn't warn about using .map on a signal if the expression is directly under a fragment in the jsx.

To Reproduce

git clone https://github.com/GiyoMoon/solidjs-eslint-map-bug.git
cd solidjs-eslint-map-bug
pnpm install

Open the ./src/App.tsx file in your IDE which is running eslint. You should notice that only one of the two .map expressions are being noticed by eslint.

Expected behavior
Both .map expression should give eslint warnings.

Screenshots
image

Environment (please complete the following information):

  • OS: MacOS Venture 13.5
  • Node version (node --version): v18.17.0
  • eslint-plugin-solid version (npm list eslint-plugin-solid/yarn why eslint-plugin-solid): 0.13.0
  • eslint version (npm list eslint/yarn why eslint): 8.47.0
  • I would be willing to contribute a PR to fix this issue

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions