diff --git a/eslint.config.js b/eslint.config.mjs similarity index 92% rename from eslint.config.js rename to eslint.config.mjs index f38430a..8d2ae1a 100644 --- a/eslint.config.js +++ b/eslint.config.mjs @@ -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', diff --git a/src/accessory.ts b/src/accessory.ts index cb73d31..ff0716a 100644 --- a/src/accessory.ts +++ b/src/accessory.ts @@ -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') diff --git a/src/lastcommand.ts b/src/lastcommand.ts index 7eb8b51..87fcfad 100644 --- a/src/lastcommand.ts +++ b/src/lastcommand.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import process from 'node:process' import dorita980 from 'dorita980' @@ -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) }