Skip to content

Commit 898b46d

Browse files
Update SublimeLinter.sublime-settings
The Airbnb guide states: "Strings longer than 80 characters should be written across multiple lines using string concatenation." I propose to add the maxlen option to enforce this rule: http://www.jshint.com/docs/options/#maxlen However maxlen enforces the entire source code, not just a line of String. I would like to hear your thoughts on whether that is a beneficial enforcement to keep JS code at a set width.
1 parent 3a6aff1 commit 898b46d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

linters/SublimeLinter/SublimeLinter.sublime-settings

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
"undef": true,
6363

6464
// Warn when variables are defined but never used.
65-
"unused": true
65+
"unused": true,
66+
67+
// Enforce line length to 80 characters
68+
"maxlen": 80
6669
}
6770
}

0 commit comments

Comments
 (0)