Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
karlvr committed Jan 24, 2025
1 parent d4cb670 commit ffc267a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js → eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default antfu(
'import/order': 0,
'jsdoc/check-alignment': 'error',
'jsdoc/check-line-alignment': 'error',
'no-undef': 'error',
'no-undef': 0, // Disable as TypeScript provides this check and eslint gets it wrong for NodeJS.Timeout
'perfectionist/sort-exports': 'error',
'perfectionist/sort-imports': [
'error',
Expand Down
1 change: 1 addition & 0 deletions src/accessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export default class RoombaAccessory implements AccessoryPlugin {

const Characteristic = this.api.hap.Characteristic

// eslint-disable-next-line ts/no-require-imports
const version: string = require('../package.json').version

this.accessoryInfo.setCharacteristic(Characteristic.Manufacturer, 'iRobot')
Expand Down
4 changes: 3 additions & 1 deletion src/lastcommand.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import process from 'node:process'

import dorita980 from 'dorita980'
Expand All @@ -20,7 +21,8 @@ type RobotState = dorita980.RobotState & { lastCommand?: { regions: { regionId:
function init() {
myRobotViaLocal.getRobotState(['lastCommand'])
.then((result: RobotState) => {
console.log('lastCommand:', result.lastCommand, ', regionsDetails:', result.lastCommand?.regions); myRobotViaLocal.end()
console.log('lastCommand:', result.lastCommand, ', regionsDetails:', result.lastCommand?.regions)
myRobotViaLocal.end()
})
.catch(console.log)
}

0 comments on commit ffc267a

Please sign in to comment.