babel-code-frame: Fix indentation

This commit is contained in:
Simon Lydell
2016-03-23 19:00:53 +01:00
parent aaaffd32e7
commit dceb988bbb

View File

@@ -1,5 +1,3 @@
/* eslint indent: 0 */
import repeating from "repeating";
import jsTokens from "js-tokens";
import esutils from "esutils";
@@ -40,15 +38,15 @@ function getTokenType(match) {
if (token.type === "punctuator") {
switch (token.value) {
case "{":
case "}":
return "curly";
case "(":
case ")":
return "parens";
case "[":
case "]":
return "square";
case "{":
case "}":
return "curly";
case "(":
case ")":
return "parens";
case "[":
case "]":
return "square";
}
}