Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide the ability to mark symbols as not hooks #88

Open
lilactown opened this issue Aug 10, 2021 · 1 comment
Open

Provide the ability to mark symbols as not hooks #88

lilactown opened this issue Aug 10, 2021 · 1 comment

Comments

@lilactown
Copy link
Owner

No description provided.

@rome-user
Copy link
Contributor

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

(defn hook-expr?
[x]
(when (list? x)
(hook? (first x))))

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants