Skip to content
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: improve documentation for rule meta properties #61803

Merged

Conversation

bmish
Copy link
Contributor

@bmish bmish commented Aug 18, 2022

What's included

@typescript-bot
Copy link
Contributor

typescript-bot commented Aug 18, 2022

@bmish Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because 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

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Only a DT maintainer can approve changes without tests

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": 61803,
  "author": "bmish",
  "headCommitOid": "4dd7317d3505a981a4d58655a204c72a9d1bd89e",
  "mergeBaseOid": "9205f7999a9a2ec11cecee84b9af881f834a9bd8",
  "lastPushDate": "2022-08-18T21:06:20.000Z",
  "lastActivityDate": "2022-08-19T02:14:35.000Z",
  "mergeOfferDate": "2022-08-18T23:20:16.000Z",
  "mergeRequestDate": "2022-08-19T02:14:35.000Z",
  "mergeRequestUser": "JounQin",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "eslint",
      "kind": "edit",
      "files": [
        {
          "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": "2022-08-18T23:19:33.000Z",
      "isMaintainer": true
    },
    {
      "type": "approved",
      "reviewer": "JounQin",
      "date": "2022-08-18T23:08:51.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 1219951159,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Critical package Untested Change This PR does not touch tests labels Aug 18, 2022
@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Aug 18, 2022
@typescript-bot
Copy link
Contributor

🔔 @pmdartus @j-f1 @saadq @JasonHK @bradzacher @JounQin — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@bmish bmish force-pushed the eslint-rule-meta-data-docs branch from 67614c8 to 40d25cd Compare August 18, 2022 20:56
@bmish bmish force-pushed the eslint-rule-meta-data-docs branch from 40d25cd to 4dd7317 Compare August 18, 2022 21:06
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board Aug 18, 2022
@JounQin
Copy link
Contributor

JounQin commented Aug 18, 2022

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Aug 18, 2022
@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels Aug 18, 2022
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Author to Merge in New Pull Request Status Board Aug 18, 2022
@bmish
Copy link
Contributor Author

bmish commented Aug 19, 2022

Can desperation be tested?

I'm serious, see also https://sonarsource.github.io/rspec/#/rspec/S1874/javascript and it's source at https://github.com/SonarSource/SonarJS/blob/master/eslint-bridge/src/linting/eslint/rules/deprecation.ts.

@JounQin I'm assuming you mean "deprecation". In the context of my PR, what do you mean by testing deprecation? These deprecated properties are referenced in the DefinitelyTyped eslint test file to ensure they can continue to be used.

@JounQin
Copy link
Contributor

JounQin commented Aug 19, 2022

@bmish sorry for my typo. 😅

Yes, I mean can that be tested in favor of function overloads. (Not specific on this PR)

@bmish
Copy link
Contributor Author

bmish commented Aug 19, 2022

I'm still not sure what you mean by "tested in favor of function overloads".

@JounQin
Copy link
Contributor

JounQin commented Aug 19, 2022

I'm still not sure what you mean by "tested in favor of function overloads".

Function A can have different signatures, only a few of them maybe deprecated, I want to have test cases to make sure TS understand which overload usages should be considered as deprecation, which should be used without deprecation notice.

For example, // @ts-expect-deprecation and // @ts-expect-no-deprecation

@bmish
Copy link
Contributor Author

bmish commented Aug 19, 2022

@JounQin I was hoping something like that existed but haven't found anything.

@JounQin
Copy link
Contributor

JounQin commented Aug 19, 2022

@JounQin I was hoping something like that existed but haven't found anything.

Yeah, so I'm just asking, and I'd like to raise an issue on https://github.com/microsoft/TypeScript.

@JounQin
Copy link
Contributor

JounQin commented Aug 19, 2022

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Aug 19, 2022
@typescript-bot typescript-bot merged commit f88ed25 into DefinitelyTyped:master Aug 19, 2022
@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Critical package Maintainer Approved Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner Untested Change This PR does not touch tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants