mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-20 18:09:32 -05:00
Use built-in no-restricted-syntax to ban null instead of plugin, ban null type too (#58095)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user