From 976f6a9379d6f4f34e08f302d55f43661c13bce8 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 24 Jul 2021 23:28:23 +0900 Subject: [PATCH] format --- renovate.json | 4 +--- src/ads1015.ts | 2 +- src/adt7410.ts | 2 +- src/adxl345.ts | 2 +- src/gp2y0e03.ts | 2 +- src/gpio.ts | 2 +- src/index.ts | 2 +- src/mpr121.ts | 2 +- src/paj7620.ts | 2 +- src/pca9685.ts | 2 +- src/s11059.ts | 2 +- src/ssd1306.ts | 2 +- src/ssd1308.ts | 2 +- src/tsl2561.ts | 2 +- src/veml6070.ts | 2 +- src/vl53l0x.ts | 2 +- 16 files changed, 16 insertions(+), 18 deletions(-) diff --git a/renovate.json b/renovate.json index 51a513a..d4e41ad 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,4 @@ { - "extends": [ - "config:base" - ], + "extends": ["config:base"], "rangeStrategy": "update-lockfile" } diff --git a/src/ads1015.ts b/src/ads1015.ts index e439bc7..0997c1c 100644 --- a/src/ads1015.ts +++ b/src/ads1015.ts @@ -13,7 +13,7 @@ export function ads1015( async read(): Promise { if (device.i2cSlave == null) await device.init(); return device.read(channel); - } + }, }; } diff --git a/src/adt7410.ts b/src/adt7410.ts index 49b3700..4fd4ae1 100644 --- a/src/adt7410.ts +++ b/src/adt7410.ts @@ -15,7 +15,7 @@ export function adt7410( async read(): Promise { if (device.i2cSlave == null) await device.init(); return device.read(); - } + }, }; } diff --git a/src/adxl345.ts b/src/adxl345.ts index b3fae02..55c5991 100644 --- a/src/adxl345.ts +++ b/src/adxl345.ts @@ -16,7 +16,7 @@ export function adxl345( if (device.i2cSlave == null) await device.init(); const acc = await device.read(); return [acc.x, acc.y, acc.z]; - } + }, }; } diff --git a/src/gp2y0e03.ts b/src/gp2y0e03.ts index 3a034cd..a669489 100644 --- a/src/gp2y0e03.ts +++ b/src/gp2y0e03.ts @@ -15,7 +15,7 @@ export function gp2y0e03( async read(): Promise { if (device.i2cSlave == null) await device.init(); return device.read(); - } + }, }; } diff --git a/src/gpio.ts b/src/gpio.ts index 4ecda4d..e0a6b6d 100644 --- a/src/gpio.ts +++ b/src/gpio.ts @@ -2,7 +2,7 @@ import { GPIOPort, OperationError, InvalidAccessError, - requestGPIOAccess + requestGPIOAccess, } from "node-web-gpio"; export { OperationError, InvalidAccessError, requestGPIOAccess }; diff --git a/src/index.ts b/src/index.ts index 3a393da..241b3fc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,7 @@ export { OperationError, InvalidAccessError, requestGPIOAccess, - default as gpio + default as gpio, } from "./gpio"; export { I2C, I2CSlaveDevice, requestI2CAccess, default as i2c } from "./i2c"; diff --git a/src/mpr121.ts b/src/mpr121.ts index 1f878ba..b4ce713 100644 --- a/src/mpr121.ts +++ b/src/mpr121.ts @@ -28,7 +28,7 @@ export function mpr121( async read(): Promise { if (device.i2cSlave == null) await device.init(); return device.read(); - } + }, }; } diff --git a/src/paj7620.ts b/src/paj7620.ts index ff0db76..578dd04 100644 --- a/src/paj7620.ts +++ b/src/paj7620.ts @@ -37,7 +37,7 @@ export function paj7620( default: return ""; } - } + }, }; } diff --git a/src/pca9685.ts b/src/pca9685.ts index 268efea..266ed64 100644 --- a/src/pca9685.ts +++ b/src/pca9685.ts @@ -43,7 +43,7 @@ export function pca9685( } await device.setServo(channel, angle); - } + }, }; } diff --git a/src/s11059.ts b/src/s11059.ts index 32decc0..dd47835 100644 --- a/src/s11059.ts +++ b/src/s11059.ts @@ -15,7 +15,7 @@ export function s11059( async read(): Promise { if (device.i2cSlave == null) await device.init(); return device.readR8G8B8(); - } + }, }; } diff --git a/src/ssd1306.ts b/src/ssd1306.ts index 310ae4b..dd328d4 100644 --- a/src/ssd1306.ts +++ b/src/ssd1306.ts @@ -23,7 +23,7 @@ export function ssd1306( device.drawStringQ(index, 0, message); }); await device.playSequence(); - } + }, }; } diff --git a/src/ssd1308.ts b/src/ssd1308.ts index a24fe15..c4a6522 100644 --- a/src/ssd1308.ts +++ b/src/ssd1308.ts @@ -23,7 +23,7 @@ export function ssd1308( device.drawStringQ(index, 0, message); }); await device.playSequence(); - } + }, }; } diff --git a/src/tsl2561.ts b/src/tsl2561.ts index 88ccff3..4863845 100644 --- a/src/tsl2561.ts +++ b/src/tsl2561.ts @@ -15,7 +15,7 @@ export function tsl2561( async read(): Promise { if (device.i2cSlave == null) await device.init(); return device.read(); - } + }, }; } diff --git a/src/veml6070.ts b/src/veml6070.ts index 4f0675c..908f5ca 100644 --- a/src/veml6070.ts +++ b/src/veml6070.ts @@ -14,7 +14,7 @@ export function veml6070(bus: I2C = i2c()): ReadableDevice { if (device.i2cSlaveLSB == null || device.i2cSlaveMSB == null) await device.init(); return device.read(); - } + }, }; } diff --git a/src/vl53l0x.ts b/src/vl53l0x.ts index 3a4ceb9..f2001ec 100644 --- a/src/vl53l0x.ts +++ b/src/vl53l0x.ts @@ -20,7 +20,7 @@ export function vl53l0x( async read(): Promise { if (device.i2cSlave == null) await device.init(enableLongRangeMode); return device.getRange(); - } + }, }; }