-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(prettier): all default
value should be optional
#54114
Conversation
@JounQin Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PR
@JounQin: I see that you have added yourself as an owner, are you sure you want to become an owner? Code ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. You can test the changes of this PR in the Playground. Status
All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 54114,
"author": "JounQin",
"headCommitOid": "58cae418dbe203a6665e1ea35a19af92f883d95f",
"lastPushDate": "2021-06-26T13:46:55.000Z",
"lastActivityDate": "2021-07-01T16:35:31.000Z",
"mergeOfferDate": "2021-07-01T15:44:49.000Z",
"mergeRequestDate": "2021-07-01T16:35:31.000Z",
"mergeRequestUser": "JounQin",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "prettier",
"kind": "edit",
"files": [
{
"path": "types/prettier/index.d.ts",
"kind": "definition"
},
{
"path": "types/prettier/prettier-tests.ts",
"kind": "test"
}
],
"owners": [
"ikatyang",
"ifiokjr",
"ffflorian",
"sosukesuzuki",
"Shinigami92",
"kddeisz",
"thorn0"
],
"addedOwners": [
"JounQin"
],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "orta",
"date": "2021-07-01T15:44:15.000Z",
"isMaintainer": true
},
{
"type": "approved",
"reviewer": "Shinigami92",
"date": "2021-06-26T14:27:27.000Z",
"isMaintainer": false
}
],
"mainBotCommentID": 869007244,
"ciResult": "pass"
} |
🔔 @ikatyang @ifiokjr @ffflorian @sosukesuzuki @Shinigami92 @kddeisz @thorn0 — please review this PR in the next few days. Be sure to explicitly select |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, also @JounQin is trustworthy 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, I checked the JS also
@JounQin Everything looks good here. Great job! I am ready to merge this PR (at 58cae41) on your behalf. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@ikatyang, @ifiokjr, @ffflorian, @sosukesuzuki, @Shinigami92, @kddeisz, @thorn0: you can do this too.) |
Ready to merge |
I just published |
Please fill in this template.
npm test <package to test>
.Select one of these and delete the others:
If adding a new definition:
.d.ts
files generated via--declaration
dts-gen --dt
, not by basing it on an existing project.tslint.json
should contain{ "extends": "dtslint/dt.json" }
, and no additional rules.tsconfig.json
should havenoImplicitAny
,noImplicitThis
,strictNullChecks
, andstrictFunctionTypes
set totrue
.If changing an existing definition:
https://github.com/prettier/prettier/blob/main/src/cli/usage.js#L29
https://github.com/prettier/prettier/blob/main/src/cli/create-minimist-options.js#L23
If removing a declaration:
notNeededPackages.json
.