diff --git a/app/components/DurationInput.tsx b/app/components/DurationInput.tsx
index eb5995a..296c339 100644
--- a/app/components/DurationInput.tsx
+++ b/app/components/DurationInput.tsx
@@ -10,17 +10,30 @@ export default class DurationInput extends React.Component<{
render() {
const duration = this.props.duration;
// const editing = this.props.onDurationChange != null;
- return
-
-
;
+ );
}
private onMinutesChange = (e: React.SyntheticEvent
, { value }: InputOnChangeData) => {
diff --git a/app/components/MessagesView.tsx b/app/components/MessagesView.tsx
index b3ea1d5..bf3982f 100644
--- a/app/components/MessagesView.tsx
+++ b/app/components/MessagesView.tsx
@@ -1,6 +1,6 @@
import { observer } from "mobx-react";
import * as React from "react";
-import { Message, MessageList, TransitionGroup } from "semantic-ui-react";
+import { Message, TransitionGroup } from "semantic-ui-react";
import { Message as UiMessage, UiStore } from "@app/ui";
@@ -11,7 +11,7 @@ class MessageView extends React.Component<{
}> {
render() {
- const { id, header, content, type } = this.props.message;
+ const { header, content, type } = this.props.message;
return (
{
render() {
- return
- Section Runner Queue
- ;
+ return (
+
+ Section Runner Queue
+
+ );
}
}
diff --git a/app/mqtt.ts b/app/mqtt.ts
index 9f30cb7..8ad4b60 100644
--- a/app/mqtt.ts
+++ b/app/mqtt.ts
@@ -1,4 +1,3 @@
-import { EventEmitter } from "events";
import "paho-mqtt";
import MQTT = Paho.MQTT;
@@ -14,7 +13,7 @@ import {
SprinklersDevice,
TimeOfDay,
} from "@common/sprinklers";
-import { checkedIndexOf, getRandomId } from "@common/utils";
+import { checkedIndexOf } from "@common/utils";
export class MqttApiClient implements ISprinklersApi {
client: MQTT.Client;
@@ -158,6 +157,7 @@ class MqttSprinklersDevice extends SprinklersDevice {
let matches = topic.match(/^sections(?:\/(\d+)(?:\/?(.+))?)?$/);
if (matches != null) {
//noinspection JSUnusedLocalSymbols
+ /* tslint:disable-next-line:no-unused-variable */
const [_topic, secStr, subTopic] = matches;
// console.log(`section: ${secStr}, topic: ${subTopic}, payload: ${payload}`);
if (!secStr) { // new number of sections
@@ -175,6 +175,7 @@ class MqttSprinklersDevice extends SprinklersDevice {
matches = topic.match(/^programs(?:\/(\d+)(?:\/?(.+))?)?$/);
if (matches != null) {
//noinspection JSUnusedLocalSymbols
+ /* tslint:disable-next-line:no-unused-variable */
const [_topic, progStr, subTopic] = matches;
// console.log(`program: ${progStr}, topic: ${subTopic}, payload: ${payload}`);
if (!progStr) { // new number of programs
@@ -197,6 +198,7 @@ class MqttSprinklersDevice extends SprinklersDevice {
matches = topic.match(/^responses\/(\d+)$/);
if (matches != null) {
//noinspection JSUnusedLocalSymbols
+ /* tslint:disable-next-line:no-unused-variable */
const [_topic, respIdStr] = matches;
console.log(`response: ${respIdStr}`);
const respId = parseInt(respIdStr, 10);
diff --git a/package.json b/package.json
index 6435819..720aedf 100644
--- a/package.json
+++ b/package.json
@@ -12,8 +12,8 @@
"watch:server": "yarn build:server --watch",
"start:dev-server": "webpack-dev-server --config ./app/webpack/dev.config.js",
"start": "node dist/index.js",
- "lint:app": "tslint --project app --force",
- "lint:server": "tslint --project server --force",
+ "lint:app": "tslint --project app --force --format verbose",
+ "lint:server": "tslint --project server --force --format verbose",
"lint": "run-p lint:*"
},
"repository": {