Skip to content

Commit

Permalink
chore: fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
reconbot committed Jul 27, 2023
1 parent 12aeb53 commit d6e5236
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/repl/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function findArduino() {
}
}
throw new Error(
'No arduinos found. You must specify a port to load.\n\nFor example:\n\tserialport-repl COM3\n\tserialport-repl /dev/tty.my-serialport',
'No arduinos found. You must specify a port to load.\n\nFor example:\n\tserialport-repl COM3\n\tserialport-repl /dev/tty.my-serialport'
)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/serialport/examples/socketio/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
Expand Down
4 changes: 2 additions & 2 deletions packages/serialport/lib/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function testSerialPortClass(
SerialPort: typeof SerialPortAutoDetect | typeof SerialPortMock,
platform: string,
path: string | undefined,
baudRate: number,
baudRate: number
) {
describe(`${platform} SerialPort Integration Tests`, () => {
if (!path) {
Expand Down Expand Up @@ -234,7 +234,7 @@ function testSerialPortClass(
}
port.close(done)
})
}),
})
)
})
it('deals with flushing during a read', done => {
Expand Down
20 changes: 10 additions & 10 deletions packages/stream/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
this.opening = false
debug('Binding #open had an error', err)
this._error(err, openCallback)
},
}
)
}

Expand Down Expand Up @@ -204,7 +204,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
err => {
debug('binding.update', 'error', err)
return this._error(err, callback)
},
}
)
}

Expand Down Expand Up @@ -235,7 +235,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
write(
data: string | Buffer | number[],
encoding?: BufferEncoding | ((error: Error | null | undefined) => void),
callback?: (error: Error | null | undefined) => void,
callback?: (error: Error | null | undefined) => void
) {
if (Array.isArray(data)) {
data = Buffer.from(data)
Expand Down Expand Up @@ -265,7 +265,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
this._disconnected(err)
}
callback(err)
},
}
)
}

Expand Down Expand Up @@ -317,7 +317,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
this._disconnected(err)
}
this._read(bytesToRead) // prime to read more once we're reconnected
},
}
)
}

Expand Down Expand Up @@ -361,7 +361,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
this.closing = false
debug('binding.close', 'had an error', err)
return this._error(err, callback)
},
}
)
}

Expand All @@ -388,7 +388,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
err => {
debug('binding.set', 'had an error', err)
return this._error(err, callback)
},
}
)
}

Expand All @@ -411,7 +411,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
err => {
debug('binding.get', 'had an error', err)
return this._error(err, callback)
},
}
)
}

Expand All @@ -435,7 +435,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
err => {
debug('binding.flush', 'had an error', err)
return this._error(err, callback)
},
}
)
}

Expand Down Expand Up @@ -470,7 +470,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
err => {
debug('binding.drain', 'had an error', err)
return this._error(err, callback)
},
}
)
}
}
Expand Down

0 comments on commit d6e5236

Please sign in to comment.