The id-length rule only works on variable declarations, not on assignments.
If you want something that works on assignments, I'd suggest creating a
custom rule.

-N
On Wed, Jul 27, 2016 at 12:30 AM Saqib Shamsi <[email protected]>
wrote:

> Hi,
>
> I have some programs in which variables are created without using keywords
> like 'var', 'let', 'const'. Below is a snippet of a sample program.
>
> i=readline().split(' ')
> print(Math.ceil(i[0]/i[2])*Math.ceil(i[1]))
>
>
> In the program above, the variable 'i' should have flagged a warning of
> 'id-length' since the minimum identifier length that I've set in the
> configuration file is 3. However, this doesn't happen. Can someone suggest
> a workaround?
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ESLint" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to