Switch to klint, fix some lint rules

This commit is contained in:
Sebastian McKenzie
2016-02-14 23:25:14 +00:00
parent 456d24630a
commit 5b89849f43
75 changed files with 226 additions and 138 deletions

View File

@@ -1,4 +1,6 @@
/* @flow */
/* eslint indent: 0 */
/* eslint max-len: 0 */
import lineNumbers from "line-numbers";
import repeating from "repeating";
@@ -65,7 +67,7 @@ function highlight(text: string) {
let type = getTokenType(args);
let colorize = defs[type];
if (colorize) {
return args[0].split(NEWLINE).map(str => colorize(str)).join("\n");
return args[0].split(NEWLINE).map((str) => colorize(str)).join("\n");
} else {
return args[0];
}