Skip to content

solid/reactivity warning while directly mutating a createMutable state #99

Open
@seahindeniz

Description

@seahindeniz

Describe the bug

When I try to update a property to trigger an update, ESLint gives a warning
image

To Reproduce

Using recommended setup and following the documentation about createMutable suffice to reproduce
https://www.solidjs.com/docs/latest/api#createmutable

Expected behavior
No warning for directly mutating. At least from the expected updating facilitators that I specifically declare to update the main state. Like in the state-action principle.

Screenshots

Environment (please complete the following information):

  • OS: [e.g. Mac OS 11, Windows 10] mac 13
  • Node version (node --version): 14
  • eslint-plugin-solid version (npm list eslint-plugin-solid/yarn why eslint-plugin-solid): 0.12.1
  • eslint version (npm list eslint/yarn why eslint):8.42.0

Additional context

  • I would be willing to contribute a PR to fix this issue (probably, although understanding the structure might take a while)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreactivity v2To be addressed in the rewrite of the solid/reactivity rule

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions