solidjs-community / eslint-plugin-solid

Solid-specific linting rules for ESLint.
MIT License
209 stars 24 forks source link

Detect prefer-for in chain expressions #71

Closed aadito123 closed 1 year ago

aadito123 commented 1 year ago

If a .map is used on a ChainExpression, then the linter does not detect it.

Example: let array; ... {array?.map(() => <h1 />))

Just fixed it, and added test cases.

joshwilsonvu commented 1 year ago

Thanks, out in v0.10.0!