tools: enforce errors to not be documented in legacy section

PR-URL: https://github.com/nodejs/node/pull/55218
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Aviv Keller 2024-10-08 12:59:53 -04:00 committed by GitHub
parent 78f421de88
commit 5a3da7b4e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 130 additions and 85 deletions

View file

@ -27,11 +27,6 @@ new RuleTester().run('documented-errors', rule, {
message: `"${invalidCode}" is not documented in doc/api/errors.md`,
line: 2
},
{
message:
`doc/api/errors.md does not have an anchor for "${invalidCode}"`,
line: 2
},
]
},
]