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

@@ -1,6 +1,6 @@
const babel = require("@babel/core");
test("Doesn't use the same object for two different nodes in the AST", function() {
test("Doesn't use the same object for two different nodes in the AST", function () {
const code = 'import Foo from "bar"; Foo; Foo;';
const ast = babel.transform(code, {

View File

@@ -1,7 +1,7 @@
const babel = require("@babel/core");
const vm = require("vm");
test("Re-export doesn't overwrite __esModule flag", function() {
test("Re-export doesn't overwrite __esModule flag", function () {
let code = 'export * from "./dep";';
const depStub = {
__esModule: false,
@@ -11,7 +11,7 @@ test("Re-export doesn't overwrite __esModule flag", function() {
module: {
exports: {},
},
require: function(id) {
require: function (id) {
if (id === "./dep") return depStub;
return require(id);
},