Update prettier to v2 (#11579)

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
This commit is contained in:
Bogdan Savluk
2020-06-07 22:21:33 +02:00
committed by GitHub
parent 426acf336e
commit 4108524856
147 changed files with 1018 additions and 1106 deletions

View File

@@ -320,7 +320,7 @@ export default function transformClass(
path.traverse(findThisesVisitor);
let thisRef = function() {
let thisRef = function () {
const ref = path.scope.generateDeclaredUidIdentifier("this");
thisRef = () => t.cloneNode(ref);
return ref;
@@ -360,7 +360,7 @@ export default function transformClass(
wrapSuperCall(bareSuper, classState.superName, thisRef, body);
if (guaranteedSuperBeforeFinish) {
bareSuper.find(function(parentPath) {
bareSuper.find(function (parentPath) {
// hit top so short circuit
if (parentPath === path) {
return true;