Skip to content

Commit ad693cc

Browse files
authored
Update prettier to 2.3.1 (#13460)
1 parent 66cbd60 commit ad693cc

5 files changed

Lines changed: 25 additions & 15 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"lint-staged": "^9.2.0",
6262
"lodash": "^4.17.21",
6363
"mergeiterator": "^1.2.5",
64-
"prettier": "2.3.0",
64+
"prettier": "2.3.1",
6565
"rollup": "^2.47.0",
6666
"rollup-plugin-dts": "^2.0.0",
6767
"rollup-plugin-node-polyfills": "^0.2.1",

‎packages/babel-core/src/config/config-chain.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,10 @@ function normalizeOptions(opts: ValidatedOptions): ValidatedOptions {
717717
function dedupDescriptors(
718718
items: Array<UnloadedDescriptor>,
719719
): Array<UnloadedDescriptor> {
720-
const map: Map<Function, Map<string | void, { value: UnloadedDescriptor }>> =
721-
new Map();
720+
const map: Map<
721+
Function,
722+
Map<string | void, { value: UnloadedDescriptor }>
723+
> = new Map();
722724

723725
const descriptors = [];
724726

‎packages/babel-core/src/config/full.ts‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,14 @@ const makeDescriptorLoader = <Context, API>(
283283
return { value: item, options, dirname, alias };
284284
});
285285

286-
const pluginDescriptorLoader =
287-
makeDescriptorLoader<Context.SimplePlugin, PluginAPI>(makePluginAPI);
288-
const presetDescriptorLoader =
289-
makeDescriptorLoader<Context.SimplePreset, PresetAPI>(makePresetAPI);
286+
const pluginDescriptorLoader = makeDescriptorLoader<
287+
Context.SimplePlugin,
288+
PluginAPI
289+
>(makePluginAPI);
290+
const presetDescriptorLoader = makeDescriptorLoader<
291+
Context.SimplePreset,
292+
PresetAPI
293+
>(makePresetAPI);
290294

291295
/**
292296
* Instantiate a plugin for the given descriptor, returning the plugin/options pair.

‎packages/babel-plugin-transform-typescript/src/namespace.ts‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,13 @@ function handleVariableDeclaration(
6868
}
6969
const { declarations } = node;
7070
if (
71-
declarations.every((declarator): declarator is t.VariableDeclarator & {
72-
id: t.Identifier;
73-
} => t.isIdentifier(declarator.id))
71+
declarations.every(
72+
(
73+
declarator,
74+
): declarator is t.VariableDeclarator & {
75+
id: t.Identifier;
76+
} => t.isIdentifier(declarator.id),
77+
)
7478
) {
7579
// `export const a = 1` transforms to `const a = N.a = 1`, the output
7680
// is smaller than `const a = 1; N.a = a`;

‎yarn.lock‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5773,7 +5773,7 @@ __metadata:
57735773
lint-staged: ^9.2.0
57745774
lodash: ^4.17.21
57755775
mergeiterator: ^1.2.5
5776-
prettier: 2.3.0
5776+
prettier: 2.3.1
57775777
rollup: ^2.47.0
57785778
rollup-plugin-dts: ^2.0.0
57795779
rollup-plugin-node-polyfills: ^0.2.1
@@ -12605,12 +12605,12 @@ fsevents@^1.2.7:
1260512605
languageName: node
1260612606
linkType: hard
1260712607

12608-
"prettier@npm:2.3.0":
12609-
version: 2.3.0
12610-
resolution: "prettier@npm:2.3.0"
12608+
"prettier@npm:2.3.1":
12609+
version: 2.3.1
12610+
resolution: "prettier@npm:2.3.1"
1261112611
bin:
1261212612
prettier: bin-prettier.js
12613-
checksum: 652640cc8b71bc5277cfb8bf6f161783ca588efcf683c3d630837b39da8d57fef35c9e00ae5855a8e3c75136c42274046c913cc2b2d2968558315f31c6a26981
12613+
checksum: 9b4a695b87ce5f510fc20feec01cce7371f0fa0b92ffe79d543f6be52e2004c532861629de4d7ab1c577e1f649dce3cfccd62cb2ca6526b1da8d9c63eb84bf36
1261412614
languageName: node
1261512615
linkType: hard
1261612616

0 commit comments

Comments
 (0)