Skip to content

Commit

Permalink
Update to prettier 2.5.0 (babel#14000)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo authored Nov 26, 2021
1 parent bafa016 commit 23fec0c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"semi": true,
"singleQuote": false,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"bracketSameLine": false,
"tabWidth": 2,
"printWidth": 80,
"overrides": [{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"lint-staged": "^9.2.0",
"lodash": "^4.17.21",
"mergeiterator": "^1.2.5",
"prettier": "2.3.1",
"prettier": "2.5.0",
"rollup": "~2.54.0",
"rollup-plugin-dts": "^2.0.0",
"rollup-plugin-node-polyfills": "^0.2.1",
Expand Down
21 changes: 9 additions & 12 deletions packages/babel-traverse/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@ import type * as t from "@babel/types";
import { NodePath } from "./index";
import { VirtualTypeAliases } from "./path/generated/virtual-types";

export type Visitor<S = {}> = VisitNodeObject<S, t.Node> &
{
[Type in t.Node["type"]]?: VisitNode<S, Extract<t.Node, { type: Type }>>;
} &
{
[K in keyof t.Aliases]?: VisitNode<S, t.Aliases[K]>;
} &
{
[K in keyof VirtualTypeAliases]?: VisitNode<S, VirtualTypeAliases[K]>;
} & {
[k: string]: VisitNode<S, t.Node>;
};
export type Visitor<S = {}> = VisitNodeObject<S, t.Node> & {
[Type in t.Node["type"]]?: VisitNode<S, Extract<t.Node, { type: Type }>>;
} & {
[K in keyof t.Aliases]?: VisitNode<S, t.Aliases[K]>;
} & {
[K in keyof VirtualTypeAliases]?: VisitNode<S, VirtualTypeAliases[K]>;
} & {
[k: string]: VisitNode<S, t.Node>;
};

export type VisitNode<S, P extends t.Node> =
| VisitNodeFunction<S, P>
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5815,7 +5815,7 @@ __metadata:
lint-staged: ^9.2.0
lodash: ^4.17.21
mergeiterator: ^1.2.5
prettier: 2.3.1
prettier: 2.5.0
rollup: ~2.54.0
rollup-plugin-dts: ^2.0.0
rollup-plugin-node-polyfills: ^0.2.1
Expand Down Expand Up @@ -12858,12 +12858,12 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"prettier@npm:2.3.1":
version: 2.3.1
resolution: "prettier@npm:2.3.1"
"prettier@npm:2.5.0":
version: 2.5.0
resolution: "prettier@npm:2.5.0"
bin:
prettier: bin-prettier.js
checksum: 3b37731ff7150feecf19736c77c790e7e276b404ac9af81cbaf87cfecefc48ef9a864f34c2a5caf5955378b8f2525984b8611703a0d9c1f052b4cfa6eb35899f
checksum: aad1b35b73e7c14596d389d90977a83dad0db689ba5802a0ef319c357b7867f55b885db197972aa6a56c30f53088c9f8e0d7f7930ae074c275a4e9cbe091d21d
languageName: node
linkType: hard

Expand Down

0 comments on commit 23fec0c

Please sign in to comment.