eslint: Add and enforce space-in-parens lint rule.

This commit is contained in:
Tim Abbott
2017-10-06 12:36:39 -07:00
parent 0c44310009
commit 82b708b721
15 changed files with 28 additions and 27 deletions

View File

@@ -94,8 +94,8 @@ $(function () {
var max_scroll = this.scrollHeight - self.innerHeight() - 1;
e.stopPropagation();
if ( ((delta < 0) && (scroll <= 0))
|| ((delta > 0) && (scroll >= max_scroll))) {
if (((delta < 0) && (scroll <= 0)) ||
((delta > 0) && (scroll >= max_scroll))) {
e.preventDefault();
}
});