4.4 Column limit: 80
JavaScript code has a column limit of 80 characters. Except as noted below, anyline that would exceed this limit must be line-wrapped, as explained in??.
Exceptions:
goog.module
,goog.require
andgoog.requireType
statements (see?? and ??).- ES module
import
andexport from
statements (see?? and ??). - Lines where obeying the column limit is not possible or would hinderdiscoverability. Examples include:
- A long URL which should be clickable in source.
- A shell command intended to be copied-and-pasted.
- A long string literal which may need to be copied or searched for wholly(e.g., a long file path).