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

Guess variable type by it's name and check in assignment #6

Open
vitalets opened this issue May 9, 2017 · 1 comment
Open

Guess variable type by it's name and check in assignment #6

vitalets opened this issue May 9, 2017 · 1 comment

Comments

@vitalets
Copy link
Owner

vitalets commented May 9, 2017

For some variable names it is possible to guess type and check in assignment.
For example, this code could show warning:

const usersCount = '10';

Guessing rules:
Number

  • ends with count, length

String

  • ends with str

Boolean

  • starts with is, has
@gajus
Copy link

gajus commented May 31, 2018

As long as this is configurable, it would a cool feature, esp. with in the Count example.

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