Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Find numbers that should be extracted as constants in your JS (github.com/pgilad)
7 points by pgilad on Nov 8, 2014 | hide | past | favorite | 2 comments



Looks useful. Is this better implemented as an option of a linter?


I'm not aware of any linters applying this sort of logic in suggesting to extract numbers to their own declarations. One could also go as far as declaring strings and whatnot...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: