Use built-in no-restricted-syntax to ban null instead of plugin, ban null type too (#58095)

This commit is contained in:
Jake Bailey
2024-04-18 09:06:32 -07:00
committed by GitHub
parent 72f413cea0
commit 17e420daf6
45 changed files with 128 additions and 139 deletions

View File

@@ -243,7 +243,7 @@ export function initializeNodeSystem(): StartInput {
protected write(s: string, _type: ts.server.Msg) {
if (this.fd >= 0) {
const buf = Buffer.from(s);
// eslint-disable-next-line no-null/no-null
// eslint-disable-next-line no-restricted-syntax
fs.writeSync(this.fd, buf, 0, buf.length, /*position*/ null!); // TODO: GH#18217
}
if (this.traceToConsole) {