Q:

Why jslint restrict number of characters in a line?

Some projects I'm working on have a jslint rule that restrict the number of characters in a line(usually is 100 characters). In some situation, it makes my javascript code look so ugly, but I believe they did that for some reasons. So, what are good reasons for applying that rule?

A:

Long lines in general are harder to read. Personally I can go up to 150 characters before reaching the edge of my code editor, but I could get more just by maximizing the window. But someone else might have a smaller screen or window in their environment. Enforcing about 100 as a recommended "don't go over this length" limit accomodates most people's ability to see the entire line of code without horizontal scrolling.

