Skip to content

Commit 9045004

Browse files
committed
fix: the lint
1 parent db52fac commit 9045004

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default [
1313
pluginJs.configs.recommended,
1414
...tseslint.configs.recommended,
1515
mocha.configs.recommended,
16-
stylistic.configs['recommended-flat'],
16+
stylistic.configs['recommended'],
1717
{
1818
rules: {
1919
'mocha/no-mocha-arrows': 'off',

packages/serialport/lib/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable mocha/consistent-spacing-between-blocks */
12
import { randomBytes } from 'crypto'
23
import { SerialPort as SerialPortAutoDetect, SerialPortMock } from './'
34
import { assert } from '../../../test/assert'
@@ -240,7 +241,7 @@ function testSerialPortClass(
240241
it('deals with flushing during a read', done => {
241242
const port = new SerialPort(openOptions)
242243
port.on('error', done)
243-
port.on('data', () => {}) // enter flowing mode
244+
port.on('data', () => { }) // enter flowing mode
244245
port.once('data', () => {
245246
// we should have a pending read now since we're in flowing mode
246247
port.flush(err => {

0 commit comments

Comments
 (0)