disallowTrailingWhitespace

Requires all lines to end on a non-whitespace character

Types: Boolean or String

Values:

  • true
  • "ignoreEmptyLines": (default: false) allow whitespace on empty lines

JSHint: trailing

Example

"disallowTrailingWhitespace": true
Valid
var foo = "blah blah";
Invalid
var foo = "blah blah"; //<-- whitespace character here
Valid for true
foo = 'bar';

foo = 'baz';
Invalid for true but Valid for ignoreEmptyLines
foo = 'bar';
\t
foo = 'baz';
Rule source
Test source