run prettier (spaces -> tabs)

pull/1106/head
Rich Harris 7 years ago
parent 25a18ab495
commit cfdc8902ab

@ -12,10 +12,14 @@ export default function checkForValidIdentifiers(
const functionDefinitionString = `function ${name}() {}`; const functionDefinitionString = `function ${name}() {}`;
try { try {
parse(functionDefinitionString); parse(functionDefinitionString);
} catch(exception) { } catch (exception) {
const invalidCharacter = functionDefinitionString[exception.pos] const invalidCharacter = functionDefinitionString[exception.pos];
validator.error(`Computed property name "${name}" is invalid. Character '${invalidCharacter}' at position ${exception.pos} is illegal in function identifiers`, prop.start); validator.error(
`Computed property name "${name}" is invalid. Character '${
invalidCharacter
}' at position ${exception.pos} is illegal in function identifiers`,
prop.start
);
} }
}); });
} }

Loading…
Cancel
Save