diff --git a/index.ts b/index.ts index c7bce00..1e23cbd 100644 --- a/index.ts +++ b/index.ts @@ -176,6 +176,6 @@ export function parseUnsafeNmeaSentence(sentence: string): UnsafePacket { } -export function getUnsafePacketId(packet: UnsafePacket) : string { +export function getUnsafePacketId(packet: UnsafePacket): string { return (packet.sentenceId === "?") ? packet.originalPacketId : packet.sentenceId; } diff --git a/package.json b/package.json index 5d5e3e7..ff00404 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "scripts": { "build": "npm run lint && tsc", "lint": "tslint *.ts codecs/*.ts examples/*.ts tests/*.ts", + "lint-fix": "npm run lint -- --fix", "prepublish": "npm run test", "test": "npm run build && mocha -R tap dist/tests" },