From 02fbf54896501c21636cfd19ee75cc89fcb9ae64 Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Wed, 3 Apr 2019 10:22:36 -0500 Subject: [PATCH] Linter fixes --- frontend/account/components/export_account_panel.tsx | 1 - frontend/devices/components/space_panel_tool_tip.tsx | 1 - frontend/devices/connectivity/diagnosis.tsx | 1 - frontend/farm_designer/farm_events/edit_farm_event.tsx | 1 - frontend/farm_designer/map/legend/layer_toggle.tsx | 1 - frontend/farm_designer/plants/openfarm_search_results.tsx | 1 - frontend/farmware/generate_manifest_info.ts | 1 - frontend/front_page/forgot_password.tsx | 1 - frontend/front_page/resend_panel_body.tsx | 1 - frontend/regimens/bulk_scheduler/week_row.tsx | 1 - frontend/regimens/editor/index.tsx | 1 - frontend/sequences/sequence_editor_middle.tsx | 1 - frontend/sequences/step_tiles/mark_as/constants.ts | 1 - frontend/sequences/step_tiles/pin_and_peripheral_support.tsx | 2 -- frontend/sequences/step_tiles/tile_calibrate.tsx | 1 - frontend/sequences/step_tiles/tile_set_zero.tsx | 1 - frontend/tools/components/toolbay_header.tsx | 1 - frontend/ui/center_panel.tsx | 1 - frontend/ui/empty_state_wrapper.tsx | 1 - frontend/ui/fallback_img.tsx | 1 - frontend/ui/left_panel.tsx | 1 - frontend/ui/right_panel.tsx | 1 - 22 files changed, 23 deletions(-) diff --git a/frontend/account/components/export_account_panel.tsx b/frontend/account/components/export_account_panel.tsx index fe245b9be..fa43e5be4 100644 --- a/frontend/account/components/export_account_panel.tsx +++ b/frontend/account/components/export_account_panel.tsx @@ -3,7 +3,6 @@ import { Widget, WidgetHeader, WidgetBody, Row, Col } from "../../ui"; import { Content } from "../../constants"; import { t } from "../../i18next_wrapper"; - export function ExportAccountPanel(props: { onClick: () => void }) { return diff --git a/frontend/devices/components/space_panel_tool_tip.tsx b/frontend/devices/components/space_panel_tool_tip.tsx index b4f74dcc7..c1d1212f5 100644 --- a/frontend/devices/components/space_panel_tool_tip.tsx +++ b/frontend/devices/components/space_panel_tool_tip.tsx @@ -1,7 +1,6 @@ import * as React from "react"; import { t } from "../../i18next_wrapper"; - interface SPTTProps { tooltip?: string | undefined; } diff --git a/frontend/devices/connectivity/diagnosis.tsx b/frontend/devices/connectivity/diagnosis.tsx index b7eb203b3..9a03b52a2 100644 --- a/frontend/devices/connectivity/diagnosis.tsx +++ b/frontend/devices/connectivity/diagnosis.tsx @@ -5,7 +5,6 @@ import { bitArray } from "../../util"; import { TRUTH_TABLE } from "./truth_table"; import { t } from "../../i18next_wrapper"; - export type DiagnosisName = | "userAPI" | "userMQTT" diff --git a/frontend/farm_designer/farm_events/edit_farm_event.tsx b/frontend/farm_designer/farm_events/edit_farm_event.tsx index 9913276fd..604257899 100644 --- a/frontend/farm_designer/farm_events/edit_farm_event.tsx +++ b/frontend/farm_designer/farm_events/edit_farm_event.tsx @@ -7,7 +7,6 @@ import { TaggedFarmEvent } from "farmbot"; import { EditFEForm } from "./edit_fe_form"; import { t } from "../../i18next_wrapper"; - @connect(mapStateToPropsAddEdit) export class EditFarmEvent extends React.Component { redirect() { diff --git a/frontend/farm_designer/map/legend/layer_toggle.tsx b/frontend/farm_designer/map/legend/layer_toggle.tsx index 054b0b880..63ed78ddf 100644 --- a/frontend/farm_designer/map/legend/layer_toggle.tsx +++ b/frontend/farm_designer/map/legend/layer_toggle.tsx @@ -2,7 +2,6 @@ import * as React from "react"; import { Popover, Position } from "@blueprintjs/core"; import { t } from "../../../i18next_wrapper"; - export interface LayerToggleProps { label: string; value: boolean | undefined; diff --git a/frontend/farm_designer/plants/openfarm_search_results.tsx b/frontend/farm_designer/plants/openfarm_search_results.tsx index 54eab1f35..2efddc935 100644 --- a/frontend/farm_designer/plants/openfarm_search_results.tsx +++ b/frontend/farm_designer/plants/openfarm_search_results.tsx @@ -6,7 +6,6 @@ import { import { Content } from "../../constants"; import { t } from "../../i18next_wrapper"; - /** A stripped down version of OFSearchResult */ interface Result { crop: { diff --git a/frontend/farmware/generate_manifest_info.ts b/frontend/farmware/generate_manifest_info.ts index a070b5029..a43ca1303 100644 --- a/frontend/farmware/generate_manifest_info.ts +++ b/frontend/farmware/generate_manifest_info.ts @@ -5,7 +5,6 @@ import { } from "farmbot"; import { t } from "../i18next_wrapper"; - const addMinorAndPatchZeros = (version: string | undefined): string => version ? ">=" + version + ".0.0" : ""; diff --git a/frontend/front_page/forgot_password.tsx b/frontend/front_page/forgot_password.tsx index b46ce01b5..1b6dd28d8 100644 --- a/frontend/front_page/forgot_password.tsx +++ b/frontend/front_page/forgot_password.tsx @@ -2,7 +2,6 @@ import * as React from "react"; import { Col, Widget, WidgetHeader, WidgetBody, BlurableInput, Row } from "../ui/index"; import { t } from "../i18next_wrapper"; - export interface ForgotPasswordProps { onGoBack(e: React.MouseEvent): void; onSubmit(e: React.FormEvent): void; diff --git a/frontend/front_page/resend_panel_body.tsx b/frontend/front_page/resend_panel_body.tsx index a11d22c7d..a227e017b 100644 --- a/frontend/front_page/resend_panel_body.tsx +++ b/frontend/front_page/resend_panel_body.tsx @@ -2,7 +2,6 @@ import * as React from "react"; import { WidgetBody, Row } from "../ui/index"; import { t } from "../i18next_wrapper"; - export function ResendPanelBody(props: { onClick(): void; }) { return
diff --git a/frontend/regimens/bulk_scheduler/week_row.tsx b/frontend/regimens/bulk_scheduler/week_row.tsx index 3de1ea72f..12ecf4d1a 100644 --- a/frontend/regimens/bulk_scheduler/week_row.tsx +++ b/frontend/regimens/bulk_scheduler/week_row.tsx @@ -3,7 +3,6 @@ import { WeekRowProps, DayProps, DAYS } from "./interfaces"; import { toggleDay } from "./actions"; import { t } from "../../i18next_wrapper"; - export function WeekRow({ index, dispatch, week }: WeekRowProps) { return
diff --git a/frontend/regimens/editor/index.tsx b/frontend/regimens/editor/index.tsx index e059036f9..91b7f9633 100644 --- a/frontend/regimens/editor/index.tsx +++ b/frontend/regimens/editor/index.tsx @@ -8,7 +8,6 @@ import { import { Content } from "../../constants"; import { t } from "../../i18next_wrapper"; - export function RegimenEditor(props: RegimenEditorProps) { const { current, dispatch, calendar } = props; const regimen = current; diff --git a/frontend/sequences/sequence_editor_middle.tsx b/frontend/sequences/sequence_editor_middle.tsx index 18591596a..0926999b2 100644 --- a/frontend/sequences/sequence_editor_middle.tsx +++ b/frontend/sequences/sequence_editor_middle.tsx @@ -8,7 +8,6 @@ import { import { Content } from "../constants"; import { t } from "../i18next_wrapper"; - export class SequenceEditorMiddle extends React.Component { render() { diff --git a/frontend/sequences/step_tiles/mark_as/constants.ts b/frontend/sequences/step_tiles/mark_as/constants.ts index b4194bff9..e5eb91aae 100644 --- a/frontend/sequences/step_tiles/mark_as/constants.ts +++ b/frontend/sequences/step_tiles/mark_as/constants.ts @@ -1,7 +1,6 @@ import { DropDownItem } from "../../../ui"; import { t } from "../../../i18next_wrapper"; - export const MOUNTED_TO = t("Mounted to:"); export const DISMOUNT: DropDownItem = { label: t("Not Mounted"), value: 0 }; diff --git a/frontend/sequences/step_tiles/pin_and_peripheral_support.tsx b/frontend/sequences/step_tiles/pin_and_peripheral_support.tsx index 0bb2e51c4..1046c0534 100644 --- a/frontend/sequences/step_tiles/pin_and_peripheral_support.tsx +++ b/frontend/sequences/step_tiles/pin_and_peripheral_support.tsx @@ -1,5 +1,3 @@ - - import { selectAllSavedPeripherals, selectAllSavedSensors diff --git a/frontend/sequences/step_tiles/tile_calibrate.tsx b/frontend/sequences/step_tiles/tile_calibrate.tsx index 2304e9e59..c1b4e546b 100644 --- a/frontend/sequences/step_tiles/tile_calibrate.tsx +++ b/frontend/sequences/step_tiles/tile_calibrate.tsx @@ -5,7 +5,6 @@ import { StepWrapper, StepHeader, StepContent } from "../step_ui/index"; import { StepRadio } from "../step_ui/step_radio"; import { t } from "../../i18next_wrapper"; - export function TileCalibrate(props: StepParams) { const { dispatch, currentStep, index, currentSequence } = props; const className = "calibrate-step"; diff --git a/frontend/sequences/step_tiles/tile_set_zero.tsx b/frontend/sequences/step_tiles/tile_set_zero.tsx index 4f4d96e0e..73c832068 100644 --- a/frontend/sequences/step_tiles/tile_set_zero.tsx +++ b/frontend/sequences/step_tiles/tile_set_zero.tsx @@ -5,7 +5,6 @@ import { StepWrapper, StepHeader, StepContent } from "../step_ui/index"; import { StepRadio } from "../step_ui/step_radio"; import { t } from "../../i18next_wrapper"; - export function TileSetZero(props: StepParams) { const { dispatch, currentStep, index, currentSequence } = props; const className = "set-zero-step"; diff --git a/frontend/tools/components/toolbay_header.tsx b/frontend/tools/components/toolbay_header.tsx index 1a906902e..748933fbc 100644 --- a/frontend/tools/components/toolbay_header.tsx +++ b/frontend/tools/components/toolbay_header.tsx @@ -2,7 +2,6 @@ import * as React from "react"; import { Col, Row } from "../../ui"; import { t } from "../../i18next_wrapper"; - export function ToolBayHeader() { return diff --git a/frontend/ui/center_panel.tsx b/frontend/ui/center_panel.tsx index 7e6427f76..6cc5a4e02 100644 --- a/frontend/ui/center_panel.tsx +++ b/frontend/ui/center_panel.tsx @@ -2,7 +2,6 @@ import * as React from "react"; import { Col, ToolTip, DocSlug } from "."; import { t } from "../i18next_wrapper"; - interface CenterProps { children?: React.ReactNode; className: string; diff --git a/frontend/ui/empty_state_wrapper.tsx b/frontend/ui/empty_state_wrapper.tsx index e649bcdfc..c6bdb5913 100644 --- a/frontend/ui/empty_state_wrapper.tsx +++ b/frontend/ui/empty_state_wrapper.tsx @@ -1,7 +1,6 @@ import * as React from "react"; import { t } from "../i18next_wrapper"; - export enum EmptyStateGraphic { plants = "plants", crops = "crops", diff --git a/frontend/ui/fallback_img.tsx b/frontend/ui/fallback_img.tsx index c6e6415c0..a4cbd5877 100644 --- a/frontend/ui/fallback_img.tsx +++ b/frontend/ui/fallback_img.tsx @@ -2,7 +2,6 @@ import * as React from "react"; import { defensiveClone } from "../util"; import { t } from "../i18next_wrapper"; - type ImgTag = React.HTMLProps; interface Props extends ImgTag { diff --git a/frontend/ui/left_panel.tsx b/frontend/ui/left_panel.tsx index 262d4285d..137703f9f 100644 --- a/frontend/ui/left_panel.tsx +++ b/frontend/ui/left_panel.tsx @@ -2,7 +2,6 @@ import * as React from "react"; import { Col, ToolTip } from "."; import { t } from "../i18next_wrapper"; - interface LeftPanelProps { children?: React.ReactNode; className: string; diff --git a/frontend/ui/right_panel.tsx b/frontend/ui/right_panel.tsx index 1069631d7..cf36f9169 100644 --- a/frontend/ui/right_panel.tsx +++ b/frontend/ui/right_panel.tsx @@ -2,7 +2,6 @@ import * as React from "react"; import { Col, ToolTip } from "."; import { t } from "../i18next_wrapper"; - interface RightPanelProps { children?: React.ReactNode; className: string;