-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
[eslint] Adding metadata to Plugin/Processor/ParserModule #65826
[eslint] Adding metadata to Plugin/Processor/ParserModule #65826
Conversation
@matwilko Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PRCode 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": 65826,
"author": "matwilko",
"headCommitOid": "f1642102693be9d878bf2a1958649b553577f742",
"mergeBaseOid": "1293dd7b03f25ddc72c07f89314f3814bef35f09",
"lastPushDate": "2023-06-19T14:04:56.000Z",
"lastActivityDate": "2023-08-04T18:28:08.000Z",
"mergeOfferDate": "2023-08-04T17:35:52.000Z",
"mergeRequestDate": "2023-08-04T18:28:08.000Z",
"mergeRequestUser": "matwilko",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "eslint",
"kind": "edit",
"files": [
{
"path": "types/eslint/eslint-tests.ts",
"kind": "test"
},
{
"path": "types/eslint/index.d.ts",
"kind": "definition"
}
],
"owners": [
"pmdartus",
"j-f1",
"saadq",
"JasonHK",
"bradzacher",
"JounQin"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "jakebailey",
"date": "2023-08-04T17:35:06.000Z",
"isMaintainer": true
},
{
"type": "approved",
"reviewer": "JounQin",
"date": "2023-08-03T18:48:09.000Z",
"isMaintainer": false
},
{
"type": "stale",
"reviewer": "bradzacher",
"date": "2023-07-11T12:20:42.000Z",
"abbrOid": "c1a9f47"
}
],
"mainBotCommentID": 1597254406,
"ciResult": "pass"
} |
🔔 @pmdartus @j-f1 @saadq @JasonHK @bradzacher @JounQin — please review this PR in the next few days. Be sure to explicitly select |
68119af
to
6e5896f
Compare
@matwilko The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
6e5896f
to
c1a9f47
Compare
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.
I wouldn't even bother adding the deprecated properties tbh
@matwilko One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you! |
Sure, I included them because the documentation says the I was trying to be faithful to what could appear in the wild (if consuming a plugin from elsewhere), and what the documentation permits (if authoring a plugin). :) I'm happy to take them out if you think there's no real value there. |
Gentle poke @bradzacher 😄 |
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.
Considering they're added mainly for flat configs which is not stable yet, and they're not included previously, so I also think we should not include the deprecated options.
@JounQin - the change doesn't relate to flat configs - flat configs don't change anything about the structure of plugins outside of the format of their various |
@matwilko One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you! |
@matwilko The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
@matwilko The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
…r as documented/behaving
b996942
to
f164210
Compare
@bradzacher Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
Are there any more concerns here? |
I don't think so~ Good to merge now. |
@matwilko: Everything looks good here. I am ready to merge this PR (at f164210) on your behalf whenever you think it's ready. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@pmdartus, @j-f1, @saadq, @JasonHK, @bradzacher, @JounQin: you can do this too.) |
Ready to merge |
npm test <package to test>
.Select one of these and delete the others:
If changing an existing definition:
The custom plugin documentation lists
meta.name
andmeta.version
(and legacyname
/version
properties) that can be specified on a plugin. While not necessarily documented, ESLint also accepts/expects the same metadata on processors and parsers in some cases (caching mostly).