Bump prettier@2.2.1 (#12633)
This commit is contained in:
parent
6e9a174e7f
commit
fec4a132ad
@ -58,7 +58,7 @@
|
|||||||
"lint-staged": "^9.2.0",
|
"lint-staged": "^9.2.0",
|
||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
"mergeiterator": "^1.2.5",
|
"mergeiterator": "^1.2.5",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.2.1",
|
||||||
"rollup": "^2.26.5",
|
"rollup": "^2.26.5",
|
||||||
"rollup-plugin-dts": "^2.0.0",
|
"rollup-plugin-dts": "^2.0.0",
|
||||||
"rollup-plugin-node-polyfills": "^0.2.1",
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
||||||
|
|||||||
@ -167,16 +167,17 @@ describe("api", function () {
|
|||||||
babelrc: false,
|
babelrc: false,
|
||||||
};
|
};
|
||||||
Object.freeze(options);
|
Object.freeze(options);
|
||||||
transformFile(__dirname + "/fixtures/api/file.js", options, function (
|
transformFile(
|
||||||
err,
|
__dirname + "/fixtures/api/file.js",
|
||||||
res,
|
options,
|
||||||
) {
|
function (err, res) {
|
||||||
if (err) return done(err);
|
if (err) return done(err);
|
||||||
expect(res.code).toBe("foo();");
|
expect(res.code).toBe("foo();");
|
||||||
// keep user options untouched
|
// keep user options untouched
|
||||||
expect(options).toEqual({ babelrc: false });
|
expect(options).toEqual({ babelrc: false });
|
||||||
done();
|
done();
|
||||||
});
|
},
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("transformFileSync", function () {
|
it("transformFileSync", function () {
|
||||||
|
|||||||
@ -78,11 +78,9 @@ export function getStatementParent(): NodePath {
|
|||||||
export function getEarliestCommonAncestorFrom(
|
export function getEarliestCommonAncestorFrom(
|
||||||
paths: Array<NodePath>,
|
paths: Array<NodePath>,
|
||||||
): NodePath {
|
): NodePath {
|
||||||
return this.getDeepestCommonAncestorFrom(paths, function (
|
return this.getDeepestCommonAncestorFrom(
|
||||||
deepest,
|
paths,
|
||||||
i,
|
function (deepest, i, ancestries) {
|
||||||
ancestries,
|
|
||||||
) {
|
|
||||||
let earliest;
|
let earliest;
|
||||||
const keys = t.VISITOR_KEYS[deepest.type];
|
const keys = t.VISITOR_KEYS[deepest.type];
|
||||||
|
|
||||||
@ -114,7 +112,8 @@ export function getEarliestCommonAncestorFrom(
|
|||||||
}
|
}
|
||||||
|
|
||||||
return earliest;
|
return earliest;
|
||||||
});
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
10
yarn.lock
10
yarn.lock
@ -4857,7 +4857,7 @@ __metadata:
|
|||||||
lint-staged: ^9.2.0
|
lint-staged: ^9.2.0
|
||||||
lodash: ^4.17.20
|
lodash: ^4.17.20
|
||||||
mergeiterator: ^1.2.5
|
mergeiterator: ^1.2.5
|
||||||
prettier: ^2.0.5
|
prettier: ^2.2.1
|
||||||
rollup: ^2.26.5
|
rollup: ^2.26.5
|
||||||
rollup-plugin-dts: ^2.0.0
|
rollup-plugin-dts: ^2.0.0
|
||||||
rollup-plugin-node-polyfills: ^0.2.1
|
rollup-plugin-node-polyfills: ^0.2.1
|
||||||
@ -10860,12 +10860,12 @@ fsevents@^1.2.7:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"prettier@npm:^2.0.5":
|
"prettier@npm:^2.2.1":
|
||||||
version: 2.0.5
|
version: 2.2.1
|
||||||
resolution: "prettier@npm:2.0.5"
|
resolution: "prettier@npm:2.2.1"
|
||||||
bin:
|
bin:
|
||||||
prettier: bin-prettier.js
|
prettier: bin-prettier.js
|
||||||
checksum: d249d89361870a29b20e8b268cb09e908490b8c9e21f70393d12a213701f29ba7e95b7f9ce0ad63929c16ce475176742481911737ae3da4a498873e4a3b90990
|
checksum: 92c6c9f4b87eba1f28466edee57dd18c80d00b858edda77d46d1950d20e6e302b68ee255fc91133ba931e63c4577b5ae30da194d9626a8f3c0177778b91bf056
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user