lilactown / helix

A simple, easy to use library for React development in ClojureScript.
Eclipse Public License 2.0
627 stars 52 forks source link

Provide the ability to mark symbols as not hooks #88

Open lilactown opened 3 years ago

rome-user commented 1 year ago

Does this mean preventing the linter from assuming every symbol starting with use is not a hook? If so, then I expect we can achieve this with metadata, such as ^:not-hook.

In particular, here is where change can be made https://github.com/lilactown/helix/blob/34811a9a9d6612d3b08495cbea7c311d0215fe48/src/helix/impl/analyzer.clj#L99-L102

We can check the metadata of the list and/or the first element of the list.