Remove white space from lines with only spaces or tabs.

Use code from https://github.com/adobe/brackets/blob/master/src/extensions/default/JSLint/main.js#L75. Using @TomMalbran's suggestion in abobe/brackets#8842.