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
Only functions names can have verbs (get, set, create, remove) #617
Comments
Have you actually experienced this being a problem in the wild? |
What if it's a factory? const getRandom = random({{from: 0, to: 10}); |
|
Yep, twice today, you just saw it too Line 22: refined-github/refined-github@12711ca#diff-f12ecb2375f1a7fe299ae1d0f3a1e55dR22 |
But how do we statically detect that? It will only work if you actually call |
TypeScript? |
Related: #347 |
@fregante Can you try proposing this over at https://github.com/typescript-eslint/typescript-eslint first? If they, decline it, we can consider adding it here. |
I opened a more generic issue there |
It doesn't look like it will be accepted |
It's a good idea, but like impossible to implement without type info. |
Issue rightfully rejected there: I think this could be implemented in a flat config with |
OK
NOT OK
There are many verbs that should not be part of non-function variables, but I think the most common ones are enough:
Maybe not:
The text was updated successfully, but these errors were encountered: