| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Is it possible to implement this as a lint rule as opposed to a new tool and test? |
Sorry, something went wrong.
@richardlau Do you have an example I can follow on how to implement that? I'm not familiar with markdown linters (yet 😅). |
Sorry, something went wrong.
|
https://github.com/nodejs/node/blob/master/tools/eslint-rules/documented-errors.js, for example. Ah wait that is a js lint rule. I think the custom markdown lint rules are external to this repo. Cc @Trott |
Sorry, something went wrong.
|
@richardlau we could lint that all deprecation codes adhere to a specific format in lib. |
Sorry, something went wrong.
Add a rule to make sure deprecation codes are in order.
That would cover runtime deprecation only right? |
Sorry, something went wrong.
Sorry, something went wrong.
They are in https://github.com/nodejs/remark-preset-lint-node. |
Sorry, something went wrong.
|
Do we still want to do that? Every now and then a new PR appears to replace DEPXXX placeholders that made their way to master, but on the other hand the tooling is supposed to take care of it now… I personally don't get why we use a placeholder, because if a new deprecation lands before the one on the PR, the author still has to fix the git conflict, so the placeholder doesn't help there. If someone thinks it's still a valid idea, I'm willing to work on it, otherwise let's close this. |
Sorry, something went wrong.
|
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
Sorry, something went wrong.
In theory at least, one thing the placeholder gets us is prevention of duplicate DEP codes landing and nobody noticing. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Add a rule to make sure deprecation codes are in order. This is to discourage the use of placeholders by contributors when creating new deprecations, and to relieve authors the responsibility to swap them with the appropriate code on landing.
Suggested by @targos in #33430 (comment).
Blocked by #33430.
Checklist