From 401329178779678f42f96d446c30aaf1e6e71609 Mon Sep 17 00:00:00 2001 From: gabrielburnworth Date: Fri, 28 Feb 2020 08:35:32 -0800 Subject: [PATCH] fix commas --- frontend/__test_support__/fake_state/images.ts | 2 +- .../__test_support__/fake_state/resources.ts | 2 +- frontend/__test_support__/fake_variables.ts | 2 +- .../farm_event_calendar_support.ts | 12 ++++++------ .../__test_support__/resource_index_builder.ts | 6 +++--- frontend/__tests__/app_test.tsx | 6 +++--- frontend/__tests__/attach_app_to_dom_test.ts | 2 +- frontend/__tests__/interceptors_test.ts | 2 +- frontend/__tests__/refresh_token_no_test.ts | 2 +- .../__tests__/resource_index_builder_test.ts | 2 +- frontend/__tests__/route_config_test.tsx | 2 +- .../__tests__/request_account_exports_test.ts | 2 +- frontend/account/components/change_password.tsx | 2 +- frontend/account/components/settings.tsx | 2 +- .../account/dev/__tests__/dev_mode_test.tsx | 2 +- .../account/dev/__tests__/dev_widget_test.tsx | 2 +- frontend/account/dev/dev_support.ts | 2 +- frontend/account/dev/dev_widget.tsx | 2 +- frontend/account/index.tsx | 2 +- .../labs/__tests__/labs_features_test.tsx | 2 +- .../account/labs/labs_features_list_data.ts | 4 ++-- frontend/app.tsx | 4 ++-- frontend/auth/actions.ts | 4 ++-- .../config_storage/__tests__/actions_test.ts | 2 +- frontend/config_storage/actions.ts | 2 +- .../__tests__/auto_sync_handle_inbound_test.ts | 2 +- .../connectivity/__tests__/auto_sync_test.ts | 2 +- .../connect_device/event_listeners_test.ts | 2 +- .../connect_device/status_checks_test.ts | 2 +- .../__tests__/data_consistency_test.ts | 2 +- .../connectivity/__tests__/ping_mqtt_test.ts | 2 +- .../connectivity/__tests__/reducer_qos_test.ts | 2 +- frontend/connectivity/auto_sync.ts | 2 +- frontend/connectivity/log_handlers.ts | 2 +- frontend/connectivity/ping_mqtt.tsx | 2 +- frontend/connectivity/reducer.ts | 2 +- frontend/controls/__tests__/controls_test.tsx | 2 +- frontend/controls/interfaces.ts | 4 ++-- .../move/__tests__/direction_axes_props_test.ts | 2 +- .../move/__tests__/direction_button_test.tsx | 2 +- .../move/__tests__/settings_menu_test.tsx | 2 +- frontend/controls/move/jog_buttons.tsx | 2 +- frontend/controls/move/motor_position_plot.tsx | 2 +- frontend/controls/move/settings_menu.tsx | 2 +- frontend/controls/move/step_size_selector.tsx | 17 +++++++---------- .../__tests__/peripheral_list_test.tsx | 2 +- frontend/controls/peripherals/index.tsx | 2 +- .../controls/peripherals/peripheral_form.tsx | 3 +-- frontend/controls/pin_form_fields.tsx | 2 +- .../__tests__/filter_readings_test.ts | 2 +- .../sensor_readings/__tests__/graph_test.tsx | 2 +- .../__tests__/sensor_readings_test.tsx | 2 +- .../sensor_readings/__tests__/table_test.tsx | 2 +- .../__tests__/time_period_selection_test.tsx | 2 +- .../controls/sensor_readings/filter_readings.ts | 2 +- .../sensor_readings/sensor_readings.tsx | 2 +- frontend/controls/sensors/sensor_list.tsx | 2 +- frontend/controls/state_to_props.ts | 2 +- .../controls/webcam/__tests__/edit_test.tsx | 2 +- frontend/controls_popup.tsx | 2 +- frontend/devices/__tests__/actions_test.ts | 4 ++-- frontend/devices/__tests__/devices_test.tsx | 2 +- .../devices/__tests__/state_to_props_test.tsx | 2 +- .../__tests__/update_interceptor_test.ts | 2 +- frontend/devices/actions.ts | 10 +++++----- .../__tests__/axis_tracking_status_test.tsx | 4 ++-- .../__tests__/bot_config_input_box_test.tsx | 2 +- .../__tests__/hardware_settings_test.tsx | 4 ++-- .../__tests__/maybe_highlight_test.tsx | 2 +- .../__tests__/pin_guard_input_group_test.tsx | 2 +- .../__tests__/pin_number_dropdown_test.tsx | 4 ++-- .../__tests__/source_config_value_test.ts | 2 +- .../__tests__/auto_sync_row_test.tsx | 2 +- .../__tests__/auto_update_row_test.tsx | 2 +- .../fbos_settings/__tests__/board_type_test.tsx | 6 +++--- .../__tests__/boot_sequence_selector_test.tsx | 6 +++--- .../__tests__/fbos_details_test.tsx | 2 +- .../__tests__/firmware_hardware_status_test.tsx | 2 +- .../__tests__/power_and_reset_test.tsx | 2 +- .../components/fbos_settings/board_type.tsx | 2 +- .../fbos_settings/camera_selection.tsx | 2 +- .../components/fbos_settings/fbos_details.tsx | 8 ++++---- .../components/fbos_settings/interfaces.ts | 2 +- .../fbos_settings/os_update_button.tsx | 8 ++++---- .../components/firmware_hardware_support.ts | 2 +- .../devices/components/hardware_settings.tsx | 2 +- .../__tests__/encoder_type_test.tsx | 2 +- .../__tests__/error_handling_tests.tsx | 4 ++-- .../__tests__/export_menu_test.tsx | 4 ++-- .../__tests__/homing_and_calibration_test.tsx | 2 +- .../hardware_settings/__tests__/motors_test.tsx | 6 +++--- .../__tests__/pin_bindings_test.tsx | 2 +- .../hardware_settings/encoder_type.tsx | 2 +- .../hardware_settings/export_menu.tsx | 3 +-- frontend/devices/components/interfaces.ts | 2 +- frontend/devices/components/mcu_input_box.tsx | 2 +- .../devices/components/pin_number_dropdown.tsx | 4 ++-- .../devices/components/source_config_value.ts | 6 +++--- .../connectivity/__tests__/diagram_test.tsx | 2 +- .../devices/connectivity/__tests__/qos_test.ts | 4 ++-- .../__tests__/status_checks_test.ts | 2 +- frontend/devices/connectivity/connectivity.tsx | 2 +- frontend/devices/connectivity/generate_data.ts | 2 +- frontend/devices/connectivity/status_checks.tsx | 2 +- frontend/devices/interfaces.ts | 2 +- .../__tests__/list_and_label_support_test.tsx | 2 +- .../__tests__/pin_binding_input_group_test.tsx | 10 +++++----- .../__tests__/pin_bindings_list_test.tsx | 6 +++--- .../__tests__/pin_bindings_test.tsx | 8 ++++---- .../__tests__/tagged_pin_binding_init_test.tsx | 2 +- frontend/devices/pin_bindings/interfaces.ts | 2 +- .../pin_bindings/list_and_label_support.tsx | 2 +- .../pin_bindings/pin_binding_input_group.tsx | 6 +++--- frontend/devices/pin_bindings/pin_bindings.tsx | 4 ++-- .../devices/pin_bindings/pin_bindings_list.tsx | 2 +- .../pin_bindings/tagged_pin_binding_init.tsx | 2 +- frontend/devices/reducer.ts | 2 +- frontend/devices/state_to_props.ts | 6 +++--- .../create_transfer_cert_failure_test.ts | 2 +- .../__tests__/farm_designer_test.tsx | 4 ++-- .../farm_designer/__tests__/reducer_test.ts | 4 ++-- .../__tests__/search_selectors_test.ts | 2 +- .../__tests__/state_to_props_test.tsx | 10 +++++----- .../__tests__/add_farm_event_test.tsx | 4 ++-- .../__tests__/edit_farm_event_test.tsx | 4 ++-- .../farm_events/__tests__/edit_fe_form_test.tsx | 8 ++++---- .../__tests__/farm_event_repeat_form_test.tsx | 2 +- .../farm_events/__tests__/farm_events_test.tsx | 2 +- .../map_state_to_props_add_edit_test.ts | 6 +++--- .../__tests__/map_state_to_props_test.ts | 12 ++++++------ .../farm_events/__tests__/util_test.ts | 2 +- .../farm_events/add_farm_event.tsx | 6 +++--- .../calendar/__tests__/index_test.ts | 2 +- .../calendar/__tests__/occurrence_test.ts | 2 +- .../calendar/__tests__/scheduler_test.ts | 16 ++++++++-------- .../farm_events/calendar/scheduler.ts | 2 +- .../farm_events/calendar/selectors.ts | 2 +- .../farm_events/edit_farm_event.tsx | 2 +- .../farm_designer/farm_events/edit_fe_form.tsx | 10 +++++----- .../farm_events/farm_event_repeat_form.tsx | 2 +- .../farm_designer/farm_events/farm_events.tsx | 6 +++--- .../farm_events/map_state_to_props.ts | 2 +- .../farm_events/map_state_to_props_add_edit.ts | 10 +++++----- frontend/farm_designer/index.tsx | 6 +++--- frontend/farm_designer/interfaces.ts | 4 ++-- .../farm_designer/map/__tests__/actions_test.ts | 7 +++---- .../map/__tests__/garden_map_test.tsx | 8 ++++---- .../farm_designer/map/__tests__/util_test.ts | 4 ++-- .../__tests__/active_plant_drag_helper_test.tsx | 2 +- .../__tests__/drag_helpers_test.tsx | 2 +- .../__tests__/hovered_plant_test.tsx | 4 ++-- .../map/active_plant/drag_helpers.tsx | 2 +- .../map/background/__tests__/grid_test.tsx | 2 +- .../__tests__/map_background_test.tsx | 2 +- .../__tests__/selection_box_actions_test.tsx | 2 +- .../background/__tests__/selection_box_test.tsx | 2 +- .../__tests__/target_coordinate_test.tsx | 2 +- .../map/background/selection_box_actions.tsx | 2 +- .../drawn_point/__tests__/drawn_point_test.tsx | 2 +- .../map/easter_eggs/__tests__/bugs_test.tsx | 4 ++-- frontend/farm_designer/map/easter_eggs/bugs.tsx | 2 +- frontend/farm_designer/map/garden_map.tsx | 6 +++--- .../farmbot/__tests__/bot_extents_test.tsx | 2 +- .../farmbot/__tests__/bot_figure_test.tsx | 2 +- .../farmbot/__tests__/bot_peripherals_test.tsx | 2 +- .../layers/farmbot/__tests__/bot_trail_test.tsx | 4 ++-- .../farmbot/__tests__/farmbot_layer_test.tsx | 2 +- .../map/layers/farmbot/__tests__/index_test.tsx | 2 +- .../__tests__/negative_position_labels_test.tsx | 4 ++-- .../__tests__/images_filter_menu_test.tsx | 4 ++-- .../images/__tests__/images_layer_test.tsx | 4 ++-- .../layers/images/__tests__/map_image_test.tsx | 2 +- .../map/layers/images/image_filter_menu.tsx | 4 ++-- .../map/layers/images/image_layer.tsx | 3 +-- .../map/layers/images/map_image.tsx | 2 +- .../plants/__tests__/garden_plant_test.tsx | 2 +- .../plants/__tests__/plant_actions_test.tsx | 6 +++--- .../plants/__tests__/plant_layer_test.tsx | 6 +++--- .../map/layers/plants/garden_plant.tsx | 2 +- .../map/layers/plants/plant_actions.tsx | 5 ++--- .../points/__tests__/garden_point_test.tsx | 2 +- .../points/__tests__/point_layer_test.tsx | 2 +- .../map/layers/points/point_layer.tsx | 3 +-- .../__tests__/garden_sensor_reading_test.tsx | 8 ++++---- .../__tests__/sensor_readings_layer_test.tsx | 8 ++++---- .../spread/__tests__/spread_layer_test.tsx | 4 ++-- .../__tests__/spread_overlap_helper_test.tsx | 4 ++-- .../map/layers/spread/spread_overlap_helper.tsx | 4 ++-- .../__tests__/tool_slot_layer_test.tsx | 2 +- .../__tests__/tool_slot_point_test.tsx | 4 ++-- .../layers/zones/__tests__/zones_layer_test.tsx | 4 ++-- .../map/layers/zones/__tests__/zones_test.tsx | 6 +++--- .../legend/__tests__/garden_map_legend_test.tsx | 4 ++-- frontend/farm_designer/map/util.ts | 11 +++++------ frontend/farm_designer/map/zoom.ts | 2 +- frontend/farm_designer/map_size_setting.tsx | 4 ++-- frontend/farm_designer/move_to.tsx | 2 +- .../plants/__tests__/add_plant_test.tsx | 4 ++-- .../plants/__tests__/crop_catalog_test.tsx | 2 +- .../plants/__tests__/crop_info_test.tsx | 2 +- .../plants/__tests__/map_state_to_props_test.ts | 4 ++-- .../__tests__/plant_inventory_item_test.tsx | 4 ++-- .../plants/__tests__/plant_inventory_test.tsx | 2 +- .../plants/__tests__/plant_panel_test.tsx | 2 +- .../plants/__tests__/select_plants_test.tsx | 2 +- frontend/farm_designer/plants/crop_catalog.tsx | 4 ++-- frontend/farm_designer/plants/crop_info.tsx | 8 ++++---- .../plants/grid/__tests__/generate_grid_test.ts | 2 +- .../farm_designer/plants/grid/plant_grid.tsx | 2 +- .../farm_designer/plants/map_state_to_props.tsx | 2 +- .../plants/openfarm_search_results.tsx | 2 +- frontend/farm_designer/plants/plant_info.tsx | 2 +- .../farm_designer/plants/plant_inventory.tsx | 4 ++-- frontend/farm_designer/plants/select_plants.tsx | 2 +- .../point_groups/__tests__/actions_test.ts | 4 ++-- .../__tests__/group_detail_active_test.tsx | 4 ++-- .../__tests__/group_detail_test.tsx | 6 +++--- .../__tests__/group_inventory_item_test.tsx | 4 ++-- .../__tests__/group_list_panel_test.tsx | 6 +++--- .../__tests__/group_order_visual_test.tsx | 4 ++-- .../point_groups/__tests__/paths_test.tsx | 6 +++--- .../__tests__/point_group_item_test.tsx | 6 +++--- .../__tests__/point_group_sort_test.ts | 2 +- .../criteria/__tests__/add_test.tsx | 2 +- .../criteria/__tests__/apply_test.ts | 2 +- .../criteria/__tests__/component_test.tsx | 4 ++-- .../criteria/__tests__/edit_test.ts | 4 ++-- .../criteria/__tests__/presets_test.tsx | 4 ++-- .../criteria/__tests__/show_test.tsx | 4 ++-- .../farm_designer/point_groups/criteria/add.tsx | 2 +- .../farm_designer/point_groups/criteria/edit.ts | 2 +- .../point_groups/criteria/presets.tsx | 2 +- .../point_groups/criteria/show.tsx | 4 ++-- .../farm_designer/point_groups/group_detail.tsx | 4 ++-- .../point_groups/group_detail_active.tsx | 2 +- .../point_groups/group_list_panel.tsx | 2 +- .../point_groups/group_order_visual.tsx | 2 +- .../points/__tests__/create_points_test.tsx | 2 +- .../points/__tests__/point_info_test.tsx | 2 +- .../__tests__/point_inventory_item_test.tsx | 2 +- .../points/__tests__/point_inventory_test.tsx | 2 +- .../points/__tests__/weeds_edit_test.tsx | 4 ++-- .../points/__tests__/weeds_inventory_test.tsx | 2 +- frontend/farm_designer/points/create_points.tsx | 6 +++--- frontend/farm_designer/points/point_info.tsx | 4 ++-- .../farm_designer/points/point_inventory.tsx | 4 ++-- frontend/farm_designer/points/weeds_edit.tsx | 4 ++-- .../farm_designer/points/weeds_inventory.tsx | 4 ++-- .../saved_gardens/__tests__/actions_test.ts | 4 ++-- .../__tests__/garden_edit_test.tsx | 2 +- .../__tests__/saved_gardens_test.tsx | 4 ++-- .../farm_designer/saved_gardens/garden_add.tsx | 4 ++-- .../farm_designer/saved_gardens/garden_edit.tsx | 4 ++-- .../farm_designer/saved_gardens/garden_list.tsx | 2 +- .../saved_gardens/saved_gardens.tsx | 6 +++--- frontend/farm_designer/settings.tsx | 5 ++--- frontend/farm_designer/state_to_props.ts | 2 +- .../tools/__tests__/add_tool_slot_test.tsx | 6 +++--- .../tools/__tests__/add_tool_test.tsx | 2 +- .../tools/__tests__/edit_tool_slot_test.tsx | 8 ++++---- .../tools/__tests__/edit_tool_test.tsx | 4 ++-- .../tools/__tests__/index_test.tsx | 6 +++--- frontend/farm_designer/tools/add_tool.tsx | 4 ++-- frontend/farm_designer/tools/add_tool_slot.tsx | 4 ++-- frontend/farm_designer/tools/edit_tool.tsx | 4 ++-- frontend/farm_designer/tools/edit_tool_slot.tsx | 4 ++-- frontend/farm_designer/tools/index.tsx | 10 +++++----- .../tools/map_to_props_add_edit.ts | 2 +- .../tools/tool_slot_edit_components.tsx | 2 +- frontend/farm_designer/util.ts | 3 +-- .../zones/__tests__/add_zone_test.tsx | 2 +- .../zones/__tests__/edit_zone_test.tsx | 4 ++-- .../zones/__tests__/zones_inventory_test.tsx | 2 +- frontend/farm_designer/zones/add_zone.tsx | 2 +- frontend/farm_designer/zones/edit_zone.tsx | 2 +- .../farm_designer/zones/zones_inventory.tsx | 6 +++--- frontend/farmware/__tests__/actions_test.ts | 2 +- .../farmware/__tests__/farmware_forms_test.tsx | 5 ++--- .../farmware/__tests__/farmware_info_test.tsx | 2 +- .../farmware/__tests__/farmware_list_test.tsx | 2 +- frontend/farmware/__tests__/farmware_test.tsx | 6 +++--- .../__tests__/generate_manifest_info_test.ts | 2 +- frontend/farmware/__tests__/reducer_test.ts | 2 +- .../farmware/__tests__/state_to_props_test.tsx | 4 ++-- .../__tests__/camera_calibration_test.tsx | 2 +- .../camera_calibration/camera_calibration.tsx | 2 +- .../farmware/camera_calibration/interfaces.ts | 2 +- frontend/farmware/farmware_forms.tsx | 2 +- frontend/farmware/images/photos.tsx | 4 ++-- frontend/farmware/index.tsx | 4 ++-- frontend/farmware/state_to_props.ts | 8 ++++---- .../__tests__/weed_detector_test.tsx | 2 +- frontend/farmware/weed_detector/config.tsx | 4 ++-- frontend/farmware/weed_detector/constants.ts | 2 +- frontend/farmware/weed_detector/index.tsx | 2 +- .../remote_env/__tests__/translators_test.ts | 2 +- frontend/folders/__tests__/actions_test.ts | 2 +- .../folders/__tests__/data_transfer_test.ts | 2 +- frontend/folders/__tests__/reducer_test.ts | 4 ++-- .../__tests__/search_folder_tree_test.ts | 8 ++++---- frontend/folders/climb.ts | 2 +- frontend/folders/component.tsx | 2 +- .../__tests__/create_account_test.tsx | 2 +- frontend/front_page/create_account.tsx | 2 +- frontend/help/docs.tsx | 2 +- frontend/help/tour.tsx | 2 +- frontend/help/tours.ts | 2 +- frontend/hotkeys.tsx | 6 +++--- frontend/logs/__tests__/state_to_props_test.ts | 2 +- .../components/__tests__/settings_menu_test.tsx | 2 +- frontend/logs/components/logs_table.tsx | 2 +- frontend/logs/components/settings_menu.tsx | 2 +- frontend/logs/state_to_props.ts | 2 +- .../messages/__tests__/state_to_props_test.ts | 2 +- frontend/messages/cards.tsx | 6 +++--- frontend/messages/state_to_props.ts | 4 ++-- .../compute_editor_url_from_state_test.ts | 2 +- frontend/nav/nav_links.tsx | 2 +- frontend/redux/__tests__/subscribers_test.ts | 4 ++-- .../version_tracker_middleware_tests.ts | 2 +- frontend/redux/middlewares.ts | 4 ++-- frontend/regimens/__tests__/index_test.tsx | 4 ++-- frontend/regimens/__tests__/reducer_test.ts | 2 +- .../regimens/__tests__/state_to_props_test.ts | 8 ++++---- .../bulk_scheduler/__tests__/actions_test.ts | 10 +++++----- .../bulk_scheduler/__tests__/index_test.tsx | 2 +- frontend/regimens/bulk_scheduler/index.tsx | 2 +- frontend/regimens/bulk_scheduler/interfaces.ts | 2 +- .../editor/__tests__/active_editor_test.tsx | 2 +- .../regimens/editor/__tests__/index_test.tsx | 2 +- frontend/regimens/editor/active_editor.tsx | 6 +++--- frontend/regimens/editor/index.tsx | 2 +- frontend/regimens/state_to_props.ts | 6 +++--- frontend/resources/__tests__/in_use_test.ts | 6 +++--- frontend/resources/__tests__/reducer_test.ts | 2 +- frontend/resources/__tests__/selectors_test.ts | 6 +++--- .../resources/__tests__/sequence_meta_test.ts | 10 +++++----- .../__tests__/sequence_tagging_test.ts | 2 +- frontend/resources/getters.ts | 2 +- frontend/resources/interfaces.ts | 2 +- frontend/resources/reducer.ts | 2 +- frontend/resources/reducer_support.ts | 6 +++--- frontend/resources/selectors.ts | 2 +- frontend/resources/selectors_for_indexing.ts | 6 +++--- frontend/resources/sequence_meta.ts | 6 +++--- frontend/resources/sequence_tagging.ts | 2 +- frontend/sequences/__tests__/actions_test.ts | 2 +- frontend/sequences/__tests__/all_steps_test.tsx | 2 +- .../sequence_editor_middle_active_test.tsx | 6 +++--- .../__tests__/sequence_editor_middle_test.tsx | 4 ++-- .../__tests__/sequence_select_box_test.tsx | 4 ++-- frontend/sequences/__tests__/sequences_test.tsx | 6 +++--- .../sequences/__tests__/state_to_props_test.ts | 4 ++-- .../sequences/__tests__/test_button_test.tsx | 2 +- .../__tests__/default_value_form_test.tsx | 2 +- .../__tests__/is_parameterized_test.ts | 2 +- .../locals_list/__tests__/locals_list_test.tsx | 4 ++-- ...location_form_coordinate_input_boxes_test.ts | 2 +- .../__tests__/location_form_list_test.ts | 4 ++-- .../__tests__/location_form_test.tsx | 6 +++--- .../__tests__/sanitize_nodes_test.ts | 2 +- .../__tests__/variable_support_test.ts | 6 +++--- .../locals_list/default_value_form.tsx | 4 ++-- frontend/sequences/locals_list/handle_select.ts | 6 +++--- frontend/sequences/locals_list/locals_list.tsx | 2 +- .../locals_list/locals_list_support.ts | 4 ++-- .../sequences/locals_list/location_form_list.ts | 2 +- .../sequences/locals_list/sanitize_nodes.ts | 4 ++-- .../sequences/locals_list/variable_support.ts | 10 +++++----- frontend/sequences/sequence_editor_middle.tsx | 2 +- frontend/sequences/state_to_props.ts | 2 +- frontend/sequences/step_button_cluster.tsx | 3 +-- .../step_tiles/__tests__/index_test.ts | 8 ++++---- .../pin_and_peripheral_support_test.tsx | 10 +++++----- .../__tests__/tile_assertion_test.tsx | 2 +- .../__tests__/tile_calibrate_test.tsx | 2 +- .../tile_execute_script_support_test.tsx | 2 +- .../__tests__/tile_execute_script_test.tsx | 2 +- .../__tests__/tile_find_home_test.tsx | 2 +- .../tile_move_absolute_conflict_check_test.tsx | 2 +- .../__tests__/tile_move_absolute_test.tsx | 8 ++++---- .../__tests__/tile_pin_support_test.tsx | 2 +- .../__tests__/tile_send_message_test.tsx | 2 +- .../__tests__/tile_set_servo_angle_test.tsx | 2 +- .../__tests__/tile_take_photo_test.tsx | 2 +- frontend/sequences/step_tiles/index.tsx | 2 +- .../mark_as/__tests__/action_list_test.ts | 2 +- .../mark_as/__tests__/unpack_step_test.ts | 2 +- .../sequences/step_tiles/mark_as/action_list.ts | 2 +- .../step_tiles/mark_as/assertion_support.ts | 6 +++--- .../sequences/step_tiles/mark_as/constants.ts | 6 +++--- .../sequences/step_tiles/mark_as/unpack_step.ts | 2 +- .../step_tiles/pin_and_peripheral_support.tsx | 8 ++++---- .../sequences/step_tiles/tile_calibrate.tsx | 2 +- frontend/sequences/step_tiles/tile_execute.tsx | 2 +- .../step_tiles/tile_execute_script.tsx | 2 +- .../sequences/step_tiles/tile_find_home.tsx | 2 +- .../step_tiles/tile_if/__tests__/index_test.tsx | 6 +++--- .../step_tiles/tile_if/__tests__/lhs_test.ts | 4 ++-- frontend/sequences/step_tiles/tile_if/index.tsx | 10 +++++----- .../sequences/step_tiles/tile_move_absolute.tsx | 4 ++-- .../sequences/step_tiles/tile_pin_support.tsx | 4 ++-- frontend/sequences/step_tiles/tile_read_pin.tsx | 2 +- .../sequences/step_tiles/tile_send_message.tsx | 2 +- .../step_tiles/tile_send_message_support.tsx | 2 +- .../sequences/step_tiles/tile_write_pin.tsx | 4 ++-- .../step_ui/__tests__/step_ui_test.tsx | 2 +- frontend/sequences/step_ui/step_radio.tsx | 2 +- frontend/sequences/test_button.tsx | 2 +- frontend/session.ts | 2 +- frontend/session_keys.ts | 2 +- frontend/sync/actions.ts | 6 +++--- .../ui/__tests__/blurable_password_test.tsx | 2 +- frontend/util/move.ts | 4 ++-- frontend/util/page.ts | 2 +- frontend/util/stop_ie.ts | 4 ++-- frontend/util/util.ts | 2 +- tslint.json | 12 ++++++++++++ 418 files changed, 726 insertions(+), 728 deletions(-) diff --git a/frontend/__test_support__/fake_state/images.ts b/frontend/__test_support__/fake_state/images.ts index c032dd147..d09ad6de4 100644 --- a/frontend/__test_support__/fake_state/images.ts +++ b/frontend/__test_support__/fake_state/images.ts @@ -54,5 +54,5 @@ export const fakeImages: TaggedImage[] = [ } }, "uuid": "Image.7.5" - } + }, ]; diff --git a/frontend/__test_support__/fake_state/resources.ts b/frontend/__test_support__/fake_state/resources.ts index cbddcceae..015b8432d 100644 --- a/frontend/__test_support__/fake_state/resources.ts +++ b/frontend/__test_support__/fake_state/resources.ts @@ -29,7 +29,7 @@ import { } from "farmbot"; import { fakeResource } from "../fake_resource"; import { - ExecutableType, PinBindingType, Folder + ExecutableType, PinBindingType, Folder, } from "farmbot/dist/resources/api_resources"; import { FirmwareConfig } from "farmbot/dist/resources/configs/firmware"; import { MessageType } from "../../sequences/interfaces"; diff --git a/frontend/__test_support__/fake_variables.ts b/frontend/__test_support__/fake_variables.ts index 449779f1c..084285ff0 100644 --- a/frontend/__test_support__/fake_variables.ts +++ b/frontend/__test_support__/fake_variables.ts @@ -2,7 +2,7 @@ import { Coordinate } from "farmbot"; import { VariableNameSet } from "../resources/interfaces"; export const fakeVariableNameSet = ( - label = "parent", vector = { x: 0, y: 0, z: 0 } + label = "parent", vector = { x: 0, y: 0, z: 0 }, ): VariableNameSet => { const data_value: Coordinate = { kind: "coordinate", args: vector diff --git a/frontend/__test_support__/farm_event_calendar_support.ts b/frontend/__test_support__/farm_event_calendar_support.ts index 9d4d84b26..7bde8e97b 100644 --- a/frontend/__test_support__/farm_event_calendar_support.ts +++ b/frontend/__test_support__/farm_event_calendar_support.ts @@ -1,6 +1,6 @@ import moment from "moment"; import { - FarmEventWithExecutable + FarmEventWithExecutable, } from "../farm_designer/farm_events/calendar/interfaces"; export const TIME = { @@ -24,7 +24,7 @@ export const fakeFarmEventWithExecutable = (): FarmEventWithExecutable => { color: "red", name: "faker", kind: "sequence", - args: { version: 0, locals: { kind: "scope_declaration", args: {} }, } + args: { version: 0, locals: { kind: "scope_declaration", args: {} } } } }; }; @@ -84,7 +84,7 @@ export const calendarRows = [ "subheading": "25", "id": 79, "childExecutableName": "Goto 0, 0, 0 123" - } + }, ] }, { @@ -171,7 +171,7 @@ export const calendarRows = [ "subheading": "25", "id": 79, "childExecutableName": "Goto 0, 0, 0 123" - } + }, ] }, { @@ -258,7 +258,7 @@ export const calendarRows = [ "subheading": "25", "id": 79, "childExecutableName": "Goto 0, 0, 0 123" - } + }, ] - } + }, ]; diff --git a/frontend/__test_support__/resource_index_builder.ts b/frontend/__test_support__/resource_index_builder.ts index 1272005d0..ff4ce3bb8 100644 --- a/frontend/__test_support__/resource_index_builder.ts +++ b/frontend/__test_support__/resource_index_builder.ts @@ -62,7 +62,7 @@ const tr0: TaggedResource = { }, "speed": 100 } - } + }, ], "args": { "version": 4, @@ -287,7 +287,7 @@ const tr12: TaggedResource = { "regimen_id": 11, "sequence_id": 23, "time_offset": 345900000 - } + }, ], body: [], }, @@ -345,7 +345,7 @@ export const FAKE_RESOURCES: TaggedResource[] = [ tr0, tr14, tr15, - log + log, ]; const KIND: keyof TaggedResource = "kind"; // Safety first, kids. type ResourceGroupNumber = 0 | 1 | 2 | 3 | 4; diff --git a/frontend/__tests__/app_test.tsx b/frontend/__tests__/app_test.tsx index d13158a47..bdd6ff6d9 100644 --- a/frontend/__tests__/app_test.tsx +++ b/frontend/__tests__/app_test.tsx @@ -9,11 +9,11 @@ import { RawApp as App, AppProps, mapStateToProps } from "../app"; import { mount } from "enzyme"; import { bot } from "../__test_support__/fake_state/bot"; import { - fakeUser, fakeWebAppConfig, fakeFbosConfig, fakeFarmwareEnv + fakeUser, fakeWebAppConfig, fakeFbosConfig, fakeFarmwareEnv, } from "../__test_support__/fake_state/resources"; import { fakeState } from "../__test_support__/fake_state"; import { - buildResourceIndex + buildResourceIndex, } from "../__test_support__/resource_index_builder"; import { ResourceName } from "farmbot"; import { fakeTimeSettings } from "../__test_support__/fake_time_settings"; @@ -125,7 +125,7 @@ describe(": NavBar", () => { "Device", "Sequences", "Regimens", - "Farmware" + "Farmware", ]; strings.map(string => expect(t).toContain(string)); wrapper.unmount(); diff --git a/frontend/__tests__/attach_app_to_dom_test.ts b/frontend/__tests__/attach_app_to_dom_test.ts index 2c18907d9..3daabdbf2 100644 --- a/frontend/__tests__/attach_app_to_dom_test.ts +++ b/frontend/__tests__/attach_app_to_dom_test.ts @@ -10,7 +10,7 @@ jest.mock("../redux/store", () => { }); jest.mock("../account/dev/dev_support", () => ({ - DevSettings: { futureFeaturesEnabled: () => false, } + DevSettings: { futureFeaturesEnabled: () => false } })); jest.mock("../config/actions", () => { diff --git a/frontend/__tests__/interceptors_test.ts b/frontend/__tests__/interceptors_test.ts index 7316ac461..fbc179327 100644 --- a/frontend/__tests__/interceptors_test.ts +++ b/frontend/__tests__/interceptors_test.ts @@ -19,7 +19,7 @@ jest.mock("../session", () => ({ })); import { - responseFulfilled, isLocalRequest, requestFulfilled, responseRejected + responseFulfilled, isLocalRequest, requestFulfilled, responseRejected, } from "../interceptors"; import { AxiosResponse, Method } from "axios"; import { uuid } from "farmbot"; diff --git a/frontend/__tests__/refresh_token_no_test.ts b/frontend/__tests__/refresh_token_no_test.ts index aeb1c09c2..888f42596 100644 --- a/frontend/__tests__/refresh_token_no_test.ts +++ b/frontend/__tests__/refresh_token_no_test.ts @@ -9,7 +9,7 @@ jest.mock("axios", () => ({ })); -jest.mock("../session", () => ({ Session: { clear: jest.fn(), } })); +jest.mock("../session", () => ({ Session: { clear: jest.fn() } })); import { maybeRefreshToken } from "../refresh_token"; import { API } from "../api/index"; diff --git a/frontend/__tests__/resource_index_builder_test.ts b/frontend/__tests__/resource_index_builder_test.ts index e953c7296..05ec30418 100644 --- a/frontend/__tests__/resource_index_builder_test.ts +++ b/frontend/__tests__/resource_index_builder_test.ts @@ -1,6 +1,6 @@ import { buildResourceIndex, - FAKE_RESOURCES + FAKE_RESOURCES, } from "../__test_support__/resource_index_builder"; import { TaggedFarmEvent, SpecialStatus } from "farmbot"; diff --git a/frontend/__tests__/route_config_test.tsx b/frontend/__tests__/route_config_test.tsx index 20bded0a9..85a879908 100644 --- a/frontend/__tests__/route_config_test.tsx +++ b/frontend/__tests__/route_config_test.tsx @@ -12,7 +12,7 @@ type Info = UnboundRouteConfig<{}, {}>; const fakeCallback = ( component: ConnectedComponent, child: ConnectedComponent | undefined, - info: Info + info: Info, ) => { if (info.$ == "*") { expect(component.name).toEqual("FourOhFour"); diff --git a/frontend/account/__tests__/request_account_exports_test.ts b/frontend/account/__tests__/request_account_exports_test.ts index 4cb97b3cf..873abbef1 100644 --- a/frontend/account/__tests__/request_account_exports_test.ts +++ b/frontend/account/__tests__/request_account_exports_test.ts @@ -11,7 +11,7 @@ jest.mock("axios", () => ({ import { API } from "../../api"; import { Content } from "../../constants"; import { - requestAccountExport, generateFilename + requestAccountExport, generateFilename, } from "../request_account_export"; import { success } from "../../toast/toast"; import axios from "axios"; diff --git a/frontend/account/components/change_password.tsx b/frontend/account/components/change_password.tsx index 8be5d0c7e..0288b3c43 100644 --- a/frontend/account/components/change_password.tsx +++ b/frontend/account/components/change_password.tsx @@ -3,7 +3,7 @@ import { Widget, WidgetHeader, WidgetBody, - SaveBtn + SaveBtn, } from "../../ui/index"; import { SpecialStatus } from "farmbot"; import Axios from "axios"; diff --git a/frontend/account/components/settings.tsx b/frontend/account/components/settings.tsx index ff59123d9..bfb51407b 100644 --- a/frontend/account/components/settings.tsx +++ b/frontend/account/components/settings.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import { - BlurableInput, Widget, WidgetHeader, WidgetBody, SaveBtn + BlurableInput, Widget, WidgetHeader, WidgetBody, SaveBtn, } from "../../ui/index"; import { SettingsPropTypes } from "../interfaces"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/account/dev/__tests__/dev_mode_test.tsx b/frontend/account/dev/__tests__/dev_mode_test.tsx index 66abd2d7f..39dcd3d56 100644 --- a/frontend/account/dev/__tests__/dev_mode_test.tsx +++ b/frontend/account/dev/__tests__/dev_mode_test.tsx @@ -8,7 +8,7 @@ import { DevMode } from "../dev_mode"; import * as React from "react"; import { range } from "lodash"; import { - setWebAppConfigValue + setWebAppConfigValue, } from "../../../config_storage/actions"; import { warning } from "../../../toast/toast"; diff --git a/frontend/account/dev/__tests__/dev_widget_test.tsx b/frontend/account/dev/__tests__/dev_widget_test.tsx index cbd670afa..058ee8d3a 100644 --- a/frontend/account/dev/__tests__/dev_widget_test.tsx +++ b/frontend/account/dev/__tests__/dev_widget_test.tsx @@ -7,7 +7,7 @@ jest.mock("../../../config_storage/actions", () => ({ import * as React from "react"; import { mount, shallow } from "enzyme"; import { - DevWidget, DevWidgetFERow, DevWidgetFBOSRow, DevWidgetDelModeRow + DevWidget, DevWidgetFERow, DevWidgetFBOSRow, DevWidgetDelModeRow, } from "../dev_widget"; import { DevSettings } from "../dev_support"; import { setWebAppConfigValue } from "../../../config_storage/actions"; diff --git a/frontend/account/dev/dev_support.ts b/frontend/account/dev/dev_support.ts index 0c6a0e414..a604c7570 100644 --- a/frontend/account/dev/dev_support.ts +++ b/frontend/account/dev/dev_support.ts @@ -1,6 +1,6 @@ import { store } from "../../redux/store"; import { - getWebAppConfigValue, setWebAppConfigValue + getWebAppConfigValue, setWebAppConfigValue, } from "../../config_storage/actions"; import { BooleanConfigKey } from "farmbot/dist/resources/configs/web_app"; diff --git a/frontend/account/dev/dev_widget.tsx b/frontend/account/dev/dev_widget.tsx index 2a6ad1ea8..3837c9010 100644 --- a/frontend/account/dev/dev_widget.tsx +++ b/frontend/account/dev/dev_widget.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import { - Widget, WidgetHeader, WidgetBody, Row, Col, BlurableInput + Widget, WidgetHeader, WidgetBody, Row, Col, BlurableInput, } from "../../ui"; import { ToggleButton } from "../../controls/toggle_button"; import { setWebAppConfigValue } from "../../config_storage/actions"; diff --git a/frontend/account/index.tsx b/frontend/account/index.tsx index dac34ae48..c222cb409 100644 --- a/frontend/account/index.tsx +++ b/frontend/account/index.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { connect } from "react-redux"; import { - Settings, ChangePassword, ExportAccountPanel, DangerousDeleteWidget + Settings, ChangePassword, ExportAccountPanel, DangerousDeleteWidget, } from "./components"; import { Props } from "./interfaces"; import { Page, Row, Col } from "../ui"; diff --git a/frontend/account/labs/__tests__/labs_features_test.tsx b/frontend/account/labs/__tests__/labs_features_test.tsx index 9d518772e..05ac2e7ab 100644 --- a/frontend/account/labs/__tests__/labs_features_test.tsx +++ b/frontend/account/labs/__tests__/labs_features_test.tsx @@ -5,7 +5,7 @@ const mockFeatures = [ storageKey: "weedDetector", callback: jest.fn(), value: false - } + }, ]; const mocks = { diff --git a/frontend/account/labs/labs_features_list_data.ts b/frontend/account/labs/labs_features_list_data.ts index 2e1b58207..2acc81fd4 100644 --- a/frontend/account/labs/labs_features_list_data.ts +++ b/frontend/account/labs/labs_features_list_data.ts @@ -1,7 +1,7 @@ import { BooleanSetting } from "../../session_keys"; import { Content } from "../../constants"; import { - GetWebAppConfigValue, setWebAppConfigValue + GetWebAppConfigValue, setWebAppConfigValue, } from "../../config_storage/actions"; import { BooleanConfigKey } from "farmbot/dist/resources/configs/web_app"; import { t } from "../../i18next_wrapper"; @@ -78,7 +78,7 @@ export const fetchLabFeatures = storageKey: BooleanSetting.user_interface_read_only_mode, value: false, displayInvert: false, - } + }, ].map(fetchSettingValue(getConfigValue))); /** Always allow toggling from true => false (deactivate). diff --git a/frontend/app.tsx b/frontend/app.tsx index c22a3fb5e..cdf2c1519 100644 --- a/frontend/app.tsx +++ b/frontend/app.tsx @@ -18,7 +18,7 @@ import { validBotLocationData, validFwConfig, validFbosConfig } from "./util"; import { BooleanSetting } from "./session_keys"; import { getPathArray } from "./history"; import { - getWebAppConfigValue, GetWebAppConfigValue + getWebAppConfigValue, GetWebAppConfigValue, } from "./config_storage/actions"; import { takeSortedLogs } from "./logs/state_to_props"; import { FirmwareConfig } from "farmbot/dist/resources/configs/firmware"; @@ -99,7 +99,7 @@ const MUST_LOAD: ResourceName[] = [ "FarmEvent", "Point", "Device", - "Tool" // Sequence editor needs this for rendering. + "Tool", // Sequence editor needs this for rendering. ]; export class RawApp extends React.Component { diff --git a/frontend/auth/actions.ts b/frontend/auth/actions.ts index 9527939f0..f8d417137 100644 --- a/frontend/auth/actions.ts +++ b/frontend/auth/actions.ts @@ -1,7 +1,7 @@ import axios from "axios"; import { fetchReleases, fetchMinOsFeatureData, - fetchLatestGHBetaRelease + fetchLatestGHBetaRelease, } from "../devices/actions"; import { AuthState } from "./interfaces"; import { ReduxAction } from "../redux/interfaces"; @@ -10,7 +10,7 @@ import { API } from "../api"; import { responseFulfilled, responseRejected, - requestFulfilled + requestFulfilled, } from "../interceptors"; import { Actions } from "../constants"; import { connectDevice } from "../connectivity/connect_device"; diff --git a/frontend/config_storage/__tests__/actions_test.ts b/frontend/config_storage/__tests__/actions_test.ts index 9794fbec1..e1b9474a0 100644 --- a/frontend/config_storage/__tests__/actions_test.ts +++ b/frontend/config_storage/__tests__/actions_test.ts @@ -1,5 +1,5 @@ import { - toggleWebAppBool, getWebAppConfigValue, setWebAppConfigValue + toggleWebAppBool, getWebAppConfigValue, setWebAppConfigValue, } from "../actions"; import { BooleanSetting, NumericSetting } from "../../session_keys"; import { edit, save } from "../../api/crud"; diff --git a/frontend/config_storage/actions.ts b/frontend/config_storage/actions.ts index 54688ebb5..c4b023dc6 100644 --- a/frontend/config_storage/actions.ts +++ b/frontend/config_storage/actions.ts @@ -4,7 +4,7 @@ import { BooleanConfigKey, WebAppConfig, NumberConfigKey, - StringConfigKey + StringConfigKey, } from "farmbot/dist/resources/configs/web_app"; import { getWebAppConfig } from "../resources/getters"; diff --git a/frontend/connectivity/__tests__/auto_sync_handle_inbound_test.ts b/frontend/connectivity/__tests__/auto_sync_handle_inbound_test.ts index d4aa6ca43..ac905d4a0 100644 --- a/frontend/connectivity/__tests__/auto_sync_handle_inbound_test.ts +++ b/frontend/connectivity/__tests__/auto_sync_handle_inbound_test.ts @@ -10,7 +10,7 @@ import { fakeState } from "../../__test_support__/fake_state"; import { GetState } from "../../redux/interfaces"; import { handleInbound } from "../auto_sync_handle_inbound"; import { - handleCreateOrUpdate + handleCreateOrUpdate, } from "../auto_sync"; import { destroyOK } from "../../resources/actions"; import { SkipMqttData, BadMqttData, UpdateMqttData, DeleteMqttData } from "../interfaces"; diff --git a/frontend/connectivity/__tests__/auto_sync_test.ts b/frontend/connectivity/__tests__/auto_sync_test.ts index 84c1129af..c0fcf47fc 100644 --- a/frontend/connectivity/__tests__/auto_sync_test.ts +++ b/frontend/connectivity/__tests__/auto_sync_test.ts @@ -4,7 +4,7 @@ import { asTaggedResource, handleCreate, handleUpdate, - handleCreateOrUpdate + handleCreateOrUpdate, } from "../auto_sync"; import { SpecialStatus, TaggedSequence } from "farmbot"; import { Actions } from "../../constants"; diff --git a/frontend/connectivity/__tests__/connect_device/event_listeners_test.ts b/frontend/connectivity/__tests__/connect_device/event_listeners_test.ts index f8bb6453f..223ae101b 100644 --- a/frontend/connectivity/__tests__/connect_device/event_listeners_test.ts +++ b/frontend/connectivity/__tests__/connect_device/event_listeners_test.ts @@ -35,7 +35,7 @@ describe("attachEventListeners", () => { ].map(e => expect(dev.on).toHaveBeenCalledWith(e, expect.any(Function))); [ "message", - "reconnect" + "reconnect", ].map(e => { if (dev.client) { expect(dev.client.on).toHaveBeenCalledWith(e, expect.any(Function)); diff --git a/frontend/connectivity/__tests__/connect_device/status_checks_test.ts b/frontend/connectivity/__tests__/connect_device/status_checks_test.ts index 8b0c3d78f..1b0fbda1a 100644 --- a/frontend/connectivity/__tests__/connect_device/status_checks_test.ts +++ b/frontend/connectivity/__tests__/connect_device/status_checks_test.ts @@ -9,7 +9,7 @@ import { incomingStatus, incomingLegacyStatus, onLegacyStatus, - HACKY_FLAGS + HACKY_FLAGS, } from "../../connect_device"; import { slowDown } from "../../slow_down"; import { fakeState } from "../../../__test_support__/fake_state"; diff --git a/frontend/connectivity/__tests__/data_consistency_test.ts b/frontend/connectivity/__tests__/data_consistency_test.ts index 82161a88d..3023a8b2f 100644 --- a/frontend/connectivity/__tests__/data_consistency_test.ts +++ b/frontend/connectivity/__tests__/data_consistency_test.ts @@ -20,7 +20,7 @@ import { getDevice } from "../../device"; import { store } from "../../redux/store"; import { Actions } from "../../constants"; import { - startTracking, outstandingRequests, stopTracking, cleanUUID + startTracking, outstandingRequests, stopTracking, cleanUUID, } from "../data_consistency"; const unprocessedUuid = "~UU.ID~"; diff --git a/frontend/connectivity/__tests__/ping_mqtt_test.ts b/frontend/connectivity/__tests__/ping_mqtt_test.ts index ea00a23cb..bd2b154a5 100644 --- a/frontend/connectivity/__tests__/ping_mqtt_test.ts +++ b/frontend/connectivity/__tests__/ping_mqtt_test.ts @@ -8,7 +8,7 @@ jest.mock("../index", () => ({ import { readPing, startPinging, - PING_INTERVAL + PING_INTERVAL, } from "../ping_mqtt"; import { Farmbot, RpcRequest, RpcRequestBodyItem } from "farmbot"; import { FarmBotInternalConfig } from "farmbot/dist/config"; diff --git a/frontend/connectivity/__tests__/reducer_qos_test.ts b/frontend/connectivity/__tests__/reducer_qos_test.ts index ec41072fa..dd06996fc 100644 --- a/frontend/connectivity/__tests__/reducer_qos_test.ts +++ b/frontend/connectivity/__tests__/reducer_qos_test.ts @@ -41,7 +41,7 @@ describe("connectivity reducer", () => { it("broadcasts PING_OK", () => { pingOK("yep", 123); expect(store.dispatch).toHaveBeenCalledWith({ - payload: { at: 123, id: "yep", }, + payload: { at: 123, id: "yep" }, type: "PING_OK", }); }); diff --git a/frontend/connectivity/auto_sync.ts b/frontend/connectivity/auto_sync.ts index 94972a8d4..d7b01fb6a 100644 --- a/frontend/connectivity/auto_sync.ts +++ b/frontend/connectivity/auto_sync.ts @@ -4,7 +4,7 @@ import { TaggedResource, SpecialStatus } from "farmbot"; import { overwrite, init } from "../api/crud"; import { handleInbound } from "./auto_sync_handle_inbound"; import { - SyncPayload, MqttDataResult, Reason, UpdateMqttData + SyncPayload, MqttDataResult, Reason, UpdateMqttData, } from "./interfaces"; import { outstandingRequests } from "./data_consistency"; import { newTaggedResource } from "../sync/actions"; diff --git a/frontend/connectivity/log_handlers.ts b/frontend/connectivity/log_handlers.ts index 598c52afc..4c4fad2d2 100644 --- a/frontend/connectivity/log_handlers.ts +++ b/frontend/connectivity/log_handlers.ts @@ -3,7 +3,7 @@ import { actOnChannelName, showLogOnScreen, speakLogAloud, - initLog + initLog, } from "./connect_device"; import { GetState } from "../redux/interfaces"; import { Log } from "farmbot/dist/resources/api_resources"; diff --git a/frontend/connectivity/ping_mqtt.tsx b/frontend/connectivity/ping_mqtt.tsx index 0fc71f052..df2c381fb 100644 --- a/frontend/connectivity/ping_mqtt.tsx +++ b/frontend/connectivity/ping_mqtt.tsx @@ -4,7 +4,7 @@ import { dispatchNetworkUp, dispatchQosStart, pingOK, - pingNO + pingNO, } from "./index"; import { isNumber } from "lodash"; import axios from "axios"; diff --git a/frontend/connectivity/reducer.ts b/frontend/connectivity/reducer.ts index 90e322107..81597929a 100644 --- a/frontend/connectivity/reducer.ts +++ b/frontend/connectivity/reducer.ts @@ -2,7 +2,7 @@ import { generateReducer } from "../redux/generate_reducer"; import { Actions } from "../constants"; import { ConnectionState, - EdgeStatus + EdgeStatus, } from "./interfaces"; import { startPing, completePing, failPing } from "../devices/connectivity/qos"; diff --git a/frontend/controls/__tests__/controls_test.tsx b/frontend/controls/__tests__/controls_test.tsx index 15462ac06..aba980723 100644 --- a/frontend/controls/__tests__/controls_test.tsx +++ b/frontend/controls/__tests__/controls_test.tsx @@ -3,7 +3,7 @@ import { mount } from "enzyme"; import { RawControls as Controls } from "../controls"; import { bot } from "../../__test_support__/fake_state/bot"; import { - fakePeripheral, fakeWebcamFeed, fakeSensor + fakePeripheral, fakeWebcamFeed, fakeSensor, } from "../../__test_support__/fake_state/resources"; import { Dictionary } from "farmbot"; import { Props } from "../interfaces"; diff --git a/frontend/controls/interfaces.ts b/frontend/controls/interfaces.ts index ee67adae1..038dda123 100644 --- a/frontend/controls/interfaces.ts +++ b/frontend/controls/interfaces.ts @@ -1,12 +1,12 @@ import { - BotState, Xyz, BotPosition, ShouldDisplay, UserEnv + BotState, Xyz, BotPosition, ShouldDisplay, UserEnv, } from "../devices/interfaces"; import { Vector3, McuParams, FirmwareHardware } from "farmbot/dist"; import { TaggedWebcamFeed, TaggedPeripheral, TaggedSensor, - TaggedSensorReading + TaggedSensorReading, } from "farmbot"; import { NetworkState } from "../connectivity/interfaces"; import { GetWebAppConfigValue } from "../config_storage/actions"; diff --git a/frontend/controls/move/__tests__/direction_axes_props_test.ts b/frontend/controls/move/__tests__/direction_axes_props_test.ts index 9c0c60bf7..77c74ea24 100644 --- a/frontend/controls/move/__tests__/direction_axes_props_test.ts +++ b/frontend/controls/move/__tests__/direction_axes_props_test.ts @@ -1,5 +1,5 @@ import { - calcMicrostepsPerMm, calculateAxialLengths + calcMicrostepsPerMm, calculateAxialLengths, } from "../direction_axes_props"; import { fakeFirmwareConfig } from "../../../__test_support__/fake_state/resources"; diff --git a/frontend/controls/move/__tests__/direction_button_test.tsx b/frontend/controls/move/__tests__/direction_button_test.tsx index fb6695454..9dba547b3 100644 --- a/frontend/controls/move/__tests__/direction_button_test.tsx +++ b/frontend/controls/move/__tests__/direction_button_test.tsx @@ -9,7 +9,7 @@ jest.mock("../../../device", () => ({ import * as React from "react"; import { mount } from "enzyme"; import { - DirectionButton, directionDisabled, calculateDistance + DirectionButton, directionDisabled, calculateDistance, } from "../direction_button"; import { DirectionButtonProps } from "../interfaces"; diff --git a/frontend/controls/move/__tests__/settings_menu_test.tsx b/frontend/controls/move/__tests__/settings_menu_test.tsx index 6393e2b20..8545993e6 100644 --- a/frontend/controls/move/__tests__/settings_menu_test.tsx +++ b/frontend/controls/move/__tests__/settings_menu_test.tsx @@ -9,7 +9,7 @@ import * as React from "react"; import { mount } from "enzyme"; import { BooleanSetting } from "../../../session_keys"; import { - moveWidgetSetting, MoveWidgetSettingsMenu, MoveWidgetSettingsMenuProps + moveWidgetSetting, MoveWidgetSettingsMenu, MoveWidgetSettingsMenuProps, } from "../settings_menu"; describe("moveWidgetSetting()", () => { diff --git a/frontend/controls/move/jog_buttons.tsx b/frontend/controls/move/jog_buttons.tsx index dacf00ca4..6dcf1c900 100644 --- a/frontend/controls/move/jog_buttons.tsx +++ b/frontend/controls/move/jog_buttons.tsx @@ -6,7 +6,7 @@ import { getDevice } from "../../device"; import { buildDirectionProps } from "./direction_axes_props"; import { t } from "../../i18next_wrapper"; import { - cameraBtnProps + cameraBtnProps, } from "../../devices/components/fbos_settings/camera_selection"; const DEFAULT_STEP_SIZE = 100; diff --git a/frontend/controls/move/motor_position_plot.tsx b/frontend/controls/move/motor_position_plot.tsx index 68fbe7379..06271281e 100644 --- a/frontend/controls/move/motor_position_plot.tsx +++ b/frontend/controls/move/motor_position_plot.tsx @@ -4,7 +4,7 @@ import moment from "moment"; import { BotLocationData, BotPosition } from "../../devices/interfaces"; import { trim } from "../../util"; import { - cloneDeep, max, get, isNumber, isEqual, takeRight, ceil, range + cloneDeep, max, get, isNumber, isEqual, takeRight, ceil, range, } from "lodash"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/controls/move/settings_menu.tsx b/frontend/controls/move/settings_menu.tsx index b75789921..c401237e0 100644 --- a/frontend/controls/move/settings_menu.tsx +++ b/frontend/controls/move/settings_menu.tsx @@ -27,7 +27,7 @@ export interface MoveWidgetSettingsMenuProps { } export const MoveWidgetSettingsMenu = ( - { toggle, getValue, firmwareHardware }: MoveWidgetSettingsMenuProps + { toggle, getValue, firmwareHardware }: MoveWidgetSettingsMenuProps, ) => { const Setting = moveWidgetSetting(toggle, getValue); return
diff --git a/frontend/controls/move/step_size_selector.tsx b/frontend/controls/move/step_size_selector.tsx index eb9104888..1bd238f3c 100644 --- a/frontend/controls/move/step_size_selector.tsx +++ b/frontend/controls/move/step_size_selector.tsx @@ -21,16 +21,13 @@ export class StepSizeSelector extends React.Component render() { return
- { - this.props.choices.map( - (item: number, inx: number) => - ) - } + {this.props.choices.map((item: number, inx: number) => + )}
; } } diff --git a/frontend/controls/peripherals/__tests__/peripheral_list_test.tsx b/frontend/controls/peripherals/__tests__/peripheral_list_test.tsx index d8bb97cb0..17cc68aa9 100644 --- a/frontend/controls/peripherals/__tests__/peripheral_list_test.tsx +++ b/frontend/controls/peripherals/__tests__/peripheral_list_test.tsx @@ -10,7 +10,7 @@ import { mount } from "enzyme"; import { PeripheralList } from "../peripheral_list"; import { TaggedPeripheral, - SpecialStatus + SpecialStatus, } from "farmbot"; import { Pins } from "farmbot/dist"; diff --git a/frontend/controls/peripherals/index.tsx b/frontend/controls/peripherals/index.tsx index cb5dfe3c0..2d6ba2989 100644 --- a/frontend/controls/peripherals/index.tsx +++ b/frontend/controls/peripherals/index.tsx @@ -51,7 +51,7 @@ export class Peripherals newPeripheral = ( pin: number | undefined = undefined, - label = t("New Peripheral") + label = t("New Peripheral"), ) => { this.props.dispatch(init("Peripheral", { pin, label })); }; diff --git a/frontend/controls/peripherals/peripheral_form.tsx b/frontend/controls/peripherals/peripheral_form.tsx index 0990f427f..bb7c0b9ca 100644 --- a/frontend/controls/peripherals/peripheral_form.tsx +++ b/frontend/controls/peripherals/peripheral_form.tsx @@ -26,6 +26,5 @@ export const PeripheralForm = (props: PeripheralFormProps) => dispatch={props.dispatch} uuid={peripheral.uuid} /> - - )} + )}
; diff --git a/frontend/controls/pin_form_fields.tsx b/frontend/controls/pin_form_fields.tsx index 515e30025..6b948a040 100644 --- a/frontend/controls/pin_form_fields.tsx +++ b/frontend/controls/pin_form_fields.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { edit } from "../api/crud"; import { FBSelect } from "../ui"; import { - pinDropdowns + pinDropdowns, } from "../sequences/step_tiles/pin_and_peripheral_support"; import { PIN_MODES } from "../sequences/step_tiles/tile_pin_support"; import { t } from "../i18next_wrapper"; diff --git a/frontend/controls/sensor_readings/__tests__/filter_readings_test.ts b/frontend/controls/sensor_readings/__tests__/filter_readings_test.ts index 404123c39..24558cabf 100644 --- a/frontend/controls/sensor_readings/__tests__/filter_readings_test.ts +++ b/frontend/controls/sensor_readings/__tests__/filter_readings_test.ts @@ -1,5 +1,5 @@ import { - fakeSensorReading, fakeSensor + fakeSensorReading, fakeSensor, } from "../../../__test_support__/fake_state/resources"; import { filterSensorReadings } from "../filter_readings"; import { SensorReadingsState } from "../interfaces"; diff --git a/frontend/controls/sensor_readings/__tests__/graph_test.tsx b/frontend/controls/sensor_readings/__tests__/graph_test.tsx index 8d97cfb7d..176e35e91 100644 --- a/frontend/controls/sensor_readings/__tests__/graph_test.tsx +++ b/frontend/controls/sensor_readings/__tests__/graph_test.tsx @@ -3,7 +3,7 @@ import { mount } from "enzyme"; import { SensorReadingsPlot, calcTimeParams } from "../graph"; import { SensorReadingPlotProps } from "../interfaces"; import { - fakeSensorReading + fakeSensorReading, } from "../../../__test_support__/fake_state/resources"; import { fakeTimeSettings } from "../../../__test_support__/fake_time_settings"; diff --git a/frontend/controls/sensor_readings/__tests__/sensor_readings_test.tsx b/frontend/controls/sensor_readings/__tests__/sensor_readings_test.tsx index d3f3ba031..439eb924f 100644 --- a/frontend/controls/sensor_readings/__tests__/sensor_readings_test.tsx +++ b/frontend/controls/sensor_readings/__tests__/sensor_readings_test.tsx @@ -3,7 +3,7 @@ import { mount } from "enzyme"; import { SensorReadings } from "../sensor_readings"; import { SensorReadingsProps } from "../interfaces"; import { - fakeSensorReading, fakeSensor + fakeSensorReading, fakeSensor, } from "../../../__test_support__/fake_state/resources"; import moment from "moment"; import { fakeTimeSettings } from "../../../__test_support__/fake_time_settings"; diff --git a/frontend/controls/sensor_readings/__tests__/table_test.tsx b/frontend/controls/sensor_readings/__tests__/table_test.tsx index 3e0522747..9ddd64384 100644 --- a/frontend/controls/sensor_readings/__tests__/table_test.tsx +++ b/frontend/controls/sensor_readings/__tests__/table_test.tsx @@ -3,7 +3,7 @@ import { mount } from "enzyme"; import { SensorReadingsTable } from "../table"; import { SensorReadingsTableProps } from "../interfaces"; import { - fakeSensorReading, fakeSensor + fakeSensorReading, fakeSensor, } from "../../../__test_support__/fake_state/resources"; import { fakeTimeSettings } from "../../../__test_support__/fake_time_settings"; diff --git a/frontend/controls/sensor_readings/__tests__/time_period_selection_test.tsx b/frontend/controls/sensor_readings/__tests__/time_period_selection_test.tsx index 44985a15f..71fc4a5c7 100644 --- a/frontend/controls/sensor_readings/__tests__/time_period_selection_test.tsx +++ b/frontend/controls/sensor_readings/__tests__/time_period_selection_test.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { mount, shallow } from "enzyme"; import { - TimePeriodSelection, getEndDate, DateDisplay + TimePeriodSelection, getEndDate, DateDisplay, } from "../time_period_selection"; import { fakeSensorReading } from "../../../__test_support__/fake_state/resources"; import { TimePeriodSelectionProps, DateDisplayProps } from "../interfaces"; diff --git a/frontend/controls/sensor_readings/filter_readings.ts b/frontend/controls/sensor_readings/filter_readings.ts index 26e427be7..1817ecc4c 100644 --- a/frontend/controls/sensor_readings/filter_readings.ts +++ b/frontend/controls/sensor_readings/filter_readings.ts @@ -10,7 +10,7 @@ const oneDay = 3600 * 24; export const calcEndOfPeriod = ( timePeriod: number, endDate: number, - period: "current" | "previous" + period: "current" | "previous", ) => endDate + oneDay - timePeriod * (period === "current" ? 0 : 1); diff --git a/frontend/controls/sensor_readings/sensor_readings.tsx b/frontend/controls/sensor_readings/sensor_readings.tsx index b903682cd..df50f80af 100644 --- a/frontend/controls/sensor_readings/sensor_readings.tsx +++ b/frontend/controls/sensor_readings/sensor_readings.tsx @@ -4,7 +4,7 @@ import { SensorReadingsProps, SensorReadingsState } from "./interfaces"; import { SensorReadingsTable } from "./table"; import { filterSensorReadings } from "./filter_readings"; import { - TimePeriodSelection, DateDisplay, getEndDate + TimePeriodSelection, DateDisplay, getEndDate, } from "./time_period_selection"; import { LocationSelection, LocationDisplay } from "./location_selection"; import { SensorSelection } from "./sensor_selection"; diff --git a/frontend/controls/sensors/sensor_list.tsx b/frontend/controls/sensors/sensor_list.tsx index 72b7037f5..c139271ff 100644 --- a/frontend/controls/sensors/sensor_list.tsx +++ b/frontend/controls/sensors/sensor_list.tsx @@ -46,7 +46,7 @@ const SensorReadingDisplay = const classNames = [ "sensor-reading-display", moistureSensor, toolSensor, - mode ? "analog" : "digital" + mode ? "analog" : "digital", ]; return
{isNumber(value) && value >= 0 && diff --git a/frontend/controls/state_to_props.ts b/frontend/controls/state_to_props.ts index aa0c83916..c76620989 100644 --- a/frontend/controls/state_to_props.ts +++ b/frontend/controls/state_to_props.ts @@ -4,7 +4,7 @@ import { selectAllWebcamFeeds, selectAllSensors, selectAllSensorReadings, - maybeGetTimeSettings + maybeGetTimeSettings, } from "../resources/selectors"; import { Props } from "./interfaces"; import { validFwConfig, validFbosConfig } from "../util"; diff --git a/frontend/controls/webcam/__tests__/edit_test.tsx b/frontend/controls/webcam/__tests__/edit_test.tsx index e1d2d20b3..4496d3abc 100644 --- a/frontend/controls/webcam/__tests__/edit_test.tsx +++ b/frontend/controls/webcam/__tests__/edit_test.tsx @@ -23,7 +23,7 @@ describe("", () => { p.feeds[0].body.name, p.feeds[0].body.url, p.feeds[1].body.name, - p.feeds[1].body.url + p.feeds[1].body.url, ].map(text => expect(wrapper.html()).toContain(text)); }); diff --git a/frontend/controls_popup.tsx b/frontend/controls_popup.tsx index 17242a9c3..bda4aca29 100644 --- a/frontend/controls_popup.tsx +++ b/frontend/controls_popup.tsx @@ -6,7 +6,7 @@ import { ControlsPopupProps } from "./controls/move/interfaces"; import { commandErr } from "./devices/actions"; import { mapPanelClassName } from "./farm_designer/map/util"; import { - cameraBtnProps + cameraBtnProps, } from "./devices/components/fbos_settings/camera_selection"; import { t } from "./i18next_wrapper"; diff --git a/frontend/devices/__tests__/actions_test.ts b/frontend/devices/__tests__/actions_test.ts index 2f69f5bc3..74cf244be 100644 --- a/frontend/devices/__tests__/actions_test.ts +++ b/frontend/devices/__tests__/actions_test.ts @@ -32,11 +32,11 @@ jest.mock("axios", () => ({ get: jest.fn(() => mockGetRelease) })); import * as actions from "../actions"; import { - fakeFirmwareConfig, fakeFbosConfig + fakeFirmwareConfig, fakeFbosConfig, } from "../../__test_support__/fake_state/resources"; import { fakeState } from "../../__test_support__/fake_state"; import { - changeStepSize, commandErr + changeStepSize, commandErr, } from "../actions"; import { Actions } from "../../constants"; import { buildResourceIndex } from "../../__test_support__/resource_index_builder"; diff --git a/frontend/devices/__tests__/devices_test.tsx b/frontend/devices/__tests__/devices_test.tsx index e4ae06027..2ab700000 100644 --- a/frontend/devices/__tests__/devices_test.tsx +++ b/frontend/devices/__tests__/devices_test.tsx @@ -7,7 +7,7 @@ import { Props } from "../interfaces"; import { auth } from "../../__test_support__/fake_state/token"; import { bot } from "../../__test_support__/fake_state/bot"; import { - fakeDevice, buildResourceIndex, FAKE_RESOURCES + fakeDevice, buildResourceIndex, FAKE_RESOURCES, } from "../../__test_support__/resource_index_builder"; import { FarmbotOsSettings } from "../components/farmbot_os_settings"; import { fakeTimeSettings } from "../../__test_support__/fake_time_settings"; diff --git a/frontend/devices/__tests__/state_to_props_test.tsx b/frontend/devices/__tests__/state_to_props_test.tsx index 4fbfe4d22..1fb47e404 100644 --- a/frontend/devices/__tests__/state_to_props_test.tsx +++ b/frontend/devices/__tests__/state_to_props_test.tsx @@ -2,7 +2,7 @@ import { fakeFbosConfig, fakeImage, fakeFarmwareEnv, - fakeWebAppConfig + fakeWebAppConfig, } from "../../__test_support__/fake_state/resources"; let mockFbosConfig: TaggedFbosConfig | undefined = fakeFbosConfig(); diff --git a/frontend/devices/__tests__/update_interceptor_test.ts b/frontend/devices/__tests__/update_interceptor_test.ts index 9a939c5ab..034f92133 100644 --- a/frontend/devices/__tests__/update_interceptor_test.ts +++ b/frontend/devices/__tests__/update_interceptor_test.ts @@ -3,7 +3,7 @@ import { lessThan, mcuParamValidator, OK, - McuErrors + McuErrors, } from "../update_interceptor"; describe("greaterThan() and lessThan()", () => { diff --git a/frontend/devices/actions.ts b/frontend/devices/actions.ts index c2ab3ebfc..ebec5bf00 100644 --- a/frontend/devices/actions.ts +++ b/frontend/devices/actions.ts @@ -3,13 +3,13 @@ import { success, warning, info, error } from "../toast/toast"; import { getDevice } from "../device"; import { Everything } from "../interfaces"; import { - GithubRelease, MoveRelProps, MinOsFeatureLookup, SourceFwConfig, Axis + GithubRelease, MoveRelProps, MinOsFeatureLookup, SourceFwConfig, Axis, } from "./interfaces"; import { Thunk } from "../redux/interfaces"; import { McuParams, TaggedFirmwareConfig, ParameterApplication, ALLOWED_PIN_MODES, - FirmwareHardware + FirmwareHardware, } from "farmbot"; import { ControlPanelState } from "../devices/interfaces"; import { oneOf, versionOK, trim } from "../util"; @@ -144,7 +144,7 @@ export function sync(): Thunk { export function execSequence( sequenceId: number | undefined, - bodyVariables?: ParameterApplication[] + bodyVariables?: ParameterApplication[], ) { const noun = t("Sequence execution"); if (sequenceId) { @@ -287,7 +287,7 @@ export function MCUFactoryReset() { export function settingToggle( key: ConfigKey, sourceFwConfig: SourceFwConfig, - displayAlert?: string | undefined + displayAlert?: string | undefined, ) { return function (dispatch: Function, getState: () => Everything) { if (displayAlert) { alert(trim(displayAlert)); } @@ -325,7 +325,7 @@ export function pinToggle(pin_number: number) { } export function readPin( - pin_number: number, label: string, pin_mode: ALLOWED_PIN_MODES + pin_number: number, label: string, pin_mode: ALLOWED_PIN_MODES, ) { const noun = t("Read pin"); return getDevice() diff --git a/frontend/devices/components/__tests__/axis_tracking_status_test.tsx b/frontend/devices/components/__tests__/axis_tracking_status_test.tsx index b33c9896f..d1489c858 100644 --- a/frontend/devices/components/__tests__/axis_tracking_status_test.tsx +++ b/frontend/devices/components/__tests__/axis_tracking_status_test.tsx @@ -1,5 +1,5 @@ import { - axisTrackingStatus, disabledAxisMap, enabledAxisMap + axisTrackingStatus, disabledAxisMap, enabledAxisMap, } from "../axis_tracking_status"; import { bot } from "../../../__test_support__/fake_state/bot"; @@ -16,7 +16,7 @@ const expected = { "axis": "z", "disabled": true - } + }, ]; describe("axisTrackingStatus()", () => { diff --git a/frontend/devices/components/__tests__/bot_config_input_box_test.tsx b/frontend/devices/components/__tests__/bot_config_input_box_test.tsx index 5fc0e766a..5b6e3c1ed 100644 --- a/frontend/devices/components/__tests__/bot_config_input_box_test.tsx +++ b/frontend/devices/components/__tests__/bot_config_input_box_test.tsx @@ -9,7 +9,7 @@ import { BotConfigInputBox, BotConfigInputBoxProps } from "../bot_config_input_b import { fakeState } from "../../../__test_support__/fake_state"; import { fakeFbosConfig } from "../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { edit, save } from "../../../api/crud"; diff --git a/frontend/devices/components/__tests__/hardware_settings_test.tsx b/frontend/devices/components/__tests__/hardware_settings_test.tsx index 840ada969..e70b25e6c 100644 --- a/frontend/devices/components/__tests__/hardware_settings_test.tsx +++ b/frontend/devices/components/__tests__/hardware_settings_test.tsx @@ -6,11 +6,11 @@ import { Actions } from "../../../constants"; import { bot } from "../../../__test_support__/fake_state/bot"; import { panelState } from "../../../__test_support__/control_panel_state"; import { - fakeFirmwareConfig + fakeFirmwareConfig, } from "../../../__test_support__/fake_state/resources"; import { clickButton } from "../../../__test_support__/helpers"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import type { FirmwareConfig } from "farmbot/dist/resources/configs/firmware"; import { Color } from "../../../ui"; diff --git a/frontend/devices/components/__tests__/maybe_highlight_test.tsx b/frontend/devices/components/__tests__/maybe_highlight_test.tsx index e748d7574..2bf800e6a 100644 --- a/frontend/devices/components/__tests__/maybe_highlight_test.tsx +++ b/frontend/devices/components/__tests__/maybe_highlight_test.tsx @@ -5,7 +5,7 @@ jest.mock("../../actions", () => ({ import * as React from "react"; import { mount } from "enzyme"; import { - Highlight, HighlightProps, maybeHighlight, maybeOpenPanel, highlight + Highlight, HighlightProps, maybeHighlight, maybeOpenPanel, highlight, } from "../maybe_highlight"; import { DeviceSetting } from "../../../constants"; import { panelState } from "../../../__test_support__/control_panel_state"; diff --git a/frontend/devices/components/__tests__/pin_guard_input_group_test.tsx b/frontend/devices/components/__tests__/pin_guard_input_group_test.tsx index 12e5707ca..bfdce94ea 100644 --- a/frontend/devices/components/__tests__/pin_guard_input_group_test.tsx +++ b/frontend/devices/components/__tests__/pin_guard_input_group_test.tsx @@ -7,7 +7,7 @@ import { PinGuardMCUInputGroupProps } from "../interfaces"; import { bot } from "../../../__test_support__/fake_state/bot"; import { settingToggle } from "../../actions"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; describe("", () => { diff --git a/frontend/devices/components/__tests__/pin_number_dropdown_test.tsx b/frontend/devices/components/__tests__/pin_number_dropdown_test.tsx index 1a7bbbc63..d4bdc6bda 100644 --- a/frontend/devices/components/__tests__/pin_number_dropdown_test.tsx +++ b/frontend/devices/components/__tests__/pin_number_dropdown_test.tsx @@ -5,10 +5,10 @@ import { mount, shallow } from "enzyme"; import { PinNumberDropdown } from "../pin_number_dropdown"; import { PinGuardMCUInputGroupProps } from "../interfaces"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { - fakeFirmwareConfig, fakePeripheral + fakeFirmwareConfig, fakePeripheral, } from "../../../__test_support__/fake_state/resources"; import { TaggedFirmwareConfig } from "farmbot"; import { FBSelect } from "../../../ui"; diff --git a/frontend/devices/components/__tests__/source_config_value_test.ts b/frontend/devices/components/__tests__/source_config_value_test.ts index 17f543729..4ea998d6a 100644 --- a/frontend/devices/components/__tests__/source_config_value_test.ts +++ b/frontend/devices/components/__tests__/source_config_value_test.ts @@ -2,7 +2,7 @@ import { sourceFbosConfigValue, sourceFwConfigValue } from "../source_config_val import { bot } from "../../../__test_support__/fake_state/bot"; import { fakeFbosConfig, - fakeFirmwareConfig + fakeFirmwareConfig, } from "../../../__test_support__/fake_state/resources"; describe("sourceFbosConfigValue()", () => { diff --git a/frontend/devices/components/fbos_settings/__tests__/auto_sync_row_test.tsx b/frontend/devices/components/fbos_settings/__tests__/auto_sync_row_test.tsx index 6a5afdb62..56b113f73 100644 --- a/frontend/devices/components/fbos_settings/__tests__/auto_sync_row_test.tsx +++ b/frontend/devices/components/fbos_settings/__tests__/auto_sync_row_test.tsx @@ -15,7 +15,7 @@ import { fakeState } from "../../../../__test_support__/fake_state"; import { edit, save } from "../../../../api/crud"; import { fakeFbosConfig } from "../../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../../__test_support__/resource_index_builder"; describe("", () => { diff --git a/frontend/devices/components/fbos_settings/__tests__/auto_update_row_test.tsx b/frontend/devices/components/fbos_settings/__tests__/auto_update_row_test.tsx index c25e1bf0c..7fa9c6c9d 100644 --- a/frontend/devices/components/fbos_settings/__tests__/auto_update_row_test.tsx +++ b/frontend/devices/components/fbos_settings/__tests__/auto_update_row_test.tsx @@ -11,7 +11,7 @@ import { fakeState } from "../../../../__test_support__/fake_state"; import { edit, save } from "../../../../api/crud"; import { fakeFbosConfig } from "../../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../../__test_support__/resource_index_builder"; describe("", () => { diff --git a/frontend/devices/components/fbos_settings/__tests__/board_type_test.tsx b/frontend/devices/components/fbos_settings/__tests__/board_type_test.tsx index 4e623edc5..9d550378f 100644 --- a/frontend/devices/components/fbos_settings/__tests__/board_type_test.tsx +++ b/frontend/devices/components/fbos_settings/__tests__/board_type_test.tsx @@ -9,15 +9,15 @@ import { BoardType } from "../board_type"; import { BoardTypeProps } from "../interfaces"; import { fakeState } from "../../../../__test_support__/fake_state"; import { - fakeFbosConfig + fakeFbosConfig, } from "../../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../../__test_support__/resource_index_builder"; import { edit, save } from "../../../../api/crud"; import { bot } from "../../../../__test_support__/fake_state/bot"; import { - fakeTimeSettings + fakeTimeSettings, } from "../../../../__test_support__/fake_time_settings"; describe("", () => { diff --git a/frontend/devices/components/fbos_settings/__tests__/boot_sequence_selector_test.tsx b/frontend/devices/components/fbos_settings/__tests__/boot_sequence_selector_test.tsx index 410b12931..150cf9d6e 100644 --- a/frontend/devices/components/fbos_settings/__tests__/boot_sequence_selector_test.tsx +++ b/frontend/devices/components/fbos_settings/__tests__/boot_sequence_selector_test.tsx @@ -1,12 +1,12 @@ import { - sequence2ddi, mapStateToProps, RawBootSequenceSelector + sequence2ddi, mapStateToProps, RawBootSequenceSelector, } from "../boot_sequence_selector"; import { - fakeSequence, fakeFbosConfig + fakeSequence, fakeFbosConfig, } from "../../../../__test_support__/fake_state/resources"; import { fakeState } from "../../../../__test_support__/fake_state"; import { - buildResourceIndex + buildResourceIndex, } from "../../../../__test_support__/resource_index_builder"; import React from "react"; import { mount } from "enzyme"; diff --git a/frontend/devices/components/fbos_settings/__tests__/fbos_details_test.tsx b/frontend/devices/components/fbos_settings/__tests__/fbos_details_test.tsx index 55042b2b4..f529db921 100644 --- a/frontend/devices/components/fbos_settings/__tests__/fbos_details_test.tsx +++ b/frontend/devices/components/fbos_settings/__tests__/fbos_details_test.tsx @@ -11,7 +11,7 @@ import { FbosDetailsProps } from "../interfaces"; import { fakeFbosConfig } from "../../../../__test_support__/fake_state/resources"; import { fakeState } from "../../../../__test_support__/fake_state"; import { - buildResourceIndex, fakeDevice + buildResourceIndex, fakeDevice, } from "../../../../__test_support__/resource_index_builder"; import { fakeTimeSettings } from "../../../../__test_support__/fake_time_settings"; import { updateConfig } from "../../../actions"; diff --git a/frontend/devices/components/fbos_settings/__tests__/firmware_hardware_status_test.tsx b/frontend/devices/components/fbos_settings/__tests__/firmware_hardware_status_test.tsx index 38d8a6ccd..d1c9cc6b7 100644 --- a/frontend/devices/components/fbos_settings/__tests__/firmware_hardware_status_test.tsx +++ b/frontend/devices/components/fbos_settings/__tests__/firmware_hardware_status_test.tsx @@ -8,7 +8,7 @@ import { FirmwareHardwareStatusDetailsProps, FirmwareHardwareStatusDetails, FirmwareHardwareStatusIconProps, FirmwareHardwareStatusIcon, FirmwareHardwareStatusProps, FirmwareHardwareStatus, - FirmwareActions, FirmwareActionsProps + FirmwareActions, FirmwareActionsProps, } from "../firmware_hardware_status"; import { bot } from "../../../../__test_support__/fake_state/bot"; import { clickButton } from "../../../../__test_support__/helpers"; diff --git a/frontend/devices/components/fbos_settings/__tests__/power_and_reset_test.tsx b/frontend/devices/components/fbos_settings/__tests__/power_and_reset_test.tsx index 147e2be34..fc5cd3893 100644 --- a/frontend/devices/components/fbos_settings/__tests__/power_and_reset_test.tsx +++ b/frontend/devices/components/fbos_settings/__tests__/power_and_reset_test.tsx @@ -16,7 +16,7 @@ import { fakeState } from "../../../../__test_support__/fake_state"; import { clickButton } from "../../../../__test_support__/helpers"; import { fakeFbosConfig } from "../../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../../__test_support__/resource_index_builder"; import { edit, save } from "../../../../api/crud"; diff --git a/frontend/devices/components/fbos_settings/board_type.tsx b/frontend/devices/components/fbos_settings/board_type.tsx index 9ec0c3102..59ef35567 100644 --- a/frontend/devices/components/fbos_settings/board_type.tsx +++ b/frontend/devices/components/fbos_settings/board_type.tsx @@ -8,7 +8,7 @@ import { BoardTypeProps } from "./interfaces"; import { t } from "../../../i18next_wrapper"; import { FirmwareHardwareStatus } from "./firmware_hardware_status"; import { - isFwHardwareValue, getFirmwareChoices, FIRMWARE_CHOICES_DDI + isFwHardwareValue, getFirmwareChoices, FIRMWARE_CHOICES_DDI, } from "../firmware_hardware_support"; import { Highlight } from "../maybe_highlight"; import { DeviceSetting } from "../../../constants"; diff --git a/frontend/devices/components/fbos_settings/camera_selection.tsx b/frontend/devices/components/fbos_settings/camera_selection.tsx index 0b38f5bce..44329497d 100644 --- a/frontend/devices/components/fbos_settings/camera_selection.tsx +++ b/frontend/devices/components/fbos_settings/camera_selection.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { DropDownItem, Row, Col, FBSelect } from "../../../ui/index"; import { - CameraSelectionProps, CameraSelectionState + CameraSelectionProps, CameraSelectionState, } from "./interfaces"; import { info, success, error } from "../../../toast/toast"; import { getDevice } from "../../../device"; diff --git a/frontend/devices/components/fbos_settings/fbos_details.tsx b/frontend/devices/components/fbos_settings/fbos_details.tsx index 5772da9c6..9ddc7de29 100644 --- a/frontend/devices/components/fbos_settings/fbos_details.tsx +++ b/frontend/devices/components/fbos_settings/fbos_details.tsx @@ -41,7 +41,7 @@ interface ChipTemperatureDisplayProps { /** RPI CPU temperature display row: label, temperature, indicator. */ export function ChipTemperatureDisplay( - { chip, temperature }: ChipTemperatureDisplayProps + { chip, temperature }: ChipTemperatureDisplayProps, ): JSX.Element { return

@@ -60,7 +60,7 @@ interface WiFiStrengthDisplayProps { /** WiFi signal strength display row: label, strength, indicator. */ export function WiFiStrengthDisplay( - { wifiStrength, wifiStrengthPercent, extraInfo }: WiFiStrengthDisplayProps + { wifiStrength, wifiStrengthPercent, extraInfo }: WiFiStrengthDisplayProps, ): JSX.Element { const percent = wifiStrength ? Math.round(-0.0154 * wifiStrength ** 2 - 0.4 * wifiStrength + 98) @@ -180,7 +180,7 @@ interface CommitDisplayProps { /** GitHub commit display row: label, commit link. */ const CommitDisplay = ( - { title, repo, commit }: CommitDisplayProps + { title, repo, commit }: CommitDisplayProps, ): JSX.Element => { const shortCommit = shortenCommit(commit); return

@@ -222,7 +222,7 @@ export interface BetaReleaseOptInButtonProps { /** Label and toggle button for opting in to FBOS beta releases. */ export const BetaReleaseOptIn = ( - { dispatch, sourceFbosConfig }: BetaReleaseOptInButtonProps + { dispatch, sourceFbosConfig }: BetaReleaseOptInButtonProps, ): JSX.Element => { const betaOptIn = sourceFbosConfig("update_channel" as ConfigurationName).value; return

diff --git a/frontend/devices/components/fbos_settings/interfaces.ts b/frontend/devices/components/fbos_settings/interfaces.ts index dc38165de..7cf855a65 100644 --- a/frontend/devices/components/fbos_settings/interfaces.ts +++ b/frontend/devices/components/fbos_settings/interfaces.ts @@ -4,7 +4,7 @@ import { SaveFarmwareEnv, ShouldDisplay, SourceFbosConfig, - UserEnv + UserEnv, } from "../../interfaces"; import { Alert, diff --git a/frontend/devices/components/fbos_settings/os_update_button.tsx b/frontend/devices/components/fbos_settings/os_update_button.tsx index 45172a47e..7cd41412d 100644 --- a/frontend/devices/components/fbos_settings/os_update_button.tsx +++ b/frontend/devices/components/fbos_settings/os_update_button.tsx @@ -61,7 +61,7 @@ export function downloadProgress(job: JobProgress | undefined) { const getLatestVersion = ( currentOSVersion: string | undefined, currentBetaOSVersion: string | undefined, - betaOptIn: boolean + betaOptIn: boolean, ): string | undefined => { if (!betaOptIn) { return currentOSVersion; } switch (semverCompare(currentOSVersion || "", currentBetaOSVersion || "")) { @@ -90,7 +90,7 @@ const betaCommitsAreEqual = ( /** Determine the FBOS update button state. */ const compareWithBotVersion = ( candidate: string | undefined, - installedVersion: string | undefined + installedVersion: string | undefined, ): UpdateButton => { if (!isString(installedVersion)) { return UpdateButton.none; } if (!isString(candidate)) { return UpdateButton.unknown; } @@ -108,14 +108,14 @@ const compareWithBotVersion = ( /** Installed version equal to latest. */ const equalToLatest = ( latest: string | undefined, - installedVersion: string | undefined + installedVersion: string | undefined, ): boolean => isString(installedVersion) && isString(latest) && semverCompare(installedVersion, latest) === SemverResult.EQUAL; /** Color, text, and hover text for update button: release version status. */ const buttonVersionStatus = - ({ bot, betaOptIn }: { bot: BotState, betaOptIn: boolean, }): ButtonProps => { + ({ bot, betaOptIn }: { bot: BotState, betaOptIn: boolean }): ButtonProps => { // Information about available releases. const { currentOSVersion, currentBetaOSVersion, currentBetaOSCommit } = bot; // Currently installed FBOS version data. diff --git a/frontend/devices/components/firmware_hardware_support.ts b/frontend/devices/components/firmware_hardware_support.ts index d3c4d95e3..740ac23f0 100644 --- a/frontend/devices/components/firmware_hardware_support.ts +++ b/frontend/devices/components/firmware_hardware_support.ts @@ -5,7 +5,7 @@ export const isFwHardwareValue = (x?: unknown): x is FirmwareHardware => { "arduino", "farmduino", "farmduino_k14", "farmduino_k15", "express_k10", - "none" + "none", ]; return !!values.includes(x as FirmwareHardware); }; diff --git a/frontend/devices/components/hardware_settings.tsx b/frontend/devices/components/hardware_settings.tsx index 552c02398..fa98ed6a2 100644 --- a/frontend/devices/components/hardware_settings.tsx +++ b/frontend/devices/components/hardware_settings.tsx @@ -11,7 +11,7 @@ import { EndStops } from "./hardware_settings/endstops"; import { Motors } from "./hardware_settings/motors"; import { SpacePanelHeader } from "./hardware_settings/space_panel_header"; import { - HomingAndCalibration + HomingAndCalibration, } from "./hardware_settings/homing_and_calibration"; import { Popover, Position } from "@blueprintjs/core"; import { FwParamExportMenu } from "./hardware_settings/export_menu"; diff --git a/frontend/devices/components/hardware_settings/__tests__/encoder_type_test.tsx b/frontend/devices/components/hardware_settings/__tests__/encoder_type_test.tsx index 8881584e3..216472f92 100644 --- a/frontend/devices/components/hardware_settings/__tests__/encoder_type_test.tsx +++ b/frontend/devices/components/hardware_settings/__tests__/encoder_type_test.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import { - EncoderType, EncoderTypeProps, LOOKUP, findByType, isEncoderValue + EncoderType, EncoderTypeProps, LOOKUP, findByType, isEncoderValue, } from "../encoder_type"; import { shallow } from "enzyme"; import { FBSelect } from "../../../../ui/index"; diff --git a/frontend/devices/components/hardware_settings/__tests__/error_handling_tests.tsx b/frontend/devices/components/hardware_settings/__tests__/error_handling_tests.tsx index aa18b27f2..3f1c76049 100644 --- a/frontend/devices/components/hardware_settings/__tests__/error_handling_tests.tsx +++ b/frontend/devices/components/hardware_settings/__tests__/error_handling_tests.tsx @@ -12,10 +12,10 @@ import { bot } from "../../../../__test_support__/fake_state/bot"; import { edit, save } from "../../../../api/crud"; import { fakeState } from "../../../../__test_support__/fake_state"; import { - fakeFirmwareConfig + fakeFirmwareConfig, } from "../../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../../__test_support__/resource_index_builder"; describe("", () => { diff --git a/frontend/devices/components/hardware_settings/__tests__/export_menu_test.tsx b/frontend/devices/components/hardware_settings/__tests__/export_menu_test.tsx index 33071a515..1a58e7332 100644 --- a/frontend/devices/components/hardware_settings/__tests__/export_menu_test.tsx +++ b/frontend/devices/components/hardware_settings/__tests__/export_menu_test.tsx @@ -1,10 +1,10 @@ import * as React from "react"; import { mount } from "enzyme"; import { - FwParamExportMenu, condenseFwConfig, uncondenseFwConfig + FwParamExportMenu, condenseFwConfig, uncondenseFwConfig, } from "../export_menu"; import { - fakeFirmwareConfig + fakeFirmwareConfig, } from "../../../../__test_support__/fake_state/resources"; describe("", () => { diff --git a/frontend/devices/components/hardware_settings/__tests__/homing_and_calibration_test.tsx b/frontend/devices/components/hardware_settings/__tests__/homing_and_calibration_test.tsx index 53425a84b..2b951aacf 100644 --- a/frontend/devices/components/hardware_settings/__tests__/homing_and_calibration_test.tsx +++ b/frontend/devices/components/hardware_settings/__tests__/homing_and_calibration_test.tsx @@ -16,7 +16,7 @@ import { HomingAndCalibration } from "../homing_and_calibration"; import { bot } from "../../../../__test_support__/fake_state/bot"; import { updateMCU } from "../../../actions"; import { - fakeFirmwareConfig + fakeFirmwareConfig, } from "../../../../__test_support__/fake_state/resources"; import { error, warning } from "../../../../toast/toast"; import { inputEvent } from "../../../../__test_support__/fake_html_events"; diff --git a/frontend/devices/components/hardware_settings/__tests__/motors_test.tsx b/frontend/devices/components/hardware_settings/__tests__/motors_test.tsx index 7b8032843..116c1f068 100644 --- a/frontend/devices/components/hardware_settings/__tests__/motors_test.tsx +++ b/frontend/devices/components/hardware_settings/__tests__/motors_test.tsx @@ -11,10 +11,10 @@ import { McuParamName } from "farmbot"; import { panelState } from "../../../../__test_support__/control_panel_state"; import { fakeState } from "../../../../__test_support__/fake_state"; import { - fakeFirmwareConfig + fakeFirmwareConfig, } from "../../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../../__test_support__/resource_index_builder"; import { edit, save } from "../../../../api/crud"; @@ -37,7 +37,7 @@ describe("", () => { it("renders the base case", () => { const wrapper = render(); ["Enable 2nd X Motor", - "Max Speed (mm/s)" + "Max Speed (mm/s)", ].map(string => expect(wrapper.text().toLowerCase()).toContain(string.toLowerCase())); }); diff --git a/frontend/devices/components/hardware_settings/__tests__/pin_bindings_test.tsx b/frontend/devices/components/hardware_settings/__tests__/pin_bindings_test.tsx index 6a1abdf80..5f98b0198 100644 --- a/frontend/devices/components/hardware_settings/__tests__/pin_bindings_test.tsx +++ b/frontend/devices/components/hardware_settings/__tests__/pin_bindings_test.tsx @@ -4,7 +4,7 @@ import { PinBindings } from "../pin_bindings"; import { PinBindingsProps } from "../../interfaces"; import { panelState } from "../../../../__test_support__/control_panel_state"; import { - buildResourceIndex + buildResourceIndex, } from "../../../../__test_support__/resource_index_builder"; describe("", () => { diff --git a/frontend/devices/components/hardware_settings/encoder_type.tsx b/frontend/devices/components/hardware_settings/encoder_type.tsx index 8bd800efb..237ac70f8 100644 --- a/frontend/devices/components/hardware_settings/encoder_type.tsx +++ b/frontend/devices/components/hardware_settings/encoder_type.tsx @@ -19,7 +19,7 @@ const OPTIONS = [LOOKUP[Encoder.differential], LOOKUP[Encoder.quadrature]]; const KEYS: McuParamName[] = [ "encoder_type_x", "encoder_type_y", - "encoder_type_z" + "encoder_type_z", ]; export function isEncoderValue(x: unknown): x is Encoder { diff --git a/frontend/devices/components/hardware_settings/export_menu.tsx b/frontend/devices/components/hardware_settings/export_menu.tsx index 512e9e2de..bfd4b0ffd 100644 --- a/frontend/devices/components/hardware_settings/export_menu.tsx +++ b/frontend/devices/components/hardware_settings/export_menu.tsx @@ -90,7 +90,6 @@ export const uncondenseFwConfig = Object.entries(obj).map(([subKey, value]) => { const fwConfigKey = subKey != "" ? `${key}_${subKey}` : key; uncondensedFwConfig[fwConfigKey] = value; - } - )); + })); return uncondensedFwConfig; }; diff --git a/frontend/devices/components/interfaces.ts b/frontend/devices/components/interfaces.ts index 5ad60017c..cfb683fd7 100644 --- a/frontend/devices/components/interfaces.ts +++ b/frontend/devices/components/interfaces.ts @@ -1,6 +1,6 @@ import { BotState, Xyz, SourceFwConfig, - ControlPanelState, Axis + ControlPanelState, Axis, } from "../interfaces"; import { McuParamName, McuParams, FirmwareHardware } from "farmbot/dist"; import { IntegerSize } from "../../util"; diff --git a/frontend/devices/components/mcu_input_box.tsx b/frontend/devices/components/mcu_input_box.tsx index eef345506..dd4dac9e5 100644 --- a/frontend/devices/components/mcu_input_box.tsx +++ b/frontend/devices/components/mcu_input_box.tsx @@ -4,7 +4,7 @@ import { McuInputBoxProps } from "../interfaces"; import { updateMCU } from "../actions"; import { BlurableInput } from "../../ui/index"; import { - clampUnsignedInteger, IntegerSize, getMaxInputFromIntSize + clampUnsignedInteger, IntegerSize, getMaxInputFromIntSize, } from "../../util"; import { isUndefined } from "lodash"; diff --git a/frontend/devices/components/pin_number_dropdown.tsx b/frontend/devices/components/pin_number_dropdown.tsx index 7cb4a454e..a1fba8ab4 100644 --- a/frontend/devices/components/pin_number_dropdown.tsx +++ b/frontend/devices/components/pin_number_dropdown.tsx @@ -4,10 +4,10 @@ import { updateMCU } from "../actions"; import { isNumber } from "lodash"; import { t } from "../../i18next_wrapper"; import { - pinDropdowns, celery2DropDown, PinGroupName, PERIPHERAL_HEADING + pinDropdowns, celery2DropDown, PinGroupName, PERIPHERAL_HEADING, } from "../../sequences/step_tiles/pin_and_peripheral_support"; import { - selectAllPeripherals, selectAllSavedPeripherals + selectAllPeripherals, selectAllSavedPeripherals, } from "../../resources/selectors"; import { Dictionary, NamedPin, McuParamName } from "farmbot"; import { ResourceIndex } from "../../resources/interfaces"; diff --git a/frontend/devices/components/source_config_value.ts b/frontend/devices/components/source_config_value.ts index 3d19bdd62..1dc3eba39 100644 --- a/frontend/devices/components/source_config_value.ts +++ b/frontend/devices/components/source_config_value.ts @@ -1,12 +1,12 @@ import { - Configuration, ConfigurationName, McuParams, McuParamName + Configuration, ConfigurationName, McuParams, McuParamName, } from "farmbot"; import { SourceFbosConfig, SourceFwConfig } from "../interfaces"; import { FbosConfig } from "farmbot/dist/resources/configs/fbos"; import { FirmwareConfig } from "farmbot/dist/resources/configs/firmware"; export const sourceFbosConfigValue = - (apiConfig: FbosConfig | undefined, botConfig: Configuration + (apiConfig: FbosConfig | undefined, botConfig: Configuration, ): SourceFbosConfig => (setting: ConfigurationName) => { const apiValue = apiConfig && apiConfig[setting as keyof FbosConfig]; @@ -18,7 +18,7 @@ export const sourceFbosConfigValue = }; export const sourceFwConfigValue = - (apiConfig: FirmwareConfig | undefined, botConfig: McuParams + (apiConfig: FirmwareConfig | undefined, botConfig: McuParams, ): SourceFwConfig => (setting: McuParamName) => { const apiValue = apiConfig && apiConfig[setting]; diff --git a/frontend/devices/connectivity/__tests__/diagram_test.tsx b/frontend/devices/connectivity/__tests__/diagram_test.tsx index a1b623585..9591d103e 100644 --- a/frontend/devices/connectivity/__tests__/diagram_test.tsx +++ b/frontend/devices/connectivity/__tests__/diagram_test.tsx @@ -8,7 +8,7 @@ import { getTextPosition, getLineProps, DiagramNodes, - getConnectionColor + getConnectionColor, } from "../diagram"; import { Color } from "../../../ui/index"; import { svgMount } from "../../../__test_support__/svg_mount"; diff --git a/frontend/devices/connectivity/__tests__/qos_test.ts b/frontend/devices/connectivity/__tests__/qos_test.ts index 63c144426..6a8f9f7d4 100644 --- a/frontend/devices/connectivity/__tests__/qos_test.ts +++ b/frontend/devices/connectivity/__tests__/qos_test.ts @@ -4,10 +4,10 @@ import { completePing, startPing, failPing, - PingDictionary + PingDictionary, } from "../qos"; import { - fakePings + fakePings, } from "../../../__test_support__/fake_state/pings"; describe("QoS helpers", () => { diff --git a/frontend/devices/connectivity/__tests__/status_checks_test.ts b/frontend/devices/connectivity/__tests__/status_checks_test.ts index 7070678d2..d614a738c 100644 --- a/frontend/devices/connectivity/__tests__/status_checks_test.ts +++ b/frontend/devices/connectivity/__tests__/status_checks_test.ts @@ -1,5 +1,5 @@ import { - browserToMQTT, botToMQTT, botToAPI, botToFirmware, browserToAPI + browserToMQTT, botToMQTT, botToAPI, botToFirmware, browserToAPI, } from "../status_checks"; import moment from "moment"; import { ConnectionStatus } from "../../../connectivity/interfaces"; diff --git a/frontend/devices/connectivity/connectivity.tsx b/frontend/devices/connectivity/connectivity.tsx index 5846ece98..aa4920236 100644 --- a/frontend/devices/connectivity/connectivity.tsx +++ b/frontend/devices/connectivity/connectivity.tsx @@ -5,7 +5,7 @@ import { ConnectivityRow, StatusRowProps } from "./connectivity_row"; import { Row, Col } from "../../ui"; import { ConnectivityDiagram } from "./diagram"; import { - ChipTemperatureDisplay, WiFiStrengthDisplay, VoltageDisplay + ChipTemperatureDisplay, WiFiStrengthDisplay, VoltageDisplay, } from "../components/fbos_settings/fbos_details"; import { t } from "../../i18next_wrapper"; import { QosPanel } from "./qos_panel"; diff --git a/frontend/devices/connectivity/generate_data.ts b/frontend/devices/connectivity/generate_data.ts index 6265a24b1..1ab0659c1 100644 --- a/frontend/devices/connectivity/generate_data.ts +++ b/frontend/devices/connectivity/generate_data.ts @@ -3,7 +3,7 @@ import { BotState } from "../interfaces"; import { DiagnosisName, DiagnosisProps } from "./diagnosis"; import { StatusRowProps } from "./connectivity_row"; import { - browserToMQTT, browserToAPI, botToMQTT, botToAPI, botToFirmware + browserToMQTT, browserToAPI, botToMQTT, botToAPI, botToFirmware, } from "./status_checks"; interface ConnectivityDataProps { diff --git a/frontend/devices/connectivity/status_checks.tsx b/frontend/devices/connectivity/status_checks.tsx index e2190c99c..2cc649d19 100644 --- a/frontend/devices/connectivity/status_checks.tsx +++ b/frontend/devices/connectivity/status_checks.tsx @@ -4,7 +4,7 @@ import { StatusRowProps } from "./connectivity_row"; import { ConnectionStatus } from "../../connectivity/interfaces"; import { t } from "../../i18next_wrapper"; import { - getBoardCategory, isKnownBoard + getBoardCategory, isKnownBoard, } from "../components/firmware_hardware_support"; /** " ago" for a given ISO time string or time in milliseconds. */ diff --git a/frontend/devices/interfaces.ts b/frontend/devices/interfaces.ts index c74ff5e9f..566c863aa 100644 --- a/frontend/devices/interfaces.ts +++ b/frontend/devices/interfaces.ts @@ -15,7 +15,7 @@ import { import { ResourceIndex } from "../resources/interfaces"; import { WD_ENV } from "../farmware/weed_detector/remote_env/interfaces"; import { - ConnectionStatus, ConnectionState, NetworkState + ConnectionStatus, ConnectionState, NetworkState, } from "../connectivity/interfaces"; import { IntegerSize } from "../util"; import { Farmwares } from "../farmware/interfaces"; diff --git a/frontend/devices/pin_bindings/__tests__/list_and_label_support_test.tsx b/frontend/devices/pin_bindings/__tests__/list_and_label_support_test.tsx index 24a8443b6..89dc98d72 100644 --- a/frontend/devices/pin_bindings/__tests__/list_and_label_support_test.tsx +++ b/frontend/devices/pin_bindings/__tests__/list_and_label_support_test.tsx @@ -1,5 +1,5 @@ import { - sortByNameAndPin, ButtonPin, getSpecialActionLabel + sortByNameAndPin, ButtonPin, getSpecialActionLabel, } from "../list_and_label_support"; import { PinBindingSpecialAction } from "farmbot/dist/resources/api_resources"; diff --git a/frontend/devices/pin_bindings/__tests__/pin_binding_input_group_test.tsx b/frontend/devices/pin_bindings/__tests__/pin_binding_input_group_test.tsx index 61238eddf..bc8dc30b8 100644 --- a/frontend/devices/pin_bindings/__tests__/pin_binding_input_group_test.tsx +++ b/frontend/devices/pin_bindings/__tests__/pin_binding_input_group_test.tsx @@ -9,23 +9,23 @@ jest.mock("../../../api/crud", () => ({ initSave: jest.fn() })); import * as React from "react"; import { mount, shallow } from "enzyme"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { TaggedSequence } from "farmbot"; import { - fakeSequence + fakeSequence, } from "../../../__test_support__/fake_state/resources"; import { initSave } from "../../../api/crud"; import { PinBindingInputGroupProps } from "../interfaces"; import { PinBindingInputGroup, PinNumberInputGroup, BindingTypeDropDown, - ActionTargetDropDown, SequenceTargetDropDown + ActionTargetDropDown, SequenceTargetDropDown, } from "../pin_binding_input_group"; import { - fakeResourceIndex + fakeResourceIndex, } from "../../../sequences/locals_list/test_helpers"; import { - PinBindingType, PinBindingSpecialAction + PinBindingType, PinBindingSpecialAction, } from "farmbot/dist/resources/api_resources"; import { error, warning } from "../../../toast/toast"; diff --git a/frontend/devices/pin_bindings/__tests__/pin_bindings_list_test.tsx b/frontend/devices/pin_bindings/__tests__/pin_bindings_list_test.tsx index cf8946546..485b84af6 100644 --- a/frontend/devices/pin_bindings/__tests__/pin_bindings_list_test.tsx +++ b/frontend/devices/pin_bindings/__tests__/pin_bindings_list_test.tsx @@ -7,7 +7,7 @@ jest.mock("../../../device", () => ({ getDevice: () => mockDevice })); jest.mock("../../../api/crud", () => ({ destroy: jest.fn() })); import { - PinBindingType, PinBindingSpecialAction + PinBindingType, PinBindingSpecialAction, } from "farmbot/dist/resources/api_resources"; const mockData = [{ pin_number: 1, sequence_id: undefined, @@ -23,11 +23,11 @@ jest.mock("../tagged_pin_binding_init", () => ({ import * as React from "react"; import { mount } from "enzyme"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { TaggedSequence } from "farmbot"; import { - fakeSequence, fakePinBinding + fakeSequence, fakePinBinding, } from "../../../__test_support__/fake_state/resources"; import { destroy } from "../../../api/crud"; import { PinBindingsList } from "../pin_bindings_list"; diff --git a/frontend/devices/pin_bindings/__tests__/pin_bindings_test.tsx b/frontend/devices/pin_bindings/__tests__/pin_bindings_test.tsx index 1b5d531b2..46a720b82 100644 --- a/frontend/devices/pin_bindings/__tests__/pin_bindings_test.tsx +++ b/frontend/devices/pin_bindings/__tests__/pin_bindings_test.tsx @@ -3,16 +3,16 @@ import { PinBindingsContent } from "../pin_bindings"; import { mount } from "enzyme"; import { bot } from "../../../__test_support__/fake_state/bot"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { - fakeSequence, fakePinBinding + fakeSequence, fakePinBinding, } from "../../../__test_support__/fake_state/resources"; import { PinBindingsContentProps } from "../interfaces"; import { SpecialPinBinding, PinBindingType, - PinBindingSpecialAction + PinBindingSpecialAction, } from "farmbot/dist/resources/api_resources"; describe("", () => { @@ -36,7 +36,7 @@ describe("", () => { (fakePinBinding2.body as SpecialPinBinding).special_action = PinBindingSpecialAction.emergency_lock; const resources = buildResourceIndex([ - fakeSequence1, fakeSequence2, fakePinBinding1, fakePinBinding2 + fakeSequence1, fakeSequence2, fakePinBinding1, fakePinBinding2, ]).index; bot.hardware.gpio_registry = { diff --git a/frontend/devices/pin_bindings/__tests__/tagged_pin_binding_init_test.tsx b/frontend/devices/pin_bindings/__tests__/tagged_pin_binding_init_test.tsx index 9411ce064..77ec9322a 100644 --- a/frontend/devices/pin_bindings/__tests__/tagged_pin_binding_init_test.tsx +++ b/frontend/devices/pin_bindings/__tests__/tagged_pin_binding_init_test.tsx @@ -3,7 +3,7 @@ jest.mock("../../../api/crud", () => ({ initSave: jest.fn() })); import * as React from "react"; import { mount } from "enzyme"; import { - StockPinBindingsButton, StockPinBindingsButtonProps + StockPinBindingsButton, StockPinBindingsButtonProps, } from "../tagged_pin_binding_init"; import { initSave } from "../../../api/crud"; import { stockPinBindings } from "../list_and_label_support"; diff --git a/frontend/devices/pin_bindings/interfaces.ts b/frontend/devices/pin_bindings/interfaces.ts index e4c5c6b1f..072e30e1f 100644 --- a/frontend/devices/pin_bindings/interfaces.ts +++ b/frontend/devices/pin_bindings/interfaces.ts @@ -1,7 +1,7 @@ import { ResourceIndex } from "../../resources/interfaces"; import { PinBindingType, - PinBindingSpecialAction + PinBindingSpecialAction, } from "farmbot/dist/resources/api_resources"; import { FirmwareHardware } from "farmbot"; diff --git a/frontend/devices/pin_bindings/list_and_label_support.tsx b/frontend/devices/pin_bindings/list_and_label_support.tsx index 5d803b118..dfe80982a 100644 --- a/frontend/devices/pin_bindings/list_and_label_support.tsx +++ b/frontend/devices/pin_bindings/list_and_label_support.tsx @@ -1,6 +1,6 @@ import { PinBindingType, - PinBindingSpecialAction + PinBindingSpecialAction, } from "farmbot/dist/resources/api_resources"; import { DropDownItem } from "../../ui"; import { gpio } from "./rpi_gpio_diagram"; diff --git a/frontend/devices/pin_bindings/pin_binding_input_group.tsx b/frontend/devices/pin_bindings/pin_binding_input_group.tsx index be96059c2..32d2e4c80 100644 --- a/frontend/devices/pin_bindings/pin_binding_input_group.tsx +++ b/frontend/devices/pin_bindings/pin_binding_input_group.tsx @@ -5,7 +5,7 @@ import { Popover, Position } from "@blueprintjs/core"; import { RpiGpioDiagram } from "./rpi_gpio_diagram"; import { PinBindingInputGroupProps, - PinBindingInputGroupState + PinBindingInputGroupState, } from "./interfaces"; import { isNumber, includes } from "lodash"; import { initSave } from "../../api/crud"; @@ -16,12 +16,12 @@ import { bindingTypeLabelLookup, specialActionList, reservedPiGPIO, bindingTypeList, - getSpecialActionLabel + getSpecialActionLabel, } from "./list_and_label_support"; import { SequenceSelectBox } from "../../sequences/sequence_select_box"; import { ResourceIndex } from "../../resources/interfaces"; import { - PinBindingType, PinBindingSpecialAction + PinBindingType, PinBindingSpecialAction, } from "farmbot/dist/resources/api_resources"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/devices/pin_bindings/pin_bindings.tsx b/frontend/devices/pin_bindings/pin_bindings.tsx index 751c0728b..d009211b2 100644 --- a/frontend/devices/pin_bindings/pin_bindings.tsx +++ b/frontend/devices/pin_bindings/pin_bindings.tsx @@ -6,14 +6,14 @@ import { PinBindingsContentProps, PinBindingListItems } from "./interfaces"; import { PinBindingsList } from "./pin_bindings_list"; import { PinBindingInputGroup } from "./pin_binding_input_group"; import { - StockPinBindingsButton, sysBtnBindingData + StockPinBindingsButton, sysBtnBindingData, } from "./tagged_pin_binding_init"; import { ResourceIndex } from "../../resources/interfaces"; import { Popover, Position, PopoverInteractionKind } from "@blueprintjs/core"; import { PinBindingSpecialAction, PinBindingType, - PinBinding + PinBinding, } from "farmbot/dist/resources/api_resources"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/devices/pin_bindings/pin_bindings_list.tsx b/frontend/devices/pin_bindings/pin_bindings_list.tsx index 431a89388..13f5912cc 100644 --- a/frontend/devices/pin_bindings/pin_bindings_list.tsx +++ b/frontend/devices/pin_bindings/pin_bindings_list.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { bindingTypeLabelLookup, - generatePinLabel, sortByNameAndPin, getSpecialActionLabel + generatePinLabel, sortByNameAndPin, getSpecialActionLabel, } from "./list_and_label_support"; import { destroy } from "../../api/crud"; import { error } from "../../toast/toast"; diff --git a/frontend/devices/pin_bindings/tagged_pin_binding_init.tsx b/frontend/devices/pin_bindings/tagged_pin_binding_init.tsx index a761f7be8..251586b71 100644 --- a/frontend/devices/pin_bindings/tagged_pin_binding_init.tsx +++ b/frontend/devices/pin_bindings/tagged_pin_binding_init.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { PinBindingType, PinBindingSpecialAction, - PinBinding + PinBinding, } from "farmbot/dist/resources/api_resources"; import { PinBindingListItems } from "./interfaces"; import { stockPinBindings } from "./list_and_label_support"; diff --git a/frontend/devices/reducer.ts b/frontend/devices/reducer.ts index 256bc1911..9e0ef7416 100644 --- a/frontend/devices/reducer.ts +++ b/frontend/devices/reducer.ts @@ -3,7 +3,7 @@ import { ControlPanelState, HardwareState, MinOsFeatureLookup, - OsUpdateInfo + OsUpdateInfo, } from "./interfaces"; import { generateReducer } from "../redux/generate_reducer"; import { Actions } from "../constants"; diff --git a/frontend/devices/state_to_props.ts b/frontend/devices/state_to_props.ts index 20f224dfc..76647c602 100644 --- a/frontend/devices/state_to_props.ts +++ b/frontend/devices/state_to_props.ts @@ -6,14 +6,14 @@ import { maybeGetTimeSettings, } from "../resources/selectors"; import { - sourceFbosConfigValue, sourceFwConfigValue + sourceFbosConfigValue, sourceFwConfigValue, } from "./components/source_config_value"; import { validFwConfig, validFbosConfig } from "../util"; import { - saveOrEditFarmwareEnv, getEnv, getShouldDisplayFn + saveOrEditFarmwareEnv, getEnv, getShouldDisplayFn, } from "../farmware/state_to_props"; import { - getFbosConfig, getFirmwareConfig, getWebAppConfig + getFbosConfig, getFirmwareConfig, getWebAppConfig, } from "../resources/getters"; import { getAllAlerts } from "../messages/state_to_props"; diff --git a/frontend/devices/transfer_ownership/__tests__/create_transfer_cert_failure_test.ts b/frontend/devices/transfer_ownership/__tests__/create_transfer_cert_failure_test.ts index 4bffa4be1..688b3204f 100644 --- a/frontend/devices/transfer_ownership/__tests__/create_transfer_cert_failure_test.ts +++ b/frontend/devices/transfer_ownership/__tests__/create_transfer_cert_failure_test.ts @@ -13,7 +13,7 @@ jest.mock("axios", () => { import { transferOwnership } from "../transfer_ownership"; import { getDevice } from "../../../device"; import { - submitOwnershipChange + submitOwnershipChange, } from "../../components/fbos_settings/change_ownership_form"; import { API } from "../../../api"; import { error } from "../../../toast/toast"; diff --git a/frontend/farm_designer/__tests__/farm_designer_test.tsx b/frontend/farm_designer/__tests__/farm_designer_test.tsx index 4b7251dcc..2190c3175 100644 --- a/frontend/farm_designer/__tests__/farm_designer_test.tsx +++ b/frontend/farm_designer/__tests__/farm_designer_test.tsx @@ -18,12 +18,12 @@ import { Props } from "../interfaces"; import { GardenMapLegendProps } from "../map/interfaces"; import { bot } from "../../__test_support__/fake_state/bot"; import { - fakeImage, fakeWebAppConfig + fakeImage, fakeWebAppConfig, } from "../../__test_support__/fake_state/resources"; import { fakeDesignerState } from "../../__test_support__/fake_designer_state"; import { fakeTimeSettings } from "../../__test_support__/fake_time_settings"; import { - buildResourceIndex + buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { fakeState } from "../../__test_support__/fake_state"; import { edit } from "../../api/crud"; diff --git a/frontend/farm_designer/__tests__/reducer_test.ts b/frontend/farm_designer/__tests__/reducer_test.ts index 432e9aa14..938f4fd9d 100644 --- a/frontend/farm_designer/__tests__/reducer_test.ts +++ b/frontend/farm_designer/__tests__/reducer_test.ts @@ -2,11 +2,11 @@ import { designer } from "../reducer"; import { Actions } from "../../constants"; import { ReduxAction } from "../../redux/interfaces"; import { - HoveredPlantPayl, CurrentPointPayl, CropLiveSearchResult + HoveredPlantPayl, CurrentPointPayl, CropLiveSearchResult, } from "../interfaces"; import { BotPosition } from "../../devices/interfaces"; import { - fakeCropLiveSearchResult + fakeCropLiveSearchResult, } from "../../__test_support__/fake_crop_search_result"; import { fakeDesignerState } from "../../__test_support__/fake_designer_state"; import { PointGroupSortType } from "farmbot/dist/resources/api_resources"; diff --git a/frontend/farm_designer/__tests__/search_selectors_test.ts b/frontend/farm_designer/__tests__/search_selectors_test.ts index 4014c4985..f60c23734 100644 --- a/frontend/farm_designer/__tests__/search_selectors_test.ts +++ b/frontend/farm_designer/__tests__/search_selectors_test.ts @@ -1,7 +1,7 @@ import { findBySlug } from "../search_selectors"; import { DEFAULT_ICON } from "../../open_farm/icons"; import { - fakeCropLiveSearchResult + fakeCropLiveSearchResult, } from "../../__test_support__/fake_crop_search_result"; describe("findBySlug()", () => { diff --git a/frontend/farm_designer/__tests__/state_to_props_test.tsx b/frontend/farm_designer/__tests__/state_to_props_test.tsx index 5e48b7ef3..3dfc9c517 100644 --- a/frontend/farm_designer/__tests__/state_to_props_test.tsx +++ b/frontend/farm_designer/__tests__/state_to_props_test.tsx @@ -1,7 +1,7 @@ import { mapStateToProps, getPlants } from "../state_to_props"; import { fakeState } from "../../__test_support__/fake_state"; import { - buildResourceIndex, fakeDevice + buildResourceIndex, fakeDevice, } from "../../__test_support__/resource_index_builder"; import { fakePlant, @@ -10,7 +10,7 @@ import { fakePoint, fakeWebAppConfig, fakeFarmwareEnv, - fakeSensorReading + fakeSensorReading, } from "../../__test_support__/fake_state/resources"; import { WebAppConfig } from "farmbot/dist/resources/configs/web_app"; import { generateUuid } from "../../resources/util"; @@ -67,7 +67,7 @@ describe("mapStateToProps()", () => { const point3 = fakePoint(); point3.body.discarded_at = DISCARDED_AT; state.resources = buildResourceIndex([ - webAppConfig, point1, point2, point3, fakeDevice() + webAppConfig, point1, point2, point3, fakeDevice(), ]); expect(mapStateToProps(state).genericPoints.length).toEqual(3); }); @@ -83,7 +83,7 @@ describe("mapStateToProps()", () => { const point3 = fakePoint(); point3.body.discarded_at = DISCARDED_AT; state.resources = buildResourceIndex([ - webAppConfig, point1, point2, point3, fakeDevice() + webAppConfig, point1, point2, point3, fakeDevice(), ]); expect(mapStateToProps(state).genericPoints.length).toEqual(1); }); @@ -116,7 +116,7 @@ describe("getPlants()", () => { const template2 = fakePlantTemplate(); template2.body.saved_garden_id = 2; return buildResourceIndex([ - savedGarden, plant1, plant2, template1, template2, fakeDevice() + savedGarden, plant1, plant2, template1, template2, fakeDevice(), ]); }; it("returns plants", () => { diff --git a/frontend/farm_designer/farm_events/__tests__/add_farm_event_test.tsx b/frontend/farm_designer/farm_events/__tests__/add_farm_event_test.tsx index 85d74e786..58629b307 100644 --- a/frontend/farm_designer/farm_events/__tests__/add_farm_event_test.tsx +++ b/frontend/farm_designer/farm_events/__tests__/add_farm_event_test.tsx @@ -12,10 +12,10 @@ import { mount, shallow } from "enzyme"; import { RawAddFarmEvent as AddFarmEvent } from "../add_farm_event"; import { AddEditFarmEventProps } from "../../interfaces"; import { - fakeFarmEvent, fakeSequence, fakeRegimen + fakeFarmEvent, fakeSequence, fakeRegimen, } from "../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { fakeTimeSettings } from "../../../__test_support__/fake_time_settings"; import { destroyOK } from "../../../resources/actions"; diff --git a/frontend/farm_designer/farm_events/__tests__/edit_farm_event_test.tsx b/frontend/farm_designer/farm_events/__tests__/edit_farm_event_test.tsx index 7038cc32a..d73b15e30 100644 --- a/frontend/farm_designer/farm_events/__tests__/edit_farm_event_test.tsx +++ b/frontend/farm_designer/farm_events/__tests__/edit_farm_event_test.tsx @@ -7,10 +7,10 @@ import { mount } from "enzyme"; import { RawEditFarmEvent as EditFarmEvent } from "../edit_farm_event"; import { AddEditFarmEventProps } from "../../interfaces"; import { - fakeFarmEvent, fakeSequence + fakeFarmEvent, fakeSequence, } from "../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { fakeTimeSettings } from "../../../__test_support__/fake_time_settings"; diff --git a/frontend/farm_designer/farm_events/__tests__/edit_fe_form_test.tsx b/frontend/farm_designer/farm_events/__tests__/edit_fe_form_test.tsx index e7baf2a78..b0adea962 100644 --- a/frontend/farm_designer/farm_events/__tests__/edit_fe_form_test.tsx +++ b/frontend/farm_designer/farm_events/__tests__/edit_fe_form_test.tsx @@ -8,7 +8,7 @@ jest.mock("../../../api/crud", () => ({ import * as React from "react"; import { - fakeFarmEvent, fakeSequence, fakeRegimen, fakePlant + fakeFarmEvent, fakeSequence, fakeRegimen, fakePlant, } from "../../../__test_support__/fake_state/resources"; import { mount, shallow } from "enzyme"; import { @@ -24,7 +24,7 @@ import { RepeatFormProps, StartTimeForm, StartTimeFormProps, - FarmEventForm + FarmEventForm, } from "../edit_fe_form"; import { isString, isFunction } from "lodash"; import { repeatOptions } from "../map_state_to_props_add_edit"; @@ -32,7 +32,7 @@ import { SpecialStatus, ParameterApplication } from "farmbot"; import moment from "moment"; import { history } from "../../../history"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { fakeVariableNameSet } from "../../../__test_support__/fake_variables"; import { save, destroy } from "../../../api/crud"; @@ -219,7 +219,7 @@ describe("", () => { label: "Sequence: Every Node", value: 11, headingId: "Sequence" - } + }, ]} findExecutable={jest.fn(() => seq)} dispatch={jest.fn()} diff --git a/frontend/farm_designer/farm_events/__tests__/farm_event_repeat_form_test.tsx b/frontend/farm_designer/farm_events/__tests__/farm_event_repeat_form_test.tsx index 240f64a57..4020e9ec6 100644 --- a/frontend/farm_designer/farm_events/__tests__/farm_event_repeat_form_test.tsx +++ b/frontend/farm_designer/farm_events/__tests__/farm_event_repeat_form_test.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import { - FarmEventRepeatFormProps, FarmEventRepeatForm + FarmEventRepeatFormProps, FarmEventRepeatForm, } from "../farm_event_repeat_form"; import { shallow, ShallowWrapper, render } from "enzyme"; import { get } from "lodash"; diff --git a/frontend/farm_designer/farm_events/__tests__/farm_events_test.tsx b/frontend/farm_designer/farm_events/__tests__/farm_events_test.tsx index dfe90c87a..fb2cf70a8 100644 --- a/frontend/farm_designer/farm_events/__tests__/farm_events_test.tsx +++ b/frontend/farm_designer/farm_events/__tests__/farm_events_test.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { PureFarmEvents } from "../farm_events"; import { - calendarRows + calendarRows, } from "../../../__test_support__/farm_event_calendar_support"; import { render, shallow, mount } from "enzyme"; import { get } from "lodash"; diff --git a/frontend/farm_designer/farm_events/__tests__/map_state_to_props_add_edit_test.ts b/frontend/farm_designer/farm_events/__tests__/map_state_to_props_add_edit_test.ts index 7f1f7d2b3..930b1d51f 100644 --- a/frontend/farm_designer/farm_events/__tests__/map_state_to_props_add_edit_test.ts +++ b/frontend/farm_designer/farm_events/__tests__/map_state_to_props_add_edit_test.ts @@ -7,10 +7,10 @@ jest.mock("../../../history", () => ({ import { mapStateToPropsAddEdit } from "../map_state_to_props_add_edit"; import { fakeState } from "../../../__test_support__/fake_state"; import { - buildResourceIndex, fakeDevice + buildResourceIndex, fakeDevice, } from "../../../__test_support__/resource_index_builder"; import { - fakeSequence, fakeRegimen, fakeFarmEvent + fakeSequence, fakeRegimen, fakeFarmEvent, } from "../../../__test_support__/fake_state/resources"; import { history } from "../../../history"; import { inputEvent } from "../../../__test_support__/fake_html_events"; @@ -53,7 +53,7 @@ describe("mapStateToPropsAddEdit()", () => { it("returns executable list", () => { expect(executableOptions).toEqual(expect.arrayContaining([ { headingId: "Regimen", label: "Fake Regimen", value: 1 }, - { headingId: "Sequence", label: "Fake Sequence", value: 1 } + { headingId: "Sequence", label: "Fake Sequence", value: 1 }, ])); }); }); diff --git a/frontend/farm_designer/farm_events/__tests__/map_state_to_props_test.ts b/frontend/farm_designer/farm_events/__tests__/map_state_to_props_test.ts index 7d8af8659..b9a4ac3cd 100644 --- a/frontend/farm_designer/farm_events/__tests__/map_state_to_props_test.ts +++ b/frontend/farm_designer/farm_events/__tests__/map_state_to_props_test.ts @@ -3,10 +3,10 @@ import { fakeState } from "../../../__test_support__/fake_state"; import { fakeSequence, fakeRegimen, - fakeFarmEvent + fakeFarmEvent, } from "../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import moment from "moment"; import { countBy } from "lodash"; @@ -39,7 +39,7 @@ describe("mapStateToProps()", () => { sequence, regimen, sequenceFarmEvent, - regimenFarmEvent + regimenFarmEvent, ]; const state = fakeState(); @@ -207,7 +207,7 @@ describe("mapResourcesToCalendar(): regimen farm events", () => { mmddyy: expect.stringContaining("17"), sortKey: expect.any(Number), timeStr: expect.stringContaining("02") - } + }, ], month: "Dec", sortKey: expect.any(Number), @@ -224,12 +224,12 @@ describe("mapResourcesToCalendar(): regimen farm events", () => { mmddyy: expect.stringContaining("17"), sortKey: expect.any(Number), timeStr: expect.stringContaining("11") - } + }, ], month: "Dec", sortKey: expect.any(Number), year: 17 - } + }, ]; it("returns calendar rows", () => { diff --git a/frontend/farm_designer/farm_events/__tests__/util_test.ts b/frontend/farm_designer/farm_events/__tests__/util_test.ts index 46177d50e..18a05d3e8 100644 --- a/frontend/farm_designer/farm_events/__tests__/util_test.ts +++ b/frontend/farm_designer/farm_events/__tests__/util_test.ts @@ -5,7 +5,7 @@ import { ExecutableType } from "farmbot/dist/resources/api_resources"; describe("maybeWarnAboutMissedTasks()", () => { function testWarn( - time: string, executableType: ExecutableType = "Regimen" + time: string, executableType: ExecutableType = "Regimen", ): () => void { const callback = jest.fn(); const fe = fakeFarmEvent(executableType, 1); diff --git a/frontend/farm_designer/farm_events/add_farm_event.tsx b/frontend/farm_designer/farm_events/add_farm_event.tsx index 878f6dabb..4e1a82fc2 100644 --- a/frontend/farm_designer/farm_events/add_farm_event.tsx +++ b/frontend/farm_designer/farm_events/add_farm_event.tsx @@ -6,17 +6,17 @@ import { } from "./map_state_to_props_add_edit"; import { init, destroy } from "../../api/crud"; import { - EditFEForm, FarmEventForm, FarmEventViewModel, NEVER + EditFEForm, FarmEventForm, FarmEventViewModel, NEVER, } from "./edit_fe_form"; import { betterCompact, betterMerge } from "../../util"; import { entries } from "../../resources/util"; import { AddEditFarmEventProps, - TaggedExecutable + TaggedExecutable, } from "../interfaces"; import { ExecutableType } from "farmbot/dist/resources/api_resources"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, } from "../designer_panel"; import { variableList } from "../../sequences/locals_list/variable_support"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/farm_designer/farm_events/calendar/__tests__/index_test.ts b/frontend/farm_designer/farm_events/calendar/__tests__/index_test.ts index d5a0e53b9..9ac430100 100644 --- a/frontend/farm_designer/farm_events/calendar/__tests__/index_test.ts +++ b/frontend/farm_designer/farm_events/calendar/__tests__/index_test.ts @@ -2,7 +2,7 @@ import { Calendar } from "../index"; import { occurrence } from "../occurrence"; import { TIME, - fakeFarmEventWithExecutable + fakeFarmEventWithExecutable, } from "../../../../__test_support__/farm_event_calendar_support"; import moment from "moment"; import { fakeTimeSettings } from "../../../../__test_support__/fake_time_settings"; diff --git a/frontend/farm_designer/farm_events/calendar/__tests__/occurrence_test.ts b/frontend/farm_designer/farm_events/calendar/__tests__/occurrence_test.ts index ab0d51b52..6c1045701 100644 --- a/frontend/farm_designer/farm_events/calendar/__tests__/occurrence_test.ts +++ b/frontend/farm_designer/farm_events/calendar/__tests__/occurrence_test.ts @@ -2,7 +2,7 @@ import { occurrence } from "../occurrence"; import moment from "moment"; import { TIME, - fakeFarmEventWithExecutable + fakeFarmEventWithExecutable, } from "../../../../__test_support__/farm_event_calendar_support"; import { fakeTimeSettings } from "../../../../__test_support__/fake_time_settings"; diff --git a/frontend/farm_designer/farm_events/calendar/__tests__/scheduler_test.ts b/frontend/farm_designer/farm_events/calendar/__tests__/scheduler_test.ts index 53782c2b0..4337df4c7 100644 --- a/frontend/farm_designer/farm_events/calendar/__tests__/scheduler_test.ts +++ b/frontend/farm_designer/farm_events/calendar/__tests__/scheduler_test.ts @@ -4,7 +4,7 @@ import { TimeLine, farmEventIntervalSeconds, maxDisplayItems, - gracePeriodSeconds + gracePeriodSeconds, } from "../scheduler"; import moment from "moment"; import { Moment } from "moment"; @@ -49,7 +49,7 @@ describe("scheduler", () => { "04:00am Th", "08:00am Th", "12:00pm Th", - "04:00pm Th" + "04:00pm Th", ]; const REALITY = result1.items.map(x => x.format("hh:mma dd")); EXPECTED.map(x => expect(REALITY).toContain(x)); @@ -97,7 +97,7 @@ describe("scheduleForFarmEvent", () => { expected: [ moment("2017-08-01T17:30:00.000Z"), moment("2017-08-03T17:30:00.000Z"), - moment("2017-08-05T17:30:00.000Z") + moment("2017-08-05T17:30:00.000Z"), ], shortenedBy: 0 }, @@ -124,7 +124,7 @@ describe("scheduleForFarmEvent", () => { timeNow: moment("2017-08-03T18:30:00.000Z"), expected: [ moment("2017-08-05T17:30:00.000Z"), - moment("2017-08-07T17:30:00.000Z") + moment("2017-08-07T17:30:00.000Z"), ], shortenedBy: 0 }, @@ -148,7 +148,7 @@ describe("scheduleForFarmEvent", () => { expected: [ moment("2017-08-01T17:30:00.000Z"), moment("2017-08-01T21:30:00.000Z"), - moment("2017-08-02T01:30:00.000Z") + moment("2017-08-02T01:30:00.000Z"), ], shortenedBy: 0 }, @@ -219,7 +219,7 @@ describe("scheduleForFarmEvent", () => { timeNow: moment("2017-08-01T16:30:00.000Z"), expected: [ moment("2017-08-01T17:30:00.000Z"), - moment("2017-08-01T21:30:00.000Z") + moment("2017-08-01T21:30:00.000Z"), ], shortenedBy: 0 }, @@ -235,7 +235,7 @@ describe("scheduleForFarmEvent", () => { .add(gracePeriodSeconds, "seconds"), expected: [ moment("2017-08-01T17:30:00.000Z"), - moment("2017-08-01T21:30:00.000Z") + moment("2017-08-01T21:30:00.000Z"), ], shortenedBy: 0 }, @@ -259,7 +259,7 @@ describe("farmEventIntervalSeconds", () => { { count: 0, unit: "yearly", result: 0 }, { count: 2, unit: "weekly", result: 1209600 }, { count: 4, unit: "minutely", result: 240 }, - { count: 3, unit: "never", result: 0 } + { count: 3, unit: "never", result: 0 }, ]; tests.forEach((T) => { diff --git a/frontend/farm_designer/farm_events/calendar/scheduler.ts b/frontend/farm_designer/farm_events/calendar/scheduler.ts index 42659dd81..471762932 100644 --- a/frontend/farm_designer/farm_events/calendar/scheduler.ts +++ b/frontend/farm_designer/farm_events/calendar/scheduler.ts @@ -93,7 +93,7 @@ export interface TimeLine { } /** Takes a subset of FarmEvent data and generates a list of dates. */ export function scheduleForFarmEvent( - { start_time, end_time, repeat, time_unit }: TimeLine, timeNow = moment() + { start_time, end_time, repeat, time_unit }: TimeLine, timeNow = moment(), ): { items: Moment[], shortenedBy: number } { const interval = repeat && farmEventIntervalSeconds(repeat, time_unit); const gracePeriod = timeNow.clone().subtract(gracePeriodSeconds, "seconds"); diff --git a/frontend/farm_designer/farm_events/calendar/selectors.ts b/frontend/farm_designer/farm_events/calendar/selectors.ts index bdb914554..eeeae8aa5 100644 --- a/frontend/farm_designer/farm_events/calendar/selectors.ts +++ b/frontend/farm_designer/farm_events/calendar/selectors.ts @@ -3,7 +3,7 @@ import { ResourceIndex } from "../../../resources/interfaces"; import { selectAllFarmEvents, indexSequenceById, - indexRegimenById + indexRegimenById, } from "../../../resources/selectors"; import { betterCompact } from "../../../util"; import { TaggedFarmEvent } from "farmbot"; diff --git a/frontend/farm_designer/farm_events/edit_farm_event.tsx b/frontend/farm_designer/farm_events/edit_farm_event.tsx index 7ab9ac35a..618be7c7a 100644 --- a/frontend/farm_designer/farm_events/edit_farm_event.tsx +++ b/frontend/farm_designer/farm_events/edit_farm_event.tsx @@ -7,7 +7,7 @@ import { EditFEForm } from "./edit_fe_form"; import { t } from "../../i18next_wrapper"; import { Panel } from "../panel_header"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, } from "../designer_panel"; export class RawEditFarmEvent extends React.Component { diff --git a/frontend/farm_designer/farm_events/edit_fe_form.tsx b/frontend/farm_designer/farm_events/edit_fe_form.tsx index a5da2d0d6..85ef1dff0 100644 --- a/frontend/farm_designer/farm_events/edit_fe_form.tsx +++ b/frontend/farm_designer/farm_events/edit_fe_form.tsx @@ -28,13 +28,13 @@ import { TzWarning } from "./tz_warning"; import { nextRegItemTimes } from "./map_state_to_props"; import { first } from "lodash"; import { - TimeUnit, ExecutableType, FarmEvent + TimeUnit, ExecutableType, FarmEvent, } from "farmbot/dist/resources/api_resources"; import { LocalsList } from "../../sequences/locals_list/locals_list"; import { ResourceIndex } from "../../resources/interfaces"; import { ShouldDisplay } from "../../devices/interfaces"; import { - addOrEditParamApps, variableList, getRegimenVariableData + addOrEditParamApps, variableList, getRegimenVariableData, } from "../../sequences/locals_list/variable_support"; import { AllowedVariableNodes, @@ -266,7 +266,7 @@ export class EditFEForm extends React.Component { fieldGet = (key: FarmEventViewModelKey): string => (this.state.fe[key] || this.viewModel[key] || "").toString() - nextItemTime = (fe: FarmEvent, now: moment.Moment + nextItemTime = (fe: FarmEvent, now: moment.Moment, ): moment.Moment | undefined => { const { timeSettings } = this.props; const kind = fe.executable_type; @@ -460,7 +460,7 @@ export const RepeatForm = (props: RepeatFormProps) => { }; export const dateCheck = ( - fieldGet: (key: FarmEventViewModelKey) => string + fieldGet: (key: FarmEventViewModelKey) => string, ): string | undefined => { const startDate = fieldGet("startDate"); const endDate = fieldGet("endDate"); @@ -471,7 +471,7 @@ export const dateCheck = ( export const timeCheck = ( fieldGet: (key: FarmEventViewModelKey) => string, - timeSettings: TimeSettings + timeSettings: TimeSettings, ): string | undefined => { const startDate = fieldGet("startDate"); const startTime = fieldGet("startTime"); diff --git a/frontend/farm_designer/farm_events/farm_event_repeat_form.tsx b/frontend/farm_designer/farm_events/farm_event_repeat_form.tsx index d232830b2..c7e3d24b5 100644 --- a/frontend/farm_designer/farm_events/farm_event_repeat_form.tsx +++ b/frontend/farm_designer/farm_events/farm_event_repeat_form.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import { - Row, Col, BlurableInput, FBSelect, DropDownItem + Row, Col, BlurableInput, FBSelect, DropDownItem, } from "../../ui/index"; import { repeatOptions } from "./map_state_to_props_add_edit"; import { keyBy } from "lodash"; diff --git a/frontend/farm_designer/farm_events/farm_events.tsx b/frontend/farm_designer/farm_events/farm_events.tsx index 04eb0bc2a..e8db608df 100644 --- a/frontend/farm_designer/farm_events/farm_events.tsx +++ b/frontend/farm_designer/farm_events/farm_events.tsx @@ -2,17 +2,17 @@ import * as React from "react"; import { connect } from "react-redux"; import { mapStateToProps } from "./map_state_to_props"; import { - FarmEventProps, CalendarOccurrence, FarmEventState + FarmEventProps, CalendarOccurrence, FarmEventState, } from "../interfaces"; import moment from "moment"; import { Content } from "../../constants"; import { Panel, DesignerNavTabs } from "../panel_header"; import { Link } from "../../link"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelTop + DesignerPanel, DesignerPanelContent, DesignerPanelTop, } from "../designer_panel"; import { - EmptyStateWrapper, EmptyStateGraphic + EmptyStateWrapper, EmptyStateGraphic, } from "../../ui/empty_state_wrapper"; import { some, uniq, map, sortBy } from "lodash"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/farm_designer/farm_events/map_state_to_props.ts b/frontend/farm_designer/farm_events/map_state_to_props.ts index a3f257473..504b6d603 100644 --- a/frontend/farm_designer/farm_events/map_state_to_props.ts +++ b/frontend/farm_designer/farm_events/map_state_to_props.ts @@ -11,7 +11,7 @@ import { } from "../../resources/selectors"; import { ResourceIndex } from "../../resources/interfaces"; import { - FarmEventWithRegimen, FarmEventWithSequence + FarmEventWithRegimen, FarmEventWithSequence, } from "./calendar/interfaces"; import { scheduleForFarmEvent } from "./calendar/scheduler"; import { last } from "lodash"; diff --git a/frontend/farm_designer/farm_events/map_state_to_props_add_edit.ts b/frontend/farm_designer/farm_events/map_state_to_props_add_edit.ts index 8ea513032..605509421 100644 --- a/frontend/farm_designer/farm_events/map_state_to_props_add_edit.ts +++ b/frontend/farm_designer/farm_events/map_state_to_props_add_edit.ts @@ -13,17 +13,17 @@ import { findSequenceById, findRegimenById, getDeviceAccountSettings, - maybeGetTimeSettings + maybeGetTimeSettings, } from "../../resources/selectors"; import { TaggedFarmEvent, TaggedSequence, - TaggedRegimen + TaggedRegimen, } from "farmbot"; import { DropDownItem } from "../../ui/index"; import { validFbosConfig } from "../../util"; import { - sourceFbosConfigValue + sourceFbosConfigValue, } from "../../devices/components/source_config_value"; import { hasId } from "../../resources/util"; import { ExecutableType } from "farmbot/dist/resources/api_resources"; @@ -47,12 +47,12 @@ export const repeatOptions = [ { label: t("Days"), value: "daily", name: "time_unit" }, { label: t("Weeks"), value: "weekly", name: "time_unit" }, { label: t("Months"), value: "monthly", name: "time_unit" }, - { label: t("Years"), value: "yearly", name: "time_unit" } + { label: t("Years"), value: "yearly", name: "time_unit" }, ]; const handleTime = ( e: React.SyntheticEvent, - currentISO: string + currentISO: string, ) => { const incomingTime = e.currentTarget.value.split(":"); const hours = parseInt(incomingTime[0]) || 0; diff --git a/frontend/farm_designer/index.tsx b/frontend/farm_designer/index.tsx index ca5400d90..c73c6f234 100755 --- a/frontend/farm_designer/index.tsx +++ b/frontend/farm_designer/index.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { connect } from "react-redux"; import { GardenMap } from "./map/garden_map"; import { - Props, State, BotOriginQuadrant, isBotOriginQuadrant + Props, State, BotOriginQuadrant, isBotOriginQuadrant, } from "./interfaces"; import { mapStateToProps } from "./state_to_props"; import { Plants } from "./plants/plant_inventory"; @@ -15,12 +15,12 @@ import { getMapPadding, } from "./map/util"; import { - calcZoomLevel, getZoomLevelIndex, saveZoomLevelIndex + calcZoomLevel, getZoomLevelIndex, saveZoomLevelIndex, } from "./map/zoom"; import moment from "moment"; import { DesignerNavTabs } from "./panel_header"; import { - setWebAppConfigValue, GetWebAppConfigValue + setWebAppConfigValue, GetWebAppConfigValue, } from "../config_storage/actions"; import { SavedGardenHUD } from "./saved_gardens/saved_gardens"; diff --git a/frontend/farm_designer/interfaces.ts b/frontend/farm_designer/interfaces.ts index 2f243ae78..39c99d916 100644 --- a/frontend/farm_designer/interfaces.ts +++ b/frontend/farm_designer/interfaces.ts @@ -14,7 +14,7 @@ import { } from "farmbot"; import { SlotWithTool, ResourceIndex } from "../resources/interfaces"; import { - BotPosition, StepsPerMmXY, BotLocationData, ShouldDisplay + BotPosition, StepsPerMmXY, BotLocationData, ShouldDisplay, } from "../devices/interfaces"; import { isNumber } from "lodash"; import { McuParams, TaggedCrop } from "farmbot"; @@ -22,7 +22,7 @@ import { AxisNumberProperty, BotSize, TaggedPlant } from "./map/interfaces"; import { SelectionBoxData } from "./map/background"; import { GetWebAppConfigValue } from "../config_storage/actions"; import { - ExecutableType, PlantPointer, PointGroupSortType + ExecutableType, PlantPointer, PointGroupSortType, } from "farmbot/dist/resources/api_resources"; import { BooleanConfigKey } from "farmbot/dist/resources/configs/web_app"; import { TimeSettings } from "../interfaces"; diff --git a/frontend/farm_designer/map/__tests__/actions_test.ts b/frontend/farm_designer/map/__tests__/actions_test.ts index 033d9b227..d97175eeb 100644 --- a/frontend/farm_designer/map/__tests__/actions_test.ts +++ b/frontend/farm_designer/map/__tests__/actions_test.ts @@ -17,7 +17,7 @@ jest.mock("../../point_groups/group_detail", () => ({ import { movePlant, closePlantInfo, setDragIcon, clickMapPlant, selectPlant, - setHoveredPlant + setHoveredPlant, } from "../actions"; import { MovePlantProps } from "../../interfaces"; import { fakePlant } from "../../../__test_support__/fake_state/resources"; @@ -28,7 +28,7 @@ import { history } from "../../../history"; import { fakeState } from "../../../__test_support__/fake_state"; import { GetState } from "../../../redux/interfaces"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; describe("movePlant", () => { @@ -55,8 +55,7 @@ describe("movePlant", () => { // Update expect.objectContaining({ x: expected.x, y: expected.y - }) - ); + })); }); }); diff --git a/frontend/farm_designer/map/__tests__/garden_map_test.tsx b/frontend/farm_designer/map/__tests__/garden_map_test.tsx index 61b48f64f..749ee0469 100644 --- a/frontend/farm_designer/map/__tests__/garden_map_test.tsx +++ b/frontend/farm_designer/map/__tests__/garden_map_test.tsx @@ -58,19 +58,19 @@ import { GardenMapProps } from "../../interfaces"; import { setEggStatus, EggKeys } from "../easter_eggs/status"; import { unselectPlant, closePlantInfo } from "../actions"; import { - dropPlant, beginPlantDrag, maybeSavePlantLocation, dragPlant + dropPlant, beginPlantDrag, maybeSavePlantLocation, dragPlant, } from "../layers/plants/plant_actions"; import { - startNewSelectionBox, resizeBox, maybeUpdateGroupCriteria + startNewSelectionBox, resizeBox, maybeUpdateGroupCriteria, } from "../background/selection_box_actions"; import { getGardenCoordinates } from "../util"; import { chooseLocation } from "../../move_to"; import { startNewPoint, resizePoint } from "../drawn_point/drawn_point_actions"; import { - fakeDesignerState + fakeDesignerState, } from "../../../__test_support__/fake_designer_state"; import { - fakePlant, fakePointGroup, fakePoint + fakePlant, fakePointGroup, fakePoint, } from "../../../__test_support__/fake_state/resources"; import { fakeTimeSettings } from "../../../__test_support__/fake_time_settings"; import { history } from "../../../history"; diff --git a/frontend/farm_designer/map/__tests__/util_test.ts b/frontend/farm_designer/map/__tests__/util_test.ts index 3d36594db..8bc4ab723 100644 --- a/frontend/farm_designer/map/__tests__/util_test.ts +++ b/frontend/farm_designer/map/__tests__/util_test.ts @@ -24,11 +24,11 @@ import { } from "../util"; import { McuParams } from "farmbot"; import { - AxisNumberProperty, BotSize, MapTransformProps, Mode + AxisNumberProperty, BotSize, MapTransformProps, Mode, } from "../interfaces"; import { StepsPerMmXY } from "../../../devices/interfaces"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../__test_support__/map_transform_props"; import { fakePlant } from "../../../__test_support__/fake_state/resources"; diff --git a/frontend/farm_designer/map/active_plant/__tests__/active_plant_drag_helper_test.tsx b/frontend/farm_designer/map/active_plant/__tests__/active_plant_drag_helper_test.tsx index 3a0965486..6ca5473c2 100644 --- a/frontend/farm_designer/map/active_plant/__tests__/active_plant_drag_helper_test.tsx +++ b/frontend/farm_designer/map/active_plant/__tests__/active_plant_drag_helper_test.tsx @@ -3,7 +3,7 @@ import { ActivePlantDragHelper } from "../active_plant_drag_helper"; import { shallow } from "enzyme"; import { fakePlant } from "../../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../__test_support__/map_transform_props"; import { ActivePlantDragHelperProps } from "../../interfaces"; diff --git a/frontend/farm_designer/map/active_plant/__tests__/drag_helpers_test.tsx b/frontend/farm_designer/map/active_plant/__tests__/drag_helpers_test.tsx index ba8d62c94..00bc3d5e1 100644 --- a/frontend/farm_designer/map/active_plant/__tests__/drag_helpers_test.tsx +++ b/frontend/farm_designer/map/active_plant/__tests__/drag_helpers_test.tsx @@ -5,7 +5,7 @@ import { DragHelpersProps } from "../../interfaces"; import { fakePlant } from "../../../../__test_support__/fake_state/resources"; import { Color } from "../../../../ui/index"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/active_plant/__tests__/hovered_plant_test.tsx b/frontend/farm_designer/map/active_plant/__tests__/hovered_plant_test.tsx index b6f2f6d4b..ef3436d68 100644 --- a/frontend/farm_designer/map/active_plant/__tests__/hovered_plant_test.tsx +++ b/frontend/farm_designer/map/active_plant/__tests__/hovered_plant_test.tsx @@ -3,10 +3,10 @@ import { HoveredPlant, HoveredPlantProps } from "../hovered_plant"; import { shallow } from "enzyme"; import { fakePlant } from "../../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../__test_support__/map_transform_props"; import { - fakeDesignerState + fakeDesignerState, } from "../../../../__test_support__/fake_designer_state"; describe("", () => { diff --git a/frontend/farm_designer/map/active_plant/drag_helpers.tsx b/frontend/farm_designer/map/active_plant/drag_helpers.tsx index 54015603d..cba6eb098 100644 --- a/frontend/farm_designer/map/active_plant/drag_helpers.tsx +++ b/frontend/farm_designer/map/active_plant/drag_helpers.tsx @@ -22,7 +22,7 @@ enum Line { function getAlignment( activeXYZ: BotPosition | undefined, plantXYZ: BotPosition, - swappedXY: Boolean + swappedXY: Boolean, ): Alignment { if (activeXYZ && !isUndefined(activeXYZ.x) && !isUndefined(activeXYZ.y)) { // Plant editing (dragging) is occurring diff --git a/frontend/farm_designer/map/background/__tests__/grid_test.tsx b/frontend/farm_designer/map/background/__tests__/grid_test.tsx index 21add06aa..4c9c8f827 100644 --- a/frontend/farm_designer/map/background/__tests__/grid_test.tsx +++ b/frontend/farm_designer/map/background/__tests__/grid_test.tsx @@ -3,7 +3,7 @@ import { Grid } from "../grid"; import { shallow } from "enzyme"; import { GridProps } from "../../interfaces"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/background/__tests__/map_background_test.tsx b/frontend/farm_designer/map/background/__tests__/map_background_test.tsx index 572b4d23c..a5a44f695 100644 --- a/frontend/farm_designer/map/background/__tests__/map_background_test.tsx +++ b/frontend/farm_designer/map/background/__tests__/map_background_test.tsx @@ -3,7 +3,7 @@ import { MapBackground } from "../map_background"; import { shallow } from "enzyme"; import { MapBackgroundProps } from "../../interfaces"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/background/__tests__/selection_box_actions_test.tsx b/frontend/farm_designer/map/background/__tests__/selection_box_actions_test.tsx index 41f0b378b..04dc92199 100644 --- a/frontend/farm_designer/map/background/__tests__/selection_box_actions_test.tsx +++ b/frontend/farm_designer/map/background/__tests__/selection_box_actions_test.tsx @@ -9,7 +9,7 @@ jest.mock("../../../point_groups/criteria", () => ({ })); import { - fakePlant, fakePointGroup + fakePlant, fakePointGroup, } from "../../../../__test_support__/fake_state/resources"; import { getSelected, resizeBox, startNewSelectionBox, ResizeSelectionBoxProps, diff --git a/frontend/farm_designer/map/background/__tests__/selection_box_test.tsx b/frontend/farm_designer/map/background/__tests__/selection_box_test.tsx index 3d736648d..2ea2c3fc2 100644 --- a/frontend/farm_designer/map/background/__tests__/selection_box_test.tsx +++ b/frontend/farm_designer/map/background/__tests__/selection_box_test.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { SelectionBox, SelectionBoxProps } from "../selection_box"; import { shallow } from "enzyme"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/background/__tests__/target_coordinate_test.tsx b/frontend/farm_designer/map/background/__tests__/target_coordinate_test.tsx index 5dac11976..2fdb58417 100644 --- a/frontend/farm_designer/map/background/__tests__/target_coordinate_test.tsx +++ b/frontend/farm_designer/map/background/__tests__/target_coordinate_test.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { TargetCoordinate, TargetCoordinateProps } from "../target_coordinate"; import { shallow } from "enzyme"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/background/selection_box_actions.tsx b/frontend/farm_designer/map/background/selection_box_actions.tsx index 0e6b5f654..c44f7b250 100644 --- a/frontend/farm_designer/map/background/selection_box_actions.tsx +++ b/frontend/farm_designer/map/background/selection_box_actions.tsx @@ -12,7 +12,7 @@ import { ShouldDisplay, Feature } from "../../../devices/interfaces"; /** Return all plants within the selection box. */ export const getSelected = ( plants: TaggedPlant[], - box: SelectionBoxData | undefined + box: SelectionBoxData | undefined, ): string[] | undefined => { const arraySelected = plants.filter(p => { if (box && diff --git a/frontend/farm_designer/map/drawn_point/__tests__/drawn_point_test.tsx b/frontend/farm_designer/map/drawn_point/__tests__/drawn_point_test.tsx index fcfae6612..a8305b477 100644 --- a/frontend/farm_designer/map/drawn_point/__tests__/drawn_point_test.tsx +++ b/frontend/farm_designer/map/drawn_point/__tests__/drawn_point_test.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { DrawnPoint, DrawnPointProps } from "../drawn_point"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../__test_support__/map_transform_props"; import { svgMount } from "../../../../__test_support__/svg_mount"; diff --git a/frontend/farm_designer/map/easter_eggs/__tests__/bugs_test.tsx b/frontend/farm_designer/map/easter_eggs/__tests__/bugs_test.tsx index 84f8bbb3a..7d91ce0f8 100644 --- a/frontend/farm_designer/map/easter_eggs/__tests__/bugs_test.tsx +++ b/frontend/farm_designer/map/easter_eggs/__tests__/bugs_test.tsx @@ -1,12 +1,12 @@ import * as React from "react"; import { shallow } from "enzyme"; import { - Bugs, BugsProps, showBugResetButton, showBugs, resetBugs, BugsControls + Bugs, BugsProps, showBugResetButton, showBugs, resetBugs, BugsControls, } from "../bugs"; import { EggKeys, setEggStatus, getEggStatus } from "../status"; import { range } from "lodash"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../__test_support__/map_transform_props"; import { svgMount } from "../../../../__test_support__/svg_mount"; diff --git a/frontend/farm_designer/map/easter_eggs/bugs.tsx b/frontend/farm_designer/map/easter_eggs/bugs.tsx index 95dd036f7..bb23f6427 100644 --- a/frontend/farm_designer/map/easter_eggs/bugs.tsx +++ b/frontend/farm_designer/map/easter_eggs/bugs.tsx @@ -45,7 +45,7 @@ export function getBugTime() { const BUGS = [ "aphid", "caterpillar", "earth-worm", "generic-ant", - "generic-moth", "june-bug", "ladybug", "roly-poly" + "generic-moth", "june-bug", "ladybug", "roly-poly", ]; const bugFile = (bug: string) => `/app-resources/img/bugs/${bug}.svg`; diff --git a/frontend/farm_designer/map/garden_map.tsx b/frontend/farm_designer/map/garden_map.tsx index fa2694827..0551a0af5 100644 --- a/frontend/farm_designer/map/garden_map.tsx +++ b/frontend/farm_designer/map/garden_map.tsx @@ -2,11 +2,11 @@ import * as React from "react"; import { BooleanSetting } from "../../session_keys"; import { closePlantInfo, unselectPlant } from "./actions"; import { - MapTransformProps, TaggedPlant, Mode, AxisNumberProperty + MapTransformProps, TaggedPlant, Mode, AxisNumberProperty, } from "./interfaces"; import { GardenMapProps, GardenMapState } from "../interfaces"; import { - getMapSize, getGardenCoordinates, getMode, cursorAtPlant + getMapSize, getGardenCoordinates, getMode, cursorAtPlant, } from "./util"; import { Grid, MapBackground, @@ -26,7 +26,7 @@ import { HoveredPlant, ActivePlantDragHelper } from "./active_plant"; import { DrawnPoint, startNewPoint, resizePoint } from "./drawn_point"; import { Bugs, showBugs } from "./easter_eggs/bugs"; import { - dropPlant, dragPlant, beginPlantDrag, maybeSavePlantLocation + dropPlant, dragPlant, beginPlantDrag, maybeSavePlantLocation, } from "./layers/plants/plant_actions"; import { chooseLocation } from "../move_to"; import { GroupOrder } from "../point_groups/group_order_visual"; diff --git a/frontend/farm_designer/map/layers/farmbot/__tests__/bot_extents_test.tsx b/frontend/farm_designer/map/layers/farmbot/__tests__/bot_extents_test.tsx index 3e7cebd25..1156a9466 100644 --- a/frontend/farm_designer/map/layers/farmbot/__tests__/bot_extents_test.tsx +++ b/frontend/farm_designer/map/layers/farmbot/__tests__/bot_extents_test.tsx @@ -4,7 +4,7 @@ import { shallow } from "enzyme"; import { bot } from "../../../../../__test_support__/fake_state/bot"; import { BotExtentsProps } from "../../../interfaces"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/layers/farmbot/__tests__/bot_figure_test.tsx b/frontend/farm_designer/map/layers/farmbot/__tests__/bot_figure_test.tsx index d678e6d6b..1da8c91e1 100644 --- a/frontend/farm_designer/map/layers/farmbot/__tests__/bot_figure_test.tsx +++ b/frontend/farm_designer/map/layers/farmbot/__tests__/bot_figure_test.tsx @@ -4,7 +4,7 @@ import { BotOriginQuadrant } from "../../../../interfaces"; import { BotFigure, BotFigureProps } from "../bot_figure"; import { Color } from "../../../../../ui/index"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/layers/farmbot/__tests__/bot_peripherals_test.tsx b/frontend/farm_designer/map/layers/farmbot/__tests__/bot_peripherals_test.tsx index 53a285d87..b6c8d23ac 100644 --- a/frontend/farm_designer/map/layers/farmbot/__tests__/bot_peripherals_test.tsx +++ b/frontend/farm_designer/map/layers/farmbot/__tests__/bot_peripherals_test.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { shallow } from "enzyme"; import { BotPeripheralsProps, BotPeripherals } from "../bot_peripherals"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/layers/farmbot/__tests__/bot_trail_test.tsx b/frontend/farm_designer/map/layers/farmbot/__tests__/bot_trail_test.tsx index 26de17937..92e3296c3 100644 --- a/frontend/farm_designer/map/layers/farmbot/__tests__/bot_trail_test.tsx +++ b/frontend/farm_designer/map/layers/farmbot/__tests__/bot_trail_test.tsx @@ -1,10 +1,10 @@ import * as React from "react"; import { shallow } from "enzyme"; import { - BotTrail, BotTrailProps, VirtualTrail, resetVirtualTrail + BotTrail, BotTrailProps, VirtualTrail, resetVirtualTrail, } from "../bot_trail"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/layers/farmbot/__tests__/farmbot_layer_test.tsx b/frontend/farm_designer/map/layers/farmbot/__tests__/farmbot_layer_test.tsx index c61de5f08..905633592 100644 --- a/frontend/farm_designer/map/layers/farmbot/__tests__/farmbot_layer_test.tsx +++ b/frontend/farm_designer/map/layers/farmbot/__tests__/farmbot_layer_test.tsx @@ -3,7 +3,7 @@ import { FarmBotLayer } from "../farmbot_layer"; import { shallow } from "enzyme"; import { FarmBotLayerProps } from "../../../interfaces"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/layers/farmbot/__tests__/index_test.tsx b/frontend/farm_designer/map/layers/farmbot/__tests__/index_test.tsx index 9f698cf5f..d41baaefc 100644 --- a/frontend/farm_designer/map/layers/farmbot/__tests__/index_test.tsx +++ b/frontend/farm_designer/map/layers/farmbot/__tests__/index_test.tsx @@ -3,7 +3,7 @@ import { VirtualFarmBot } from "../index"; import { shallow } from "enzyme"; import { VirtualFarmBotProps } from "../../../interfaces"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { BotFigure } from "../bot_figure"; diff --git a/frontend/farm_designer/map/layers/farmbot/__tests__/negative_position_labels_test.tsx b/frontend/farm_designer/map/layers/farmbot/__tests__/negative_position_labels_test.tsx index b8f53fdb6..22a045322 100644 --- a/frontend/farm_designer/map/layers/farmbot/__tests__/negative_position_labels_test.tsx +++ b/frontend/farm_designer/map/layers/farmbot/__tests__/negative_position_labels_test.tsx @@ -1,10 +1,10 @@ import * as React from "react"; import { shallow } from "enzyme"; import { - NegativePositionLabel, NegativePositionLabelProps + NegativePositionLabel, NegativePositionLabelProps, } from "../negative_position_labels"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/layers/images/__tests__/images_filter_menu_test.tsx b/frontend/farm_designer/map/layers/images/__tests__/images_filter_menu_test.tsx index a605a5cd6..c040e80d1 100644 --- a/frontend/farm_designer/map/layers/images/__tests__/images_filter_menu_test.tsx +++ b/frontend/farm_designer/map/layers/images/__tests__/images_filter_menu_test.tsx @@ -2,12 +2,12 @@ import * as React from "react"; import { ImageFilterMenu, ImageFilterMenuProps } from "../image_filter_menu"; import { shallow, mount } from "enzyme"; import { - fakeWebAppConfig + fakeWebAppConfig, } from "../../../../../__test_support__/fake_state/resources"; import { StringConfigKey } from "farmbot/dist/resources/configs/web_app"; import { setWebAppConfigValue } from "../../../../../config_storage/actions"; import { - fakeTimeSettings + fakeTimeSettings, } from "../../../../../__test_support__/fake_time_settings"; const mockConfig = fakeWebAppConfig(); diff --git a/frontend/farm_designer/map/layers/images/__tests__/images_layer_test.tsx b/frontend/farm_designer/map/layers/images/__tests__/images_layer_test.tsx index f8a99e411..b4da499b5 100644 --- a/frontend/farm_designer/map/layers/images/__tests__/images_layer_test.tsx +++ b/frontend/farm_designer/map/layers/images/__tests__/images_layer_test.tsx @@ -2,10 +2,10 @@ import * as React from "react"; import { ImageLayer, ImageLayerProps } from "../image_layer"; import { shallow } from "enzyme"; import { - fakeImage, fakeWebAppConfig + fakeImage, fakeWebAppConfig, } from "../../../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; const mockConfig = fakeWebAppConfig(); diff --git a/frontend/farm_designer/map/layers/images/__tests__/map_image_test.tsx b/frontend/farm_designer/map/layers/images/__tests__/map_image_test.tsx index c6675d27e..c9eb009a3 100644 --- a/frontend/farm_designer/map/layers/images/__tests__/map_image_test.tsx +++ b/frontend/farm_designer/map/layers/images/__tests__/map_image_test.tsx @@ -4,7 +4,7 @@ import { SpecialStatus } from "farmbot"; import { cloneDeep } from "lodash"; import { trim } from "../../../../../util"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { svgMount } from "../../../../../__test_support__/svg_mount"; diff --git a/frontend/farm_designer/map/layers/images/image_filter_menu.tsx b/frontend/farm_designer/map/layers/images/image_filter_menu.tsx index 7d6fe23b6..7357df513 100644 --- a/frontend/farm_designer/map/layers/images/image_filter_menu.tsx +++ b/frontend/farm_designer/map/layers/images/image_filter_menu.tsx @@ -2,11 +2,11 @@ import * as React from "react"; import { BlurableInput } from "../../../../ui/index"; import { offsetTime } from "../../../farm_events/edit_fe_form"; import { - setWebAppConfigValue, GetWebAppConfigValue + setWebAppConfigValue, GetWebAppConfigValue, } from "../../../../config_storage/actions"; import moment from "moment"; import { - formatDate, formatTime + formatDate, formatTime, } from "../../../farm_events/map_state_to_props_add_edit"; import { Slider } from "@blueprintjs/core"; import { t } from "../../../../i18next_wrapper"; diff --git a/frontend/farm_designer/map/layers/images/image_layer.tsx b/frontend/farm_designer/map/layers/images/image_layer.tsx index 89e16199d..c2d4649e8 100644 --- a/frontend/farm_designer/map/layers/images/image_layer.tsx +++ b/frontend/farm_designer/map/layers/images/image_layer.tsx @@ -39,8 +39,7 @@ export class ImageLayer extends React.Component { image={img} key={"image_" + img.body.id} cameraCalibrationData={cameraCalibrationData} - mapTransformProps={mapTransformProps} /> - )} + mapTransformProps={mapTransformProps} />)} ; } } diff --git a/frontend/farm_designer/map/layers/images/map_image.tsx b/frontend/farm_designer/map/layers/images/map_image.tsx index f70a80dce..61e50e462 100644 --- a/frontend/farm_designer/map/layers/images/map_image.tsx +++ b/frontend/farm_designer/map/layers/images/map_image.tsx @@ -37,7 +37,7 @@ const cameraZCheck = /* Get the size of the image at the URL. */ const getImageSize = ( url: string, - onLoad: (img: HTMLImageElement) => () => void + onLoad: (img: HTMLImageElement) => () => void, ): void => { const imageData = new Image(); imageData.src = url; diff --git a/frontend/farm_designer/map/layers/plants/__tests__/garden_plant_test.tsx b/frontend/farm_designer/map/layers/plants/__tests__/garden_plant_test.tsx index 8c6e04d2d..c91e59789 100644 --- a/frontend/farm_designer/map/layers/plants/__tests__/garden_plant_test.tsx +++ b/frontend/farm_designer/map/layers/plants/__tests__/garden_plant_test.tsx @@ -5,7 +5,7 @@ import { GardenPlantProps } from "../../../interfaces"; import { fakePlant } from "../../../../../__test_support__/fake_state/resources"; import { Actions } from "../../../../../constants"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/layers/plants/__tests__/plant_actions_test.tsx b/frontend/farm_designer/map/layers/plants/__tests__/plant_actions_test.tsx index 60d2f21d6..a8a7107b3 100644 --- a/frontend/farm_designer/map/layers/plants/__tests__/plant_actions_test.tsx +++ b/frontend/farm_designer/map/layers/plants/__tests__/plant_actions_test.tsx @@ -20,17 +20,17 @@ jest.mock("../../../../../history", () => ({ import { newPlantKindAndBody, maybeSavePlantLocation, beginPlantDrag, setActiveSpread, - dragPlant, createPlant, dropPlant + dragPlant, createPlant, dropPlant, } from "../plant_actions"; import { fakePlant } from "../../../../../__test_support__/fake_state/resources"; import { edit, save, initSave } from "../../../../../api/crud"; import { cachedCrop } from "../../../../../open_farm/cached_crop"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { movePlant } from "../../../actions"; import { - fakeCropLiveSearchResult + fakeCropLiveSearchResult, } from "../../../../../__test_support__/fake_crop_search_result"; import { error } from "../../../../../toast/toast"; diff --git a/frontend/farm_designer/map/layers/plants/__tests__/plant_layer_test.tsx b/frontend/farm_designer/map/layers/plants/__tests__/plant_layer_test.tsx index 09dc7f1c1..dda04f50f 100644 --- a/frontend/farm_designer/map/layers/plants/__tests__/plant_layer_test.tsx +++ b/frontend/farm_designer/map/layers/plants/__tests__/plant_layer_test.tsx @@ -6,11 +6,11 @@ jest.mock("../../../../../history", () => ({ import * as React from "react"; import { PlantLayer } from "../plant_layer"; import { - fakePlant, fakePlantTemplate + fakePlant, fakePlantTemplate, } from "../../../../../__test_support__/fake_state/resources"; import { PlantLayerProps } from "../../../interfaces"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { svgMount } from "../../../../../__test_support__/svg_mount"; import { shallow } from "enzyme"; @@ -44,7 +44,7 @@ describe("", () => { "/app-resources/img/generic-plant.svg", "height=\"50\" width=\"50\" x=\"75\" y=\"175\"", "drag-helpers", - "plant-icon" + "plant-icon", ].map(string => expect(layer.html()).toContain(string)); }); diff --git a/frontend/farm_designer/map/layers/plants/garden_plant.tsx b/frontend/farm_designer/map/layers/plants/garden_plant.tsx index 8bdec572e..279b006f3 100644 --- a/frontend/farm_designer/map/layers/plants/garden_plant.tsx +++ b/frontend/farm_designer/map/layers/plants/garden_plant.tsx @@ -51,7 +51,7 @@ export class GardenPlant extends const { qx, qy } = transformXY(round(x), round(y), mapTransformProps); const alpha = dragging ? 0.4 : 1.0; const className = [ - "plant-image", `is-chosen-${current || selected}`, animate ? "animate" : "" + "plant-image", `is-chosen-${current || selected}`, animate ? "animate" : "", ].join(" "); return diff --git a/frontend/farm_designer/map/layers/plants/plant_actions.tsx b/frontend/farm_designer/map/layers/plants/plant_actions.tsx index 7c99d9eb1..a524be145 100644 --- a/frontend/farm_designer/map/layers/plants/plant_actions.tsx +++ b/frontend/farm_designer/map/layers/plants/plant_actions.tsx @@ -1,7 +1,7 @@ import { Content } from "../../../../constants"; import { initSave, edit, save } from "../../../../api/crud"; import { - AxisNumberProperty, TaggedPlant, MapTransformProps + AxisNumberProperty, TaggedPlant, MapTransformProps, } from "../../interfaces"; import { Plant, DEFAULT_PLANT_RADIUS } from "../../../plant"; import moment from "moment"; @@ -153,8 +153,7 @@ export const setActiveSpread = (props: { // `radius * 10` is the default value for spread diameter (in mm). props.setMapState({ activeDragSpread: (spread || defaultSpreadCm) * 10 - }) - ); + })); }; /** Prepare for plant move. */ diff --git a/frontend/farm_designer/map/layers/points/__tests__/garden_point_test.tsx b/frontend/farm_designer/map/layers/points/__tests__/garden_point_test.tsx index b5c94aff5..fc73f7fbf 100644 --- a/frontend/farm_designer/map/layers/points/__tests__/garden_point_test.tsx +++ b/frontend/farm_designer/map/layers/points/__tests__/garden_point_test.tsx @@ -5,7 +5,7 @@ import { GardenPoint } from "../garden_point"; import { GardenPointProps } from "../../../interfaces"; import { fakePoint } from "../../../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { Actions } from "../../../../../constants"; import { history } from "../../../../../history"; diff --git a/frontend/farm_designer/map/layers/points/__tests__/point_layer_test.tsx b/frontend/farm_designer/map/layers/points/__tests__/point_layer_test.tsx index bd4ca916c..148c823d3 100644 --- a/frontend/farm_designer/map/layers/points/__tests__/point_layer_test.tsx +++ b/frontend/farm_designer/map/layers/points/__tests__/point_layer_test.tsx @@ -7,7 +7,7 @@ import * as React from "react"; import { PointLayer, PointLayerProps } from "../point_layer"; import { fakePoint } from "../../../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { GardenPoint } from "../garden_point"; import { svgMount } from "../../../../../__test_support__/svg_mount"; diff --git a/frontend/farm_designer/map/layers/points/point_layer.tsx b/frontend/farm_designer/map/layers/points/point_layer.tsx index 4e6525198..d0c348a0a 100644 --- a/frontend/farm_designer/map/layers/points/point_layer.tsx +++ b/frontend/farm_designer/map/layers/points/point_layer.tsx @@ -24,7 +24,6 @@ export function PointLayer(props: PointLayerProps) { key={p.uuid} hovered={hoveredPoint == p.uuid} dispatch={props.dispatch} - mapTransformProps={mapTransformProps} /> - )} + mapTransformProps={mapTransformProps} />)} ; } diff --git a/frontend/farm_designer/map/layers/sensor_readings/__tests__/garden_sensor_reading_test.tsx b/frontend/farm_designer/map/layers/sensor_readings/__tests__/garden_sensor_reading_test.tsx index da50043b9..142ef7090 100644 --- a/frontend/farm_designer/map/layers/sensor_readings/__tests__/garden_sensor_reading_test.tsx +++ b/frontend/farm_designer/map/layers/sensor_readings/__tests__/garden_sensor_reading_test.tsx @@ -1,16 +1,16 @@ import * as React from "react"; import { shallow } from "enzyme"; import { - GardenSensorReading, GardenSensorReadingProps + GardenSensorReading, GardenSensorReadingProps, } from "../garden_sensor_reading"; import { - fakeSensorReading + fakeSensorReading, } from "../../../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { - fakeTimeSettings + fakeTimeSettings, } from "../../../../../__test_support__/fake_time_settings"; import { svgMount } from "../../../../../__test_support__/svg_mount"; diff --git a/frontend/farm_designer/map/layers/sensor_readings/__tests__/sensor_readings_layer_test.tsx b/frontend/farm_designer/map/layers/sensor_readings/__tests__/sensor_readings_layer_test.tsx index f4fde4dee..4710c9992 100644 --- a/frontend/farm_designer/map/layers/sensor_readings/__tests__/sensor_readings_layer_test.tsx +++ b/frontend/farm_designer/map/layers/sensor_readings/__tests__/sensor_readings_layer_test.tsx @@ -1,15 +1,15 @@ import * as React from "react"; import { - SensorReadingsLayer, SensorReadingsLayerProps + SensorReadingsLayer, SensorReadingsLayerProps, } from "../sensor_readings_layer"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { - fakeSensorReading, fakeSensor + fakeSensorReading, fakeSensor, } from "../../../../../__test_support__/fake_state/resources"; import { - fakeTimeSettings + fakeTimeSettings, } from "../../../../../__test_support__/fake_time_settings"; import { svgMount } from "../../../../../__test_support__/svg_mount"; diff --git a/frontend/farm_designer/map/layers/spread/__tests__/spread_layer_test.tsx b/frontend/farm_designer/map/layers/spread/__tests__/spread_layer_test.tsx index 569158d47..f71ab613b 100644 --- a/frontend/farm_designer/map/layers/spread/__tests__/spread_layer_test.tsx +++ b/frontend/farm_designer/map/layers/spread/__tests__/spread_layer_test.tsx @@ -1,11 +1,11 @@ import * as React from "react"; import { - SpreadLayer, SpreadLayerProps, SpreadCircle, SpreadCircleProps + SpreadLayer, SpreadLayerProps, SpreadCircle, SpreadCircleProps, } from "../spread_layer"; import { shallow } from "enzyme"; import { fakePlant } from "../../../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { SpreadOverlapHelper } from "../spread_overlap_helper"; diff --git a/frontend/farm_designer/map/layers/spread/__tests__/spread_overlap_helper_test.tsx b/frontend/farm_designer/map/layers/spread/__tests__/spread_overlap_helper_test.tsx index 3d71754bf..7b746b5b9 100644 --- a/frontend/farm_designer/map/layers/spread/__tests__/spread_overlap_helper_test.tsx +++ b/frontend/farm_designer/map/layers/spread/__tests__/spread_overlap_helper_test.tsx @@ -6,13 +6,13 @@ import { getRadius, SpreadOption, getOverlap, - overlapText + overlapText, } from "../spread_overlap_helper"; import { shallow } from "enzyme"; import { SpreadOverlapHelperProps } from "../../../interfaces"; import { fakePlant } from "../../../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; describe("", () => { diff --git a/frontend/farm_designer/map/layers/spread/spread_overlap_helper.tsx b/frontend/farm_designer/map/layers/spread/spread_overlap_helper.tsx index fe3d9c129..f5c382404 100644 --- a/frontend/farm_designer/map/layers/spread/spread_overlap_helper.tsx +++ b/frontend/farm_designer/map/layers/spread/spread_overlap_helper.tsx @@ -83,7 +83,7 @@ export function getOverlap( // Get the overlap of the active and inactive plant spread. activeXYZ: BotPosition | undefined, plantXYZ: BotPosition, - spreadData: SpreadRadii + spreadData: SpreadRadii, ): number { if (activeXYZ && !isUndefined(activeXYZ.x) && !isUndefined(activeXYZ.y) && plantXYZ && !isUndefined(plantXYZ.x) && !isUndefined(plantXYZ.y)) { @@ -105,7 +105,7 @@ export function overlapText( qx: number, qy: number, overlap: number, - spreadData: SpreadRadii + spreadData: SpreadRadii, ): JSX.Element { // Display spread overlap percentages for debugging purposes. const activeSpreadDia = spreadData.active * 2; diff --git a/frontend/farm_designer/map/layers/tool_slots/__tests__/tool_slot_layer_test.tsx b/frontend/farm_designer/map/layers/tool_slots/__tests__/tool_slot_layer_test.tsx index f9aa07f4f..52d9614b6 100644 --- a/frontend/farm_designer/map/layers/tool_slots/__tests__/tool_slot_layer_test.tsx +++ b/frontend/farm_designer/map/layers/tool_slots/__tests__/tool_slot_layer_test.tsx @@ -7,7 +7,7 @@ jest.mock("../../../../../history", () => ({ import * as React from "react"; import { ToolSlotLayer, ToolSlotLayerProps } from "../tool_slot_layer"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { fakeResource } from "../../../../../__test_support__/fake_resource"; import { shallow } from "enzyme"; diff --git a/frontend/farm_designer/map/layers/tool_slots/__tests__/tool_slot_point_test.tsx b/frontend/farm_designer/map/layers/tool_slots/__tests__/tool_slot_point_test.tsx index 1aa96fc12..8ef52b04b 100644 --- a/frontend/farm_designer/map/layers/tool_slots/__tests__/tool_slot_point_test.tsx +++ b/frontend/farm_designer/map/layers/tool_slots/__tests__/tool_slot_point_test.tsx @@ -3,10 +3,10 @@ jest.mock("../../../../../history", () => ({ history: { push: jest.fn() } })); import * as React from "react"; import { ToolSlotPoint, TSPProps } from "../tool_slot_point"; import { - fakeToolSlot, fakeTool + fakeToolSlot, fakeTool, } from "../../../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { svgMount } from "../../../../../__test_support__/svg_mount"; import { history } from "../../../../../history"; diff --git a/frontend/farm_designer/map/layers/zones/__tests__/zones_layer_test.tsx b/frontend/farm_designer/map/layers/zones/__tests__/zones_layer_test.tsx index 766a6234d..fab0bfc97 100644 --- a/frontend/farm_designer/map/layers/zones/__tests__/zones_layer_test.tsx +++ b/frontend/farm_designer/map/layers/zones/__tests__/zones_layer_test.tsx @@ -2,10 +2,10 @@ import * as React from "react"; import { svgMount } from "../../../../../__test_support__/svg_mount"; import { ZonesLayer, ZonesLayerProps } from "../zones_layer"; import { - fakePointGroup + fakePointGroup, } from "../../../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { PointGroup } from "farmbot/dist/resources/api_resources"; diff --git a/frontend/farm_designer/map/layers/zones/__tests__/zones_test.tsx b/frontend/farm_designer/map/layers/zones/__tests__/zones_test.tsx index a21d80fda..1d017627d 100644 --- a/frontend/farm_designer/map/layers/zones/__tests__/zones_test.tsx +++ b/frontend/farm_designer/map/layers/zones/__tests__/zones_test.tsx @@ -1,13 +1,13 @@ import * as React from "react"; import { svgMount } from "../../../../../__test_support__/svg_mount"; import { - Zones0D, ZonesProps, Zones1D, Zones2D, getZoneType, ZoneType + Zones0D, ZonesProps, Zones1D, Zones2D, getZoneType, ZoneType, } from "../zones"; import { - fakePointGroup + fakePointGroup, } from "../../../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../../../__test_support__/map_transform_props"; import { PointGroup } from "farmbot/dist/resources/api_resources"; diff --git a/frontend/farm_designer/map/legend/__tests__/garden_map_legend_test.tsx b/frontend/farm_designer/map/legend/__tests__/garden_map_legend_test.tsx index ff8cdfbdb..c254da1e7 100644 --- a/frontend/farm_designer/map/legend/__tests__/garden_map_legend_test.tsx +++ b/frontend/farm_designer/map/legend/__tests__/garden_map_legend_test.tsx @@ -20,12 +20,12 @@ jest.mock("../../../../account/dev/dev_support", () => ({ import * as React from "react"; import { shallow, mount } from "enzyme"; import { - GardenMapLegend, ZoomControls, PointsSubMenu + GardenMapLegend, ZoomControls, PointsSubMenu, } from "../garden_map_legend"; import { GardenMapLegendProps } from "../../interfaces"; import { BooleanSetting } from "../../../../session_keys"; import { - fakeTimeSettings + fakeTimeSettings, } from "../../../../__test_support__/fake_time_settings"; describe("", () => { diff --git a/frontend/farm_designer/map/util.ts b/frontend/farm_designer/map/util.ts index fecf76085..0cde1924c 100644 --- a/frontend/farm_designer/map/util.ts +++ b/frontend/farm_designer/map/util.ts @@ -110,7 +110,7 @@ export interface ScreenToGardenParams { /** Transform screen coordinates into garden coordinates */ export function translateScreenToGarden( - params: ScreenToGardenParams + params: ScreenToGardenParams, ): XYCoordinate { const { page, scroll, zoomLvl, mapTransformProps, gridOffset, panelStatus @@ -198,7 +198,7 @@ function quadTransform(params: QuadTransformParams): XYCoordinate { export function transformXY( x: number, y: number, - rawMapTransformProps: MapTransformProps + rawMapTransformProps: MapTransformProps, ): { qx: number, qy: number } { const { quadrant, gridSize, xySwap } = rawMapTransformProps; const coordinate = { @@ -226,7 +226,7 @@ export function transformXY( export function getBotSize( botMcuParams: McuParams, stepsPerMmXY: StepsPerMmXY, - defaultLength: AxisNumberProperty + defaultLength: AxisNumberProperty, ): BotSize { const stopAtMaxXY = { x: !!botMcuParams.movement_stop_at_max_x, @@ -252,7 +252,7 @@ export function getBotSize( /** Calculate map dimensions */ export function getMapSize( mapTransformProps: MapTransformProps, - gridOffset: AxisNumberProperty + gridOffset: AxisNumberProperty, ): { w: number, h: number } { const { gridSize, xySwap } = mapTransformProps; const mapSize = { @@ -282,8 +282,7 @@ export const transformForQuadrant = const translate = { x: flip.x * origin.qx, y: flip.y * origin.qy }; return trim( `scale(${flip.x}, ${flip.y}) - translate(${translate.x}, ${translate.y})` - ); + translate(${translate.x}, ${translate.y})`); }; /** Determine the current map mode based on path. */ diff --git a/frontend/farm_designer/map/zoom.ts b/frontend/farm_designer/map/zoom.ts index 6e2a48a07..bdc3545b0 100644 --- a/frontend/farm_designer/map/zoom.ts +++ b/frontend/farm_designer/map/zoom.ts @@ -1,7 +1,7 @@ import { NumericSetting } from "../../session_keys"; import { findIndex, isNumber, clamp } from "lodash"; import { - setWebAppConfigValue, GetWebAppConfigValue + setWebAppConfigValue, GetWebAppConfigValue, } from "../../config_storage/actions"; /** diff --git a/frontend/farm_designer/map_size_setting.tsx b/frontend/farm_designer/map_size_setting.tsx index fdfefbedb..6f3115d04 100644 --- a/frontend/farm_designer/map_size_setting.tsx +++ b/frontend/farm_designer/map_size_setting.tsx @@ -1,12 +1,12 @@ import * as React from "react"; import { - GetWebAppConfigValue, setWebAppConfigValue + GetWebAppConfigValue, setWebAppConfigValue, } from "../config_storage/actions"; import { t } from "../i18next_wrapper"; import { Row, Col } from "../ui"; import { NumericSetting } from "../session_keys"; import { - NumberConfigKey as WebAppNumberConfigKey + NumberConfigKey as WebAppNumberConfigKey, } from "farmbot/dist/resources/configs/web_app"; interface LengthInputProps { diff --git a/frontend/farm_designer/move_to.tsx b/frontend/farm_designer/move_to.tsx index f6c4d31fd..04ac36abd 100644 --- a/frontend/farm_designer/move_to.tsx +++ b/frontend/farm_designer/move_to.tsx @@ -12,7 +12,7 @@ import { validBotLocationData } from "../util/util"; import { unselectPlant } from "./map/actions"; import { AxisNumberProperty } from "./map/interfaces"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelHeader + DesignerPanel, DesignerPanelContent, DesignerPanelHeader, } from "./designer_panel"; import { t } from "../i18next_wrapper"; import { isBotOnline } from "../devices/must_be_online"; diff --git a/frontend/farm_designer/plants/__tests__/add_plant_test.tsx b/frontend/farm_designer/plants/__tests__/add_plant_test.tsx index cbd004fdf..9f445ed34 100644 --- a/frontend/farm_designer/plants/__tests__/add_plant_test.tsx +++ b/frontend/farm_designer/plants/__tests__/add_plant_test.tsx @@ -7,10 +7,10 @@ jest.mock("../../../history", () => ({ import * as React from "react"; import { mount } from "enzyme"; import { - RawAddPlant as AddPlant, AddPlantProps, mapStateToProps + RawAddPlant as AddPlant, AddPlantProps, mapStateToProps, } from "../add_plant"; import { - fakeCropLiveSearchResult + fakeCropLiveSearchResult, } from "../../../__test_support__/fake_crop_search_result"; import { svgToUrl } from "../../../open_farm/icons"; import { fakeState } from "../../../__test_support__/fake_state"; diff --git a/frontend/farm_designer/plants/__tests__/crop_catalog_test.tsx b/frontend/farm_designer/plants/__tests__/crop_catalog_test.tsx index 7991eb022..b4eea09d9 100644 --- a/frontend/farm_designer/plants/__tests__/crop_catalog_test.tsx +++ b/frontend/farm_designer/plants/__tests__/crop_catalog_test.tsx @@ -16,7 +16,7 @@ import { CropCatalogProps } from "../../interfaces"; import { Actions } from "../../../constants"; import { history } from "../../../history"; import { - fakeCropLiveSearchResult + fakeCropLiveSearchResult, } from "../../../__test_support__/fake_crop_search_result"; describe("", () => { diff --git a/frontend/farm_designer/plants/__tests__/crop_info_test.tsx b/frontend/farm_designer/plants/__tests__/crop_info_test.tsx index c4d5e6ef8..4bd9a8e31 100644 --- a/frontend/farm_designer/plants/__tests__/crop_info_test.tsx +++ b/frontend/farm_designer/plants/__tests__/crop_info_test.tsx @@ -18,7 +18,7 @@ import { CropInfoProps } from "../../interfaces"; import { initSave } from "../../../api/crud"; import { history } from "../../../history"; import { - fakeCropLiveSearchResult + fakeCropLiveSearchResult, } from "../../../__test_support__/fake_crop_search_result"; import { unselectPlant } from "../../map/actions"; import { svgToUrl } from "../../../open_farm/icons"; diff --git a/frontend/farm_designer/plants/__tests__/map_state_to_props_test.ts b/frontend/farm_designer/plants/__tests__/map_state_to_props_test.ts index af2c34c99..0bc804802 100644 --- a/frontend/farm_designer/plants/__tests__/map_state_to_props_test.ts +++ b/frontend/farm_designer/plants/__tests__/map_state_to_props_test.ts @@ -1,10 +1,10 @@ import { mapStateToProps, plantAge } from "../map_state_to_props"; import { fakeState } from "../../../__test_support__/fake_state"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { - fakePlant, fakePlantTemplate + fakePlant, fakePlantTemplate, } from "../../../__test_support__/fake_state/resources"; describe("mapStateToProps()", () => { diff --git a/frontend/farm_designer/plants/__tests__/plant_inventory_item_test.tsx b/frontend/farm_designer/plants/__tests__/plant_inventory_item_test.tsx index 4cbc2cf87..9bba0a612 100644 --- a/frontend/farm_designer/plants/__tests__/plant_inventory_item_test.tsx +++ b/frontend/farm_designer/plants/__tests__/plant_inventory_item_test.tsx @@ -6,11 +6,11 @@ jest.mock("../../../history", () => ({ push: jest.fn() })); import * as React from "react"; import { - PlantInventoryItem, PlantInventoryItemProps + PlantInventoryItem, PlantInventoryItemProps, } from "../plant_inventory_item"; import { shallow, mount } from "enzyme"; import { - fakePlant, fakePlantTemplate + fakePlant, fakePlantTemplate, } from "../../../__test_support__/fake_state/resources"; import { Actions } from "../../../constants"; import { push } from "../../../history"; diff --git a/frontend/farm_designer/plants/__tests__/plant_inventory_test.tsx b/frontend/farm_designer/plants/__tests__/plant_inventory_test.tsx index 2dc5139dc..7a53073f6 100644 --- a/frontend/farm_designer/plants/__tests__/plant_inventory_test.tsx +++ b/frontend/farm_designer/plants/__tests__/plant_inventory_test.tsx @@ -4,7 +4,7 @@ jest.mock("../../../open_farm/cached_crop", () => ({ import * as React from "react"; import { - RawPlants as Plants, PlantInventoryProps, mapStateToProps + RawPlants as Plants, PlantInventoryProps, mapStateToProps, } from "../plant_inventory"; import { mount, shallow } from "enzyme"; import { fakePlant } from "../../../__test_support__/fake_state/resources"; diff --git a/frontend/farm_designer/plants/__tests__/plant_panel_test.tsx b/frontend/farm_designer/plants/__tests__/plant_panel_test.tsx index de2e04f98..3c9b172d1 100644 --- a/frontend/farm_designer/plants/__tests__/plant_panel_test.tsx +++ b/frontend/farm_designer/plants/__tests__/plant_panel_test.tsx @@ -21,7 +21,7 @@ import { fakeTimeSettings } from "../../../__test_support__/fake_time_settings"; import { fakePlant } from "../../../__test_support__/fake_state/resources"; import { edit } from "../../../api/crud"; import { - EditPlantStatus, PlantStatusBulkUpdateProps, PlantStatusBulkUpdate + EditPlantStatus, PlantStatusBulkUpdateProps, PlantStatusBulkUpdate, } from "../edit_plant_status"; describe("", () => { diff --git a/frontend/farm_designer/plants/__tests__/select_plants_test.tsx b/frontend/farm_designer/plants/__tests__/select_plants_test.tsx index 40f250727..25de6987a 100644 --- a/frontend/farm_designer/plants/__tests__/select_plants_test.tsx +++ b/frontend/farm_designer/plants/__tests__/select_plants_test.tsx @@ -17,7 +17,7 @@ jest.mock("../../point_groups/actions", () => ({ createGroup: jest.fn() })); import * as React from "react"; import { mount } from "enzyme"; import { - RawSelectPlants as SelectPlants, SelectPlantsProps, mapStateToProps + RawSelectPlants as SelectPlants, SelectPlantsProps, mapStateToProps, } from "../select_plants"; import { fakePlant } from "../../../__test_support__/fake_state/resources"; import { Actions, Content } from "../../../constants"; diff --git a/frontend/farm_designer/plants/crop_catalog.tsx b/frontend/farm_designer/plants/crop_catalog.tsx index b773523cd..7caa51051 100644 --- a/frontend/farm_designer/plants/crop_catalog.tsx +++ b/frontend/farm_designer/plants/crop_catalog.tsx @@ -7,11 +7,11 @@ import { OFSearch } from "../util"; import { debounce } from "lodash"; import { Actions, Content } from "../../constants"; import { - EmptyStateWrapper, EmptyStateGraphic + EmptyStateWrapper, EmptyStateGraphic, } from "../../ui/empty_state_wrapper"; import { Spinner } from "../../extras/spinner"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent, DesignerPanelTop + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, DesignerPanelTop, } from "../designer_panel"; import { t } from "../../i18next_wrapper"; import { Panel } from "../panel_header"; diff --git a/frontend/farm_designer/plants/crop_info.tsx b/frontend/farm_designer/plants/crop_info.tsx index 1fe1ab6c6..c96643be8 100644 --- a/frontend/farm_designer/plants/crop_info.tsx +++ b/frontend/farm_designer/plants/crop_info.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { svgToUrl } from "../../open_farm/icons"; import { - CropInfoProps, CropLiveSearchResult, OpenfarmSearch + CropInfoProps, CropLiveSearchResult, OpenfarmSearch, } from "../interfaces"; import { history, getPathArray } from "../../history"; import { connect } from "react-redux"; @@ -15,11 +15,11 @@ import { createPlant } from "../map/layers/plants/plant_actions"; import { round } from "../map/util"; import { BotPosition } from "../../devices/interfaces"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, } from "../designer_panel"; import { Actions } from "../../constants"; import { - EmptyStateWrapper, EmptyStateGraphic + EmptyStateWrapper, EmptyStateGraphic, } from "../../ui/empty_state_wrapper"; import { startCase, isArray, chain, isNumber } from "lodash"; import { t } from "../../i18next_wrapper"; @@ -55,7 +55,7 @@ const OMITTED_PROPERTIES = [ "description", "main_image_path", "tags_array", - "guides_count" + "guides_count", ]; const NO_VALUE = t("Not Set"); diff --git a/frontend/farm_designer/plants/grid/__tests__/generate_grid_test.ts b/frontend/farm_designer/plants/grid/__tests__/generate_grid_test.ts index 4bd681d68..e3621a535 100644 --- a/frontend/farm_designer/plants/grid/__tests__/generate_grid_test.ts +++ b/frontend/farm_designer/plants/grid/__tests__/generate_grid_test.ts @@ -14,7 +14,7 @@ const expectedResultsOfTestGrid = [ [11, 45], [16, 31], [16, 38], - [16, 45] + [16, 45], ]; describe("initPlantGrid", () => { diff --git a/frontend/farm_designer/plants/grid/plant_grid.tsx b/frontend/farm_designer/plants/grid/plant_grid.tsx index 28f841a56..8aafedced 100644 --- a/frontend/farm_designer/plants/grid/plant_grid.tsx +++ b/frontend/farm_designer/plants/grid/plant_grid.tsx @@ -3,7 +3,7 @@ import { EMPTY_PLANT_GRID, PlantGridKey, PlantGridProps, - PlantGridState + PlantGridState, } from "./constants"; import { initPlantGrid } from "./generate_grid"; import { init } from "../../../api/crud"; diff --git a/frontend/farm_designer/plants/map_state_to_props.tsx b/frontend/farm_designer/plants/map_state_to_props.tsx index fe4149e27..090474570 100644 --- a/frontend/farm_designer/plants/map_state_to_props.tsx +++ b/frontend/farm_designer/plants/map_state_to_props.tsx @@ -2,7 +2,7 @@ import moment from "moment"; import { Everything } from "../../interfaces"; import { EditPlantInfoProps } from "../interfaces"; import { - maybeFindPlantById, maybeFindPlantTemplateById, maybeGetTimeSettings + maybeFindPlantById, maybeFindPlantTemplateById, maybeGetTimeSettings, } from "../../resources/selectors"; import { history } from "../../history"; import { PlantStage } from "farmbot"; diff --git a/frontend/farm_designer/plants/openfarm_search_results.tsx b/frontend/farm_designer/plants/openfarm_search_results.tsx index 964dbfcb6..cab739b26 100644 --- a/frontend/farm_designer/plants/openfarm_search_results.tsx +++ b/frontend/farm_designer/plants/openfarm_search_results.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { Link } from "../../link"; import { - EmptyStateWrapper, EmptyStateGraphic + EmptyStateWrapper, EmptyStateGraphic, } from "../../ui/empty_state_wrapper"; import { Content } from "../../constants"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/farm_designer/plants/plant_info.tsx b/frontend/farm_designer/plants/plant_info.tsx index 3daf83ba8..46aaed23a 100644 --- a/frontend/farm_designer/plants/plant_info.tsx +++ b/frontend/farm_designer/plants/plant_info.tsx @@ -5,7 +5,7 @@ import { PlantPanel } from "./plant_panel"; import { unselectPlant } from "../map/actions"; import { TaggedPlant } from "../map/interfaces"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, } from "../designer_panel"; import { t } from "../../i18next_wrapper"; import { EditPlantInfoProps, PlantOptions } from "../interfaces"; diff --git a/frontend/farm_designer/plants/plant_inventory.tsx b/frontend/farm_designer/plants/plant_inventory.tsx index 9599084a0..a37397abf 100644 --- a/frontend/farm_designer/plants/plant_inventory.tsx +++ b/frontend/farm_designer/plants/plant_inventory.tsx @@ -6,11 +6,11 @@ import { Panel, DesignerNavTabs } from "../panel_header"; import { getPlants } from "../state_to_props"; import { TaggedPlant } from "../map/interfaces"; import { - EmptyStateWrapper, EmptyStateGraphic + EmptyStateWrapper, EmptyStateGraphic, } from "../../ui/empty_state_wrapper"; import { Content } from "../../constants"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelTop + DesignerPanel, DesignerPanelContent, DesignerPanelTop, } from "../designer_panel"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/farm_designer/plants/select_plants.tsx b/frontend/farm_designer/plants/select_plants.tsx index 88d945dc6..8060c42c7 100644 --- a/frontend/farm_designer/plants/select_plants.tsx +++ b/frontend/farm_designer/plants/select_plants.tsx @@ -9,7 +9,7 @@ import { Actions, Content } from "../../constants"; import { TaggedPlant } from "../map/interfaces"; import { getPlants } from "../state_to_props"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, } from "../designer_panel"; import { t } from "../../i18next_wrapper"; import { createGroup } from "../point_groups/actions"; diff --git a/frontend/farm_designer/point_groups/__tests__/actions_test.ts b/frontend/farm_designer/point_groups/__tests__/actions_test.ts index 32589eff1..3909cb3cd 100644 --- a/frontend/farm_designer/point_groups/__tests__/actions_test.ts +++ b/frontend/farm_designer/point_groups/__tests__/actions_test.ts @@ -14,10 +14,10 @@ import { createGroup } from "../actions"; import { init, save } from "../../../api/crud"; import { history } from "../../../history"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { - fakePoint, fakePlant, fakeToolSlot + fakePoint, fakePlant, fakeToolSlot, } from "../../../__test_support__/fake_state/resources"; import { DeepPartial } from "redux"; import { Everything } from "../../../interfaces"; diff --git a/frontend/farm_designer/point_groups/__tests__/group_detail_active_test.tsx b/frontend/farm_designer/point_groups/__tests__/group_detail_active_test.tsx index d987e4db7..11f9a9487 100644 --- a/frontend/farm_designer/point_groups/__tests__/group_detail_active_test.tsx +++ b/frontend/farm_designer/point_groups/__tests__/group_detail_active_test.tsx @@ -8,11 +8,11 @@ jest.mock("../../map/actions", () => ({ setHoveredPlant: jest.fn() })); import React from "react"; import { - GroupDetailActive, GroupDetailActiveProps + GroupDetailActive, GroupDetailActiveProps, } from "../group_detail_active"; import { mount, shallow } from "enzyme"; import { - fakePointGroup, fakePlant + fakePointGroup, fakePlant, } from "../../../__test_support__/fake_state/resources"; import { save, edit } from "../../../api/crud"; import { SpecialStatus } from "farmbot"; diff --git a/frontend/farm_designer/point_groups/__tests__/group_detail_test.tsx b/frontend/farm_designer/point_groups/__tests__/group_detail_test.tsx index 4bff4ebf2..b00590427 100644 --- a/frontend/farm_designer/point_groups/__tests__/group_detail_test.tsx +++ b/frontend/farm_designer/point_groups/__tests__/group_detail_test.tsx @@ -1,5 +1,5 @@ import { - fakePointGroup, fakePlant + fakePointGroup, fakePlant, } from "../../../__test_support__/fake_state/resources"; const GOOD_ID = 9; @@ -26,7 +26,7 @@ import { GroupDetail, findGroupFromUrl } from "../group_detail"; import { fakeState } from "../../../__test_support__/fake_state"; import { createStore } from "redux"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { push } from "../../../history"; @@ -35,7 +35,7 @@ describe("", () => { const state = fakeState(); state.resources = buildResourceIndex([ mockGroup, - mockPlant + mockPlant, ]); return createStore(s => s, state); }; diff --git a/frontend/farm_designer/point_groups/__tests__/group_inventory_item_test.tsx b/frontend/farm_designer/point_groups/__tests__/group_inventory_item_test.tsx index 7b54f4603..ddb719e30 100644 --- a/frontend/farm_designer/point_groups/__tests__/group_inventory_item_test.tsx +++ b/frontend/farm_designer/point_groups/__tests__/group_inventory_item_test.tsx @@ -1,9 +1,9 @@ import React from "react"; import { - GroupInventoryItem, GroupInventoryItemProps + GroupInventoryItem, GroupInventoryItemProps, } from "../group_inventory_item"; import { - fakePointGroup, fakePlant + fakePointGroup, fakePlant, } from "../../../__test_support__/fake_state/resources"; import { mount } from "enzyme"; diff --git a/frontend/farm_designer/point_groups/__tests__/group_list_panel_test.tsx b/frontend/farm_designer/point_groups/__tests__/group_list_panel_test.tsx index 674dd4011..b359b22ba 100644 --- a/frontend/farm_designer/point_groups/__tests__/group_list_panel_test.tsx +++ b/frontend/farm_designer/point_groups/__tests__/group_list_panel_test.tsx @@ -6,15 +6,15 @@ jest.mock("../../../history", () => ({ import React from "react"; import { mount, shallow } from "enzyme"; import { - RawGroupListPanel as GroupListPanel, GroupListPanelProps, mapStateToProps + RawGroupListPanel as GroupListPanel, GroupListPanelProps, mapStateToProps, } from "../group_list_panel"; import { - fakePointGroup, fakePlant + fakePointGroup, fakePlant, } from "../../../__test_support__/fake_state/resources"; import { history } from "../../../history"; import { fakeState } from "../../../__test_support__/fake_state"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; describe("", () => { diff --git a/frontend/farm_designer/point_groups/__tests__/group_order_visual_test.tsx b/frontend/farm_designer/point_groups/__tests__/group_order_visual_test.tsx index e431bb9a5..ceb3bc212 100644 --- a/frontend/farm_designer/point_groups/__tests__/group_order_visual_test.tsx +++ b/frontend/farm_designer/point_groups/__tests__/group_order_visual_test.tsx @@ -7,10 +7,10 @@ jest.mock("../../../redux/store", () => ({ import * as React from "react"; import { GroupOrder, GroupOrderProps } from "../group_order_visual"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../__test_support__/map_transform_props"; import { - fakePlant, fakePointGroup + fakePlant, fakePointGroup, } from "../../../__test_support__/fake_state/resources"; import { svgMount } from "../../../__test_support__/svg_mount"; diff --git a/frontend/farm_designer/point_groups/__tests__/paths_test.tsx b/frontend/farm_designer/point_groups/__tests__/paths_test.tsx index 4ad44cabf..2aef96cb3 100644 --- a/frontend/farm_designer/point_groups/__tests__/paths_test.tsx +++ b/frontend/farm_designer/point_groups/__tests__/paths_test.tsx @@ -10,13 +10,13 @@ jest.mock("../../../account/dev/dev_support", () => ({ import * as React from "react"; import { shallow, mount } from "enzyme"; import { - PathInfoBar, nn, NNPath, PathInfoBarProps, Paths, PathsProps + PathInfoBar, nn, NNPath, PathInfoBarProps, Paths, PathsProps, } from "../paths"; import { - fakePointGroup, fakePoint + fakePointGroup, fakePoint, } from "../../../__test_support__/fake_state/resources"; import { - fakeMapTransformProps + fakeMapTransformProps, } from "../../../__test_support__/map_transform_props"; import { Actions } from "../../../constants"; import { edit } from "../../../api/crud"; diff --git a/frontend/farm_designer/point_groups/__tests__/point_group_item_test.tsx b/frontend/farm_designer/point_groups/__tests__/point_group_item_test.tsx index 90eba3063..c6180656c 100644 --- a/frontend/farm_designer/point_groups/__tests__/point_group_item_test.tsx +++ b/frontend/farm_designer/point_groups/__tests__/point_group_item_test.tsx @@ -8,14 +8,14 @@ jest.mock("../../../api/crud", () => ({ overwrite: jest.fn() })); import React from "react"; import { - PointGroupItem, PointGroupItemProps, genericPointIcon, OTHER_POINT_ICON + PointGroupItem, PointGroupItemProps, genericPointIcon, OTHER_POINT_ICON, } from "../point_group_item"; import { shallow } from "enzyme"; import { - fakePlant, fakePointGroup, fakePoint, fakeToolSlot + fakePlant, fakePointGroup, fakePoint, fakeToolSlot, } from "../../../__test_support__/fake_state/resources"; import { - maybeGetCachedPlantIcon, setImgSrc + maybeGetCachedPlantIcon, setImgSrc, } from "../../../open_farm/cached_crop"; import { setHoveredPlant } from "../../map/actions"; import { overwrite } from "../../../api/crud"; diff --git a/frontend/farm_designer/point_groups/__tests__/point_group_sort_test.ts b/frontend/farm_designer/point_groups/__tests__/point_group_sort_test.ts index 9f7801dbe..589609703 100644 --- a/frontend/farm_designer/point_groups/__tests__/point_group_sort_test.ts +++ b/frontend/farm_designer/point_groups/__tests__/point_group_sort_test.ts @@ -15,7 +15,7 @@ describe("sort()", () => { phony("A", 0, 0), phony("B", 1, 0), phony("C", 1, 1), - phony("D", 0, 1) + phony("D", 0, 1), ]; const sort = (sortType: PointGroupSortType): string[] => { diff --git a/frontend/farm_designer/point_groups/criteria/__tests__/add_test.tsx b/frontend/farm_designer/point_groups/criteria/__tests__/add_test.tsx index b5cd40b6f..d6574c378 100644 --- a/frontend/farm_designer/point_groups/criteria/__tests__/add_test.tsx +++ b/frontend/farm_designer/point_groups/criteria/__tests__/add_test.tsx @@ -15,7 +15,7 @@ import { AddStringCriteriaProps, } from "../interfaces"; import { - fakePointGroup + fakePointGroup, } from "../../../../__test_support__/fake_state/resources"; import { PointGroup } from "farmbot/dist/resources/api_resources"; import { PLANT_STAGE_LIST } from "../../../plants/edit_plant_status"; diff --git a/frontend/farm_designer/point_groups/criteria/__tests__/apply_test.ts b/frontend/farm_designer/point_groups/criteria/__tests__/apply_test.ts index a7ac5efdb..e5da28f4f 100644 --- a/frontend/farm_designer/point_groups/criteria/__tests__/apply_test.ts +++ b/frontend/farm_designer/point_groups/criteria/__tests__/apply_test.ts @@ -1,6 +1,6 @@ import { selectPointsByCriteria, pointsSelectedByGroup } from ".."; import { - fakePoint, fakePlant, fakePointGroup + fakePoint, fakePlant, fakePointGroup, } from "../../../../__test_support__/fake_state/resources"; import { PointGroup } from "farmbot/dist/resources/api_resources"; import moment from "moment"; diff --git a/frontend/farm_designer/point_groups/criteria/__tests__/component_test.tsx b/frontend/farm_designer/point_groups/criteria/__tests__/component_test.tsx index f45f4c5bb..26ed1d2ed 100644 --- a/frontend/farm_designer/point_groups/criteria/__tests__/component_test.tsx +++ b/frontend/farm_designer/point_groups/criteria/__tests__/component_test.tsx @@ -7,10 +7,10 @@ import React from "react"; import { mount } from "enzyme"; import { GroupCriteria, GroupPointCountBreakdown } from ".."; import { - GroupCriteriaProps, GroupPointCountBreakdownProps, DEFAULT_CRITERIA + GroupCriteriaProps, GroupPointCountBreakdownProps, DEFAULT_CRITERIA, } from "../interfaces"; import { - fakePointGroup + fakePointGroup, } from "../../../../__test_support__/fake_state/resources"; import { cloneDeep } from "lodash"; import { overwrite, save } from "../../../../api/crud"; diff --git a/frontend/farm_designer/point_groups/criteria/__tests__/edit_test.ts b/frontend/farm_designer/point_groups/criteria/__tests__/edit_test.ts index 572e4ca91..a8bdbb156 100644 --- a/frontend/farm_designer/point_groups/criteria/__tests__/edit_test.ts +++ b/frontend/farm_designer/point_groups/criteria/__tests__/edit_test.ts @@ -5,10 +5,10 @@ jest.mock("../../../../api/crud", () => ({ import { editCriteria, toggleEqCriteria, - togglePointSelection, toggleStringCriteria, editGtLtCriteria + togglePointSelection, toggleStringCriteria, editGtLtCriteria, } from ".."; import { - fakePointGroup + fakePointGroup, } from "../../../../__test_support__/fake_state/resources"; import { overwrite, save } from "../../../../api/crud"; import { cloneDeep } from "lodash"; diff --git a/frontend/farm_designer/point_groups/criteria/__tests__/presets_test.tsx b/frontend/farm_designer/point_groups/criteria/__tests__/presets_test.tsx index 8a5102176..aca3e83db 100644 --- a/frontend/farm_designer/point_groups/criteria/__tests__/presets_test.tsx +++ b/frontend/farm_designer/point_groups/criteria/__tests__/presets_test.tsx @@ -11,7 +11,7 @@ import { } from ".."; import { CheckboxSelectionsProps } from "../interfaces"; import { - fakePointGroup + fakePointGroup, } from "../../../../__test_support__/fake_state/resources"; import { PointGroup } from "farmbot/dist/resources/api_resources"; @@ -25,7 +25,7 @@ describe("", () => { const p = fakeProps(); p.group.body.criteria = undefined as unknown as PointGroup["criteria"]; const wrapper = mount(); - ["planted plants", "detected weeds", "created points", "created weeds" + ["planted plants", "detected weeds", "created points", "created weeds", ].map(string => expect(wrapper.text()).toContain(string)); }); diff --git a/frontend/farm_designer/point_groups/criteria/__tests__/show_test.tsx b/frontend/farm_designer/point_groups/criteria/__tests__/show_test.tsx index 626fabd24..98828c3b3 100644 --- a/frontend/farm_designer/point_groups/criteria/__tests__/show_test.tsx +++ b/frontend/farm_designer/point_groups/criteria/__tests__/show_test.tsx @@ -15,10 +15,10 @@ import { CriteriaSelectionProps, DEFAULT_CRITERIA, LocationSelectionProps, - GroupCriteriaProps + GroupCriteriaProps, } from "../interfaces"; import { - fakePointGroup + fakePointGroup, } from "../../../../__test_support__/fake_state/resources"; import { overwrite } from "../../../../api/crud"; import { cloneDeep } from "lodash"; diff --git a/frontend/farm_designer/point_groups/criteria/add.tsx b/frontend/farm_designer/point_groups/criteria/add.tsx index 40a678c9d..0f4159973 100644 --- a/frontend/farm_designer/point_groups/criteria/add.tsx +++ b/frontend/farm_designer/point_groups/criteria/add.tsx @@ -11,7 +11,7 @@ import { AddStringCriteriaProps, } from "./interfaces"; import { - PLANT_STAGE_DDI_LOOKUP, PLANT_STAGE_LIST + PLANT_STAGE_DDI_LOOKUP, PLANT_STAGE_LIST, } from "../../plants/edit_plant_status"; export class AddEqCriteria diff --git a/frontend/farm_designer/point_groups/criteria/edit.ts b/frontend/farm_designer/point_groups/criteria/edit.ts index 7c8bcb231..88917c8e4 100644 --- a/frontend/farm_designer/point_groups/criteria/edit.ts +++ b/frontend/farm_designer/point_groups/criteria/edit.ts @@ -20,7 +20,7 @@ export const editCriteria = }; export const toggleEqCriteria = ( - eqCriteria: Record + eqCriteria: Record, ) => (key: string, value: T): Record => { const values: T[] = eqCriteria[key] || []; diff --git a/frontend/farm_designer/point_groups/criteria/presets.tsx b/frontend/farm_designer/point_groups/criteria/presets.tsx index c2b5748d7..fc9821167 100644 --- a/frontend/farm_designer/point_groups/criteria/presets.tsx +++ b/frontend/farm_designer/point_groups/criteria/presets.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import { t } from "../../../i18next_wrapper"; -import { every, } from "lodash"; +import { every } from "lodash"; import { togglePointSelection } from "."; import { CheckboxSelectionsProps, StringEqCriteria } from "./interfaces"; diff --git a/frontend/farm_designer/point_groups/criteria/show.tsx b/frontend/farm_designer/point_groups/criteria/show.tsx index 5c4744601..bab1fc483 100644 --- a/frontend/farm_designer/point_groups/criteria/show.tsx +++ b/frontend/farm_designer/point_groups/criteria/show.tsx @@ -4,13 +4,13 @@ import { Row, Col, FBSelect, DropDownItem } from "../../../ui"; import { AddEqCriteria, toggleEqCriteria, editCriteria, AddNumberCriteria, POINTER_TYPE_DDI_LOOKUP, AddStringCriteria, - CRITERIA_TYPE_DDI_LOOKUP, toggleStringCriteria + CRITERIA_TYPE_DDI_LOOKUP, toggleStringCriteria, } from "."; import { EqCriteriaSelectionProps, NumberCriteriaProps, CriteriaSelectionProps, LocationSelectionProps, GroupCriteriaProps, AddCriteriaState, - DEFAULT_CRITERIA + DEFAULT_CRITERIA, } from "./interfaces"; import { t } from "../../../i18next_wrapper"; import { PointGroup } from "farmbot/dist/resources/api_resources"; diff --git a/frontend/farm_designer/point_groups/group_detail.tsx b/frontend/farm_designer/point_groups/group_detail.tsx index 97becfa70..6e37ef884 100644 --- a/frontend/farm_designer/point_groups/group_detail.tsx +++ b/frontend/farm_designer/point_groups/group_detail.tsx @@ -3,7 +3,7 @@ import { connect } from "react-redux"; import { Everything } from "../../interfaces"; import { TaggedPointGroup, TaggedPoint } from "farmbot"; import { - selectAllActivePoints, selectAllPlantPointers, selectAllPointGroups + selectAllActivePoints, selectAllPlantPointers, selectAllPointGroups, } from "../../resources/selectors"; import { push, getPathArray } from "../../history"; import { GroupDetailActive } from "./group_detail_active"; @@ -12,7 +12,7 @@ import { getShouldDisplayFn } from "../../farmware/state_to_props"; import { uniq } from "lodash"; import { UUID } from "../../resources/interfaces"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, } from "../designer_panel"; import { Panel } from "../panel_header"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/farm_designer/point_groups/group_detail_active.tsx b/frontend/farm_designer/point_groups/group_detail_active.tsx index 6b156c0dc..893df98af 100644 --- a/frontend/farm_designer/point_groups/group_detail_active.tsx +++ b/frontend/farm_designer/point_groups/group_detail_active.tsx @@ -10,7 +10,7 @@ import { Paths } from "./paths"; import { Feature, ShouldDisplay } from "../../devices/interfaces"; import { ErrorBoundary } from "../../error_boundary"; import { - GroupCriteria, GroupPointCountBreakdown, pointsSelectedByGroup + GroupCriteria, GroupPointCountBreakdown, pointsSelectedByGroup, } from "./criteria"; import { Content } from "../../constants"; import { UUID } from "../../resources/interfaces"; diff --git a/frontend/farm_designer/point_groups/group_list_panel.tsx b/frontend/farm_designer/point_groups/group_list_panel.tsx index ff82f48ce..a1e93035f 100644 --- a/frontend/farm_designer/point_groups/group_list_panel.tsx +++ b/frontend/farm_designer/point_groups/group_list_panel.tsx @@ -4,7 +4,7 @@ import { Everything } from "../../interfaces"; import { Panel, DesignerNavTabs } from "../panel_header"; import { t } from "../../i18next_wrapper"; import { - DesignerPanel, DesignerPanelTop, DesignerPanelContent + DesignerPanel, DesignerPanelTop, DesignerPanelContent, } from "../designer_panel"; import { findAll } from "../../resources/find_all"; import { TaggedPointGroup, TaggedPoint } from "farmbot"; diff --git a/frontend/farm_designer/point_groups/group_order_visual.tsx b/frontend/farm_designer/point_groups/group_order_visual.tsx index 800df2c13..5ae74103a 100644 --- a/frontend/farm_designer/point_groups/group_order_visual.tsx +++ b/frontend/farm_designer/point_groups/group_order_visual.tsx @@ -15,7 +15,7 @@ export interface GroupOrderProps { } const sortedPointCoordinates = ( - group: TaggedPointGroup | undefined, groupPoints: TaggedPoint[] + group: TaggedPointGroup | undefined, groupPoints: TaggedPoint[], ): { x: number, y: number }[] => { if (isUndefined(group)) { return []; } const { resources } = store.getState(); diff --git a/frontend/farm_designer/points/__tests__/create_points_test.tsx b/frontend/farm_designer/points/__tests__/create_points_test.tsx index 5c75c37ed..37236388d 100644 --- a/frontend/farm_designer/points/__tests__/create_points_test.tsx +++ b/frontend/farm_designer/points/__tests__/create_points_test.tsx @@ -16,7 +16,7 @@ import { mount, shallow } from "enzyme"; import { RawCreatePoints as CreatePoints, CreatePointsProps, - mapStateToProps + mapStateToProps, } from "../create_points"; import { initSave } from "../../../api/crud"; import { deletePoints } from "../../../farmware/weed_detector/actions"; diff --git a/frontend/farm_designer/points/__tests__/point_info_test.tsx b/frontend/farm_designer/points/__tests__/point_info_test.tsx index f7e960992..3cae6e321 100644 --- a/frontend/farm_designer/points/__tests__/point_info_test.tsx +++ b/frontend/farm_designer/points/__tests__/point_info_test.tsx @@ -22,7 +22,7 @@ import { import { fakePoint } from "../../../__test_support__/fake_state/resources"; import { fakeState } from "../../../__test_support__/fake_state"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { getDevice } from "../../../device"; import { Xyz } from "farmbot"; diff --git a/frontend/farm_designer/points/__tests__/point_inventory_item_test.tsx b/frontend/farm_designer/points/__tests__/point_inventory_item_test.tsx index 30f3d72fd..f2f51292f 100644 --- a/frontend/farm_designer/points/__tests__/point_inventory_item_test.tsx +++ b/frontend/farm_designer/points/__tests__/point_inventory_item_test.tsx @@ -3,7 +3,7 @@ jest.mock("../../../history", () => ({ push: jest.fn() })); import * as React from "react"; import { shallow } from "enzyme"; import { - PointInventoryItem, PointInventoryItemProps + PointInventoryItem, PointInventoryItemProps, } from "../point_inventory_item"; import { fakePoint } from "../../../__test_support__/fake_state/resources"; import { push } from "../../../history"; diff --git a/frontend/farm_designer/points/__tests__/point_inventory_test.tsx b/frontend/farm_designer/points/__tests__/point_inventory_test.tsx index 67aefdcfe..7e4bf6924 100644 --- a/frontend/farm_designer/points/__tests__/point_inventory_test.tsx +++ b/frontend/farm_designer/points/__tests__/point_inventory_test.tsx @@ -10,7 +10,7 @@ import { fakePoint } from "../../../__test_support__/fake_state/resources"; import { push } from "../../../history"; import { fakeState } from "../../../__test_support__/fake_state"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { mapStateToProps } from "../point_inventory"; diff --git a/frontend/farm_designer/points/__tests__/weeds_edit_test.tsx b/frontend/farm_designer/points/__tests__/weeds_edit_test.tsx index bca1a38b5..9569ac587 100644 --- a/frontend/farm_designer/points/__tests__/weeds_edit_test.tsx +++ b/frontend/farm_designer/points/__tests__/weeds_edit_test.tsx @@ -7,12 +7,12 @@ jest.mock("../../../history", () => ({ import * as React from "react"; import { mount, shallow } from "enzyme"; import { - RawEditWeed as EditWeed, EditWeedProps, mapStateToProps + RawEditWeed as EditWeed, EditWeedProps, mapStateToProps, } from "../weeds_edit"; import { fakePoint } from "../../../__test_support__/fake_state/resources"; import { fakeState } from "../../../__test_support__/fake_state"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { Actions } from "../../../constants"; import { DesignerPanelHeader } from "../../designer_panel"; diff --git a/frontend/farm_designer/points/__tests__/weeds_inventory_test.tsx b/frontend/farm_designer/points/__tests__/weeds_inventory_test.tsx index 0387eedaf..638f79066 100644 --- a/frontend/farm_designer/points/__tests__/weeds_inventory_test.tsx +++ b/frontend/farm_designer/points/__tests__/weeds_inventory_test.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { mount, shallow } from "enzyme"; import { - RawWeeds as Weeds, WeedsProps, mapStateToProps + RawWeeds as Weeds, WeedsProps, mapStateToProps, } from "../weeds_inventory"; import { fakeState } from "../../../__test_support__/fake_state"; import { fakePoint } from "../../../__test_support__/fake_state/resources"; diff --git a/frontend/farm_designer/points/create_points.tsx b/frontend/farm_designer/points/create_points.tsx index 2c9d8f5b4..611bbe7db 100644 --- a/frontend/farm_designer/points/create_points.tsx +++ b/frontend/farm_designer/points/create_points.tsx @@ -2,14 +2,14 @@ import * as React from "react"; import { connect } from "react-redux"; import { Everything, - ResourceColor + ResourceColor, } from "../../interfaces"; import { initSave } from "../../api/crud"; import { Row, Col, BlurableInput, - ColorPicker + ColorPicker, } from "../../ui/index"; import { CurrentPointPayl } from "../interfaces"; import { Actions, Content } from "../../constants"; @@ -18,7 +18,7 @@ import { GenericPointer } from "farmbot/dist/resources/api_resources"; import { DesignerPanel, DesignerPanelHeader, - DesignerPanelContent + DesignerPanelContent, } from "../designer_panel"; import { parseIntInput } from "../../util"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/farm_designer/points/point_info.tsx b/frontend/farm_designer/points/point_info.tsx index bbea89696..f30f08c8c 100644 --- a/frontend/farm_designer/points/point_info.tsx +++ b/frontend/farm_designer/points/point_info.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { connect } from "react-redux"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, } from "../designer_panel"; import { t } from "../../i18next_wrapper"; import { history, getPathArray } from "../../history"; @@ -11,7 +11,7 @@ import { TaggedGenericPointer } from "farmbot"; import { maybeFindGenericPointerById } from "../../resources/selectors"; import { Actions } from "../../constants"; import { - EditPointProperties, updatePoint, PointActions + EditPointProperties, updatePoint, PointActions, } from "./point_edit_actions"; export interface EditPointProps { diff --git a/frontend/farm_designer/points/point_inventory.tsx b/frontend/farm_designer/points/point_inventory.tsx index 8a4c223ca..bfa4c1d0a 100644 --- a/frontend/farm_designer/points/point_inventory.tsx +++ b/frontend/farm_designer/points/point_inventory.tsx @@ -4,11 +4,11 @@ import { PointInventoryItem } from "./point_inventory_item"; import { Everything } from "../../interfaces"; import { DesignerNavTabs, Panel } from "../panel_header"; import { - EmptyStateWrapper, EmptyStateGraphic + EmptyStateWrapper, EmptyStateGraphic, } from "../../ui/empty_state_wrapper"; import { Content } from "../../constants"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelTop + DesignerPanel, DesignerPanelContent, DesignerPanelTop, } from "../designer_panel"; import { selectAllGenericPointers } from "../../resources/selectors"; import { TaggedGenericPointer } from "farmbot"; diff --git a/frontend/farm_designer/points/weeds_edit.tsx b/frontend/farm_designer/points/weeds_edit.tsx index c17b97297..04c4ac70f 100644 --- a/frontend/farm_designer/points/weeds_edit.tsx +++ b/frontend/farm_designer/points/weeds_edit.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { connect } from "react-redux"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, } from "../designer_panel"; import { t } from "../../i18next_wrapper"; import { history, getPathArray } from "../../history"; @@ -10,7 +10,7 @@ import { TaggedGenericPointer } from "farmbot"; import { maybeFindGenericPointerById } from "../../resources/selectors"; import { Panel } from "../panel_header"; import { - EditPointProperties, PointActions, updatePoint + EditPointProperties, PointActions, updatePoint, } from "./point_edit_actions"; import { Actions } from "../../constants"; diff --git a/frontend/farm_designer/points/weeds_inventory.tsx b/frontend/farm_designer/points/weeds_inventory.tsx index 63180f06c..f4517bac2 100644 --- a/frontend/farm_designer/points/weeds_inventory.tsx +++ b/frontend/farm_designer/points/weeds_inventory.tsx @@ -3,11 +3,11 @@ import { connect } from "react-redux"; import { Everything } from "../../interfaces"; import { DesignerNavTabs, Panel } from "../panel_header"; import { - EmptyStateWrapper, EmptyStateGraphic + EmptyStateWrapper, EmptyStateGraphic, } from "../../ui/empty_state_wrapper"; import { Content } from "../../constants"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelTop + DesignerPanel, DesignerPanelContent, DesignerPanelTop, } from "../designer_panel"; import { t } from "../../i18next_wrapper"; import { TaggedGenericPointer } from "farmbot"; diff --git a/frontend/farm_designer/saved_gardens/__tests__/actions_test.ts b/frontend/farm_designer/saved_gardens/__tests__/actions_test.ts index 123df620d..ef25b548a 100644 --- a/frontend/farm_designer/saved_gardens/__tests__/actions_test.ts +++ b/frontend/farm_designer/saved_gardens/__tests__/actions_test.ts @@ -18,13 +18,13 @@ import axios from "axios"; import { snapshotGarden, applyGarden, destroySavedGarden, closeSavedGarden, openSavedGarden, openOrCloseGarden, newSavedGarden, unselectSavedGarden, - copySavedGarden + copySavedGarden, } from "../actions"; import { history } from "../../../history"; import { Actions } from "../../../constants"; import { destroy, initSave, initSaveGetId } from "../../../api/crud"; import { - fakeSavedGarden, fakePlantTemplate + fakeSavedGarden, fakePlantTemplate, } from "../../../__test_support__/fake_state/resources"; describe("snapshotGarden", () => { diff --git a/frontend/farm_designer/saved_gardens/__tests__/garden_edit_test.tsx b/frontend/farm_designer/saved_gardens/__tests__/garden_edit_test.tsx index 6d5dcee80..a8c064208 100644 --- a/frontend/farm_designer/saved_gardens/__tests__/garden_edit_test.tsx +++ b/frontend/farm_designer/saved_gardens/__tests__/garden_edit_test.tsx @@ -27,7 +27,7 @@ import { error } from "../../../toast/toast"; import { edit } from "../../../api/crud"; import { fakeState } from "../../../__test_support__/fake_state"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; describe("", () => { diff --git a/frontend/farm_designer/saved_gardens/__tests__/saved_gardens_test.tsx b/frontend/farm_designer/saved_gardens/__tests__/saved_gardens_test.tsx index 4fbbb5476..8ffe8ae67 100644 --- a/frontend/farm_designer/saved_gardens/__tests__/saved_gardens_test.tsx +++ b/frontend/farm_designer/saved_gardens/__tests__/saved_gardens_test.tsx @@ -21,12 +21,12 @@ import { } from "../saved_gardens"; import { clickButton } from "../../../__test_support__/helpers"; import { - fakePlantTemplate, fakeSavedGarden + fakePlantTemplate, fakeSavedGarden, } from "../../../__test_support__/fake_state/resources"; import { history } from "../../../history"; import { fakeState } from "../../../__test_support__/fake_state"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { SavedGardensProps } from "../interfaces"; import { closeSavedGarden } from "../actions"; diff --git a/frontend/farm_designer/saved_gardens/garden_add.tsx b/frontend/farm_designer/saved_gardens/garden_add.tsx index 255f43dde..2102fd7c2 100644 --- a/frontend/farm_designer/saved_gardens/garden_add.tsx +++ b/frontend/farm_designer/saved_gardens/garden_add.tsx @@ -3,10 +3,10 @@ import { connect } from "react-redux"; import { Everything } from "../../interfaces"; import { GardenSnapshotProps, GardenSnapshot } from "./garden_snapshot"; import { - selectAllPlantTemplates, findSavedGarden + selectAllPlantTemplates, findSavedGarden, } from "../../resources/selectors"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, } from "../designer_panel"; import { Content } from "../../constants"; import { Row } from "../../ui"; diff --git a/frontend/farm_designer/saved_gardens/garden_edit.tsx b/frontend/farm_designer/saved_gardens/garden_edit.tsx index f081803db..5c9a0594d 100644 --- a/frontend/farm_designer/saved_gardens/garden_edit.tsx +++ b/frontend/farm_designer/saved_gardens/garden_edit.tsx @@ -7,11 +7,11 @@ import { BlurableInput, Row } from "../../ui"; import { edit, save } from "../../api/crud"; import { connect } from "react-redux"; import { - selectAllPlantPointers, maybeFindSavedGardenById + selectAllPlantPointers, maybeFindSavedGardenById, } from "../../resources/selectors"; import { Everything } from "../../interfaces"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, } from "../designer_panel"; import { history, getPathArray } from "../../history"; import { isNumber } from "lodash"; diff --git a/frontend/farm_designer/saved_gardens/garden_list.tsx b/frontend/farm_designer/saved_gardens/garden_list.tsx index 233f40a6a..4c5fc306f 100644 --- a/frontend/farm_designer/saved_gardens/garden_list.tsx +++ b/frontend/farm_designer/saved_gardens/garden_list.tsx @@ -3,7 +3,7 @@ import { Col } from "../../ui"; import { isNumber, isString } from "lodash"; import { openSavedGarden } from "./actions"; import { - SavedGardenItemProps, SavedGardenInfoProps, SavedGardensListProps + SavedGardenItemProps, SavedGardenInfoProps, SavedGardensListProps, } from "./interfaces"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/farm_designer/saved_gardens/saved_gardens.tsx b/frontend/farm_designer/saved_gardens/saved_gardens.tsx index ef4c9fde6..b33296208 100644 --- a/frontend/farm_designer/saved_gardens/saved_gardens.tsx +++ b/frontend/farm_designer/saved_gardens/saved_gardens.tsx @@ -4,18 +4,18 @@ import { connect } from "react-redux"; import { history } from "../../history"; import { unselectPlant } from "../map/actions"; import { - selectAllSavedGardens, selectAllPlantTemplates, selectAllPlantPointers + selectAllSavedGardens, selectAllPlantTemplates, selectAllPlantPointers, } from "../../resources/selectors"; import { SavedGardenList } from "./garden_list"; import { SavedGardensProps, SavedGardensState } from "./interfaces"; import { closeSavedGarden } from "./actions"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelTop + DesignerPanel, DesignerPanelContent, DesignerPanelTop, } from "../designer_panel"; import { DesignerNavTabs, Panel } from "../panel_header"; import { t } from "../../i18next_wrapper"; import { - EmptyStateWrapper, EmptyStateGraphic + EmptyStateWrapper, EmptyStateGraphic, } from "../../ui/empty_state_wrapper"; import { Content } from "../../constants"; diff --git a/frontend/farm_designer/settings.tsx b/frontend/farm_designer/settings.tsx index 16b187f26..f35516362 100644 --- a/frontend/farm_designer/settings.tsx +++ b/frontend/farm_designer/settings.tsx @@ -5,7 +5,7 @@ import { Content } from "../constants"; import { DesignerPanel, DesignerPanelContent } from "./designer_panel"; import { t } from "../i18next_wrapper"; import { - GetWebAppConfigValue, getWebAppConfigValue, setWebAppConfigValue + GetWebAppConfigValue, getWebAppConfigValue, setWebAppConfigValue, } from "../config_storage/actions"; import { Row, Col } from "../ui"; import { ToggleButton } from "../controls/toggle_button"; @@ -136,8 +136,7 @@ const OriginSelector = (props: DesignerSettingsProps) => { {[2, 1, 3, 4].map(q =>
- )} + onClick={update(q)} />)}
; }; diff --git a/frontend/farm_designer/state_to_props.ts b/frontend/farm_designer/state_to_props.ts index c1e32879b..09c29706b 100644 --- a/frontend/farm_designer/state_to_props.ts +++ b/frontend/farm_designer/state_to_props.ts @@ -13,7 +13,7 @@ import { selectAllPoints, selectAllPointGroups, getDeviceAccountSettings, - maybeFindToolById + maybeFindToolById, } from "../resources/selectors"; import { validBotLocationData, validFwConfig, unpackUUID } from "../util"; import { getWebAppConfigValue } from "../config_storage/actions"; diff --git a/frontend/farm_designer/tools/__tests__/add_tool_slot_test.tsx b/frontend/farm_designer/tools/__tests__/add_tool_slot_test.tsx index 3c631136f..08a4faab7 100644 --- a/frontend/farm_designer/tools/__tests__/add_tool_slot_test.tsx +++ b/frontend/farm_designer/tools/__tests__/add_tool_slot_test.tsx @@ -12,10 +12,10 @@ import { mount, shallow } from "enzyme"; import { RawAddToolSlot as AddToolSlot } from "../add_tool_slot"; import { fakeState } from "../../../__test_support__/fake_state"; import { - fakeTool, fakeToolSlot, fakeWebAppConfig + fakeTool, fakeToolSlot, fakeWebAppConfig, } from "../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { init, save, edit, destroy } from "../../../api/crud"; import { history } from "../../../history"; @@ -39,7 +39,7 @@ describe("", () => { it("renders", () => { const wrapper = mount(); ["add new slot", "x (mm)", "y (mm)", "z (mm)", "tool or seed container", - "change direction", "gantry-mounted" + "change direction", "gantry-mounted", ].map(string => expect(wrapper.text().toLowerCase()).toContain(string)); expect(init).toHaveBeenCalledWith("Point", { pointer_type: "ToolSlot", name: "Slot", radius: 0, meta: {}, diff --git a/frontend/farm_designer/tools/__tests__/add_tool_test.tsx b/frontend/farm_designer/tools/__tests__/add_tool_test.tsx index 91b6f2d1f..f2f14ac0b 100644 --- a/frontend/farm_designer/tools/__tests__/add_tool_test.tsx +++ b/frontend/farm_designer/tools/__tests__/add_tool_test.tsx @@ -5,7 +5,7 @@ jest.mock("../../../history", () => ({ history: { push: jest.fn() } })); import * as React from "react"; import { mount, shallow } from "enzyme"; import { - RawAddTool as AddTool, AddToolProps, mapStateToProps + RawAddTool as AddTool, AddToolProps, mapStateToProps, } from "../add_tool"; import { fakeState } from "../../../__test_support__/fake_state"; import { SaveBtn } from "../../../ui"; diff --git a/frontend/farm_designer/tools/__tests__/edit_tool_slot_test.tsx b/frontend/farm_designer/tools/__tests__/edit_tool_slot_test.tsx index d1938eed9..bd1ed8d3f 100644 --- a/frontend/farm_designer/tools/__tests__/edit_tool_slot_test.tsx +++ b/frontend/farm_designer/tools/__tests__/edit_tool_slot_test.tsx @@ -12,14 +12,14 @@ import { mount, shallow } from "enzyme"; import { RawEditToolSlot as EditToolSlot } from "../edit_tool_slot"; import { fakeState } from "../../../__test_support__/fake_state"; import { - fakeToolSlot, fakeTool + fakeToolSlot, fakeTool, } from "../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { destroy, edit, save } from "../../../api/crud"; import { - EditToolSlotProps, mapStateToPropsEdit + EditToolSlotProps, mapStateToPropsEdit, } from "../map_to_props_add_edit"; import { SlotEditRows } from "../tool_slot_edit_components"; @@ -46,7 +46,7 @@ describe("", () => { p.findToolSlot = () => fakeToolSlot(); const wrapper = mount(); ["edit slot", "x (mm)", "y (mm)", "z (mm)", "tool or seed container", - "change direction", "gantry-mounted" + "change direction", "gantry-mounted", ].map(string => expect(wrapper.text().toLowerCase()).toContain(string)); }); diff --git a/frontend/farm_designer/tools/__tests__/edit_tool_test.tsx b/frontend/farm_designer/tools/__tests__/edit_tool_test.tsx index 2bef0eae0..770a8526f 100644 --- a/frontend/farm_designer/tools/__tests__/edit_tool_test.tsx +++ b/frontend/farm_designer/tools/__tests__/edit_tool_test.tsx @@ -13,12 +13,12 @@ jest.mock("../../../history", () => ({ import * as React from "react"; import { mount, shallow } from "enzyme"; import { - RawEditTool as EditTool, EditToolProps, mapStateToProps, isActive + RawEditTool as EditTool, EditToolProps, mapStateToProps, isActive, } from "../edit_tool"; import { fakeTool, fakeToolSlot } from "../../../__test_support__/fake_state/resources"; import { fakeState } from "../../../__test_support__/fake_state"; import { - buildResourceIndex, fakeDevice + buildResourceIndex, fakeDevice, } from "../../../__test_support__/resource_index_builder"; import { SaveBtn } from "../../../ui"; import { history } from "../../../history"; diff --git a/frontend/farm_designer/tools/__tests__/index_test.tsx b/frontend/farm_designer/tools/__tests__/index_test.tsx index 3101ddc73..40e25caf9 100644 --- a/frontend/farm_designer/tools/__tests__/index_test.tsx +++ b/frontend/farm_designer/tools/__tests__/index_test.tsx @@ -18,12 +18,12 @@ import { ToolSlotInventoryItem, ToolSlotInventoryItemProps, } from "../index"; import { - fakeTool, fakeToolSlot, fakeSensor + fakeTool, fakeToolSlot, fakeSensor, } from "../../../__test_support__/fake_state/resources"; import { history } from "../../../history"; import { fakeState } from "../../../__test_support__/fake_state"; import { - buildResourceIndex, fakeDevice + buildResourceIndex, fakeDevice, } from "../../../__test_support__/resource_index_builder"; import { bot } from "../../../__test_support__/fake_state/bot"; import { error } from "../../../toast/toast"; @@ -69,7 +69,7 @@ describe("", () => { p.toolSlots[1].body.y = 2; const wrapper = mount(); [ - "foo", "my tool", "unnamed", "(1, 0, 0)", "unknown", "(gantry, 2, 0)" + "foo", "my tool", "unnamed", "(1, 0, 0)", "unknown", "(gantry, 2, 0)", ].map(string => expect(wrapper.text().toLowerCase()).toContain(string)); }); diff --git a/frontend/farm_designer/tools/add_tool.tsx b/frontend/farm_designer/tools/add_tool.tsx index 3d1187029..b7ca79c11 100644 --- a/frontend/farm_designer/tools/add_tool.tsx +++ b/frontend/farm_designer/tools/add_tool.tsx @@ -1,7 +1,7 @@ import React from "react"; import { connect } from "react-redux"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelHeader + DesignerPanel, DesignerPanelContent, DesignerPanelHeader, } from "../designer_panel"; import { Everything } from "../../interfaces"; import { t } from "../../i18next_wrapper"; @@ -13,7 +13,7 @@ import { history } from "../../history"; import { selectAllTools } from "../../resources/selectors"; import { betterCompact } from "../../util"; import { - getFwHardwareValue + getFwHardwareValue, } from "../../devices/components/firmware_hardware_support"; import { getFbosConfig } from "../../resources/getters"; import { ToolSVG } from "../map/layers/tool_slots/tool_graphics"; diff --git a/frontend/farm_designer/tools/add_tool_slot.tsx b/frontend/farm_designer/tools/add_tool_slot.tsx index 381abcfdc..874e4199e 100644 --- a/frontend/farm_designer/tools/add_tool_slot.tsx +++ b/frontend/farm_designer/tools/add_tool_slot.tsx @@ -1,7 +1,7 @@ import React from "react"; import { connect } from "react-redux"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelHeader + DesignerPanel, DesignerPanelContent, DesignerPanelHeader, } from "../designer_panel"; import { t } from "../../i18next_wrapper"; import { SaveBtn } from "../../ui"; @@ -13,7 +13,7 @@ import { history } from "../../history"; import { SlotEditRows } from "./tool_slot_edit_components"; import { UUID } from "../../resources/interfaces"; import { - isExpressBoard + isExpressBoard, } from "../../devices/components/firmware_hardware_support"; import { AddToolSlotProps, mapStateToPropsAdd } from "./map_to_props_add_edit"; diff --git a/frontend/farm_designer/tools/edit_tool.tsx b/frontend/farm_designer/tools/edit_tool.tsx index d34127e3d..7883c7926 100644 --- a/frontend/farm_designer/tools/edit_tool.tsx +++ b/frontend/farm_designer/tools/edit_tool.tsx @@ -1,14 +1,14 @@ import React from "react"; import { connect } from "react-redux"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelHeader + DesignerPanel, DesignerPanelContent, DesignerPanelHeader, } from "../designer_panel"; import { Everything } from "../../interfaces"; import { t } from "../../i18next_wrapper"; import { getPathArray } from "../../history"; import { TaggedTool, SpecialStatus, TaggedToolSlotPointer } from "farmbot"; import { - maybeFindToolById, getDeviceAccountSettings, selectAllToolSlotPointers + maybeFindToolById, getDeviceAccountSettings, selectAllToolSlotPointers, } from "../../resources/selectors"; import { SaveBtn } from "../../ui"; import { edit, destroy } from "../../api/crud"; diff --git a/frontend/farm_designer/tools/edit_tool_slot.tsx b/frontend/farm_designer/tools/edit_tool_slot.tsx index 90677319a..18698f96e 100644 --- a/frontend/farm_designer/tools/edit_tool_slot.tsx +++ b/frontend/farm_designer/tools/edit_tool_slot.tsx @@ -1,7 +1,7 @@ import React from "react"; import { connect } from "react-redux"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelHeader + DesignerPanel, DesignerPanelContent, DesignerPanelHeader, } from "../designer_panel"; import { t } from "../../i18next_wrapper"; import { getPathArray } from "../../history"; @@ -12,7 +12,7 @@ import { Panel } from "../panel_header"; import { SlotEditRows } from "./tool_slot_edit_components"; import { moveAbs } from "../../devices/actions"; import { - isExpressBoard + isExpressBoard, } from "../../devices/components/firmware_hardware_support"; import { EditToolSlotProps, mapStateToPropsEdit } from "./map_to_props_add_edit"; diff --git a/frontend/farm_designer/tools/index.tsx b/frontend/farm_designer/tools/index.tsx index 1e9e1c843..1f573b5b1 100644 --- a/frontend/farm_designer/tools/index.tsx +++ b/frontend/farm_designer/tools/index.tsx @@ -1,12 +1,12 @@ import React from "react"; import { connect } from "react-redux"; import { - DesignerPanel, DesignerPanelTop, DesignerPanelContent + DesignerPanel, DesignerPanelTop, DesignerPanelContent, } from "../designer_panel"; import { Everything } from "../../interfaces"; import { DesignerNavTabs, Panel, TAB_COLOR } from "../panel_header"; import { - EmptyStateWrapper, EmptyStateGraphic + EmptyStateWrapper, EmptyStateGraphic, } from "../../ui/empty_state_wrapper"; import { t } from "../../i18next_wrapper"; import { @@ -16,7 +16,7 @@ import { import { selectAllTools, selectAllToolSlotPointers, getDeviceAccountSettings, maybeFindToolById, - selectAllSensors + selectAllSensors, } from "../../resources/selectors"; import { Content } from "../../constants"; import { history } from "../../history"; @@ -30,12 +30,12 @@ import { BotState } from "../../devices/interfaces"; import { NetworkState } from "../../connectivity/interfaces"; import { getStatus } from "../../connectivity/reducer_support"; import { - setToolHover, ToolSlotSVG, ToolSVG + setToolHover, ToolSlotSVG, ToolSVG, } from "../map/layers/tool_slots/tool_graphics"; import { ToolSelection } from "./tool_slot_edit_components"; import { error } from "../../toast/toast"; import { - isExpressBoard, getFwHardwareValue + isExpressBoard, getFwHardwareValue, } from "../../devices/components/firmware_hardware_support"; import { getFbosConfig } from "../../resources/getters"; import { isActive } from "./edit_tool"; diff --git a/frontend/farm_designer/tools/map_to_props_add_edit.ts b/frontend/farm_designer/tools/map_to_props_add_edit.ts index 8b3b42a37..444d71e2e 100644 --- a/frontend/farm_designer/tools/map_to_props_add_edit.ts +++ b/frontend/farm_designer/tools/map_to_props_add_edit.ts @@ -8,7 +8,7 @@ import { BotPosition } from "../../devices/interfaces"; import { validBotLocationData } from "../../util"; import { UUID } from "../../resources/interfaces"; import { - getFwHardwareValue + getFwHardwareValue, } from "../../devices/components/firmware_hardware_support"; import { getFbosConfig } from "../../resources/getters"; import { getWebAppConfigValue } from "../../config_storage/actions"; diff --git a/frontend/farm_designer/tools/tool_slot_edit_components.tsx b/frontend/farm_designer/tools/tool_slot_edit_components.tsx index befbeadff..702537376 100644 --- a/frontend/farm_designer/tools/tool_slot_edit_components.tsx +++ b/frontend/farm_designer/tools/tool_slot_edit_components.tsx @@ -2,7 +2,7 @@ import React from "react"; import { t } from "../../i18next_wrapper"; import { Xyz, TaggedTool, TaggedToolSlotPointer } from "farmbot"; import { - Row, Col, BlurableInput, FBSelect, NULL_CHOICE, DropDownItem + Row, Col, BlurableInput, FBSelect, NULL_CHOICE, DropDownItem, } from "../../ui"; import { BotPosition } from "../../devices/interfaces"; import { ToolPulloutDirection } from "farmbot/dist/resources/api_resources"; diff --git a/frontend/farm_designer/util.ts b/frontend/farm_designer/util.ts index 425fece84..771f7d6bd 100644 --- a/frontend/farm_designer/util.ts +++ b/frontend/farm_designer/util.ts @@ -36,8 +36,7 @@ export const OFSearch = (searchTerm: string) => dispatch({ type: Actions.OF_SEARCH_RESULTS_OK, payload }); }) .catch(() => - dispatch({ type: Actions.OF_SEARCH_RESULTS_NO, payload: undefined }) - ); + dispatch({ type: Actions.OF_SEARCH_RESULTS_NO, payload: undefined })); }; function isExecutableType(x?: string): x is ExecutableType { diff --git a/frontend/farm_designer/zones/__tests__/add_zone_test.tsx b/frontend/farm_designer/zones/__tests__/add_zone_test.tsx index 6e4d540a8..19c45ef7a 100644 --- a/frontend/farm_designer/zones/__tests__/add_zone_test.tsx +++ b/frontend/farm_designer/zones/__tests__/add_zone_test.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { mount } from "enzyme"; import { - RawAddZone as AddZone, AddZoneProps, mapStateToProps + RawAddZone as AddZone, AddZoneProps, mapStateToProps, } from "../add_zone"; import { fakeState } from "../../../__test_support__/fake_state"; diff --git a/frontend/farm_designer/zones/__tests__/edit_zone_test.tsx b/frontend/farm_designer/zones/__tests__/edit_zone_test.tsx index 6579acb6e..0552a4bb8 100644 --- a/frontend/farm_designer/zones/__tests__/edit_zone_test.tsx +++ b/frontend/farm_designer/zones/__tests__/edit_zone_test.tsx @@ -12,12 +12,12 @@ jest.mock("../../../api/crud", () => ({ import * as React from "react"; import { mount, shallow } from "enzyme"; import { - RawEditZone as EditZone, EditZoneProps, mapStateToProps + RawEditZone as EditZone, EditZoneProps, mapStateToProps, } from "../edit_zone"; import { fakeState } from "../../../__test_support__/fake_state"; import { fakePointGroup } from "../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { save, edit } from "../../../api/crud"; diff --git a/frontend/farm_designer/zones/__tests__/zones_inventory_test.tsx b/frontend/farm_designer/zones/__tests__/zones_inventory_test.tsx index 6c7f23d16..ac385be6a 100644 --- a/frontend/farm_designer/zones/__tests__/zones_inventory_test.tsx +++ b/frontend/farm_designer/zones/__tests__/zones_inventory_test.tsx @@ -8,7 +8,7 @@ jest.mock("../../../api/crud", () => ({ initSaveGetId: jest.fn() })); import * as React from "react"; import { mount, shallow } from "enzyme"; import { - RawZones as Zones, ZonesProps, mapStateToProps + RawZones as Zones, ZonesProps, mapStateToProps, } from "../zones_inventory"; import { fakeState } from "../../../__test_support__/fake_state"; import { fakePointGroup } from "../../../__test_support__/fake_state/resources"; diff --git a/frontend/farm_designer/zones/add_zone.tsx b/frontend/farm_designer/zones/add_zone.tsx index 5dc0ef6fd..d6a8b97cf 100644 --- a/frontend/farm_designer/zones/add_zone.tsx +++ b/frontend/farm_designer/zones/add_zone.tsx @@ -1,7 +1,7 @@ import React from "react"; import { connect } from "react-redux"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelHeader + DesignerPanel, DesignerPanelContent, DesignerPanelHeader, } from "../designer_panel"; import { Everything } from "../../interfaces"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/farm_designer/zones/edit_zone.tsx b/frontend/farm_designer/zones/edit_zone.tsx index d6c752f62..3ecd18bae 100644 --- a/frontend/farm_designer/zones/edit_zone.tsx +++ b/frontend/farm_designer/zones/edit_zone.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { connect } from "react-redux"; import { - DesignerPanel, DesignerPanelHeader, DesignerPanelContent + DesignerPanel, DesignerPanelHeader, DesignerPanelContent, } from "../designer_panel"; import { t } from "../../i18next_wrapper"; import { history, getPathArray } from "../../history"; diff --git a/frontend/farm_designer/zones/zones_inventory.tsx b/frontend/farm_designer/zones/zones_inventory.tsx index 650179102..54d049e67 100644 --- a/frontend/farm_designer/zones/zones_inventory.tsx +++ b/frontend/farm_designer/zones/zones_inventory.tsx @@ -3,16 +3,16 @@ import { connect } from "react-redux"; import { Everything } from "../../interfaces"; import { DesignerNavTabs, Panel } from "../panel_header"; import { - EmptyStateWrapper, EmptyStateGraphic + EmptyStateWrapper, EmptyStateGraphic, } from "../../ui/empty_state_wrapper"; import { Content } from "../../constants"; import { - DesignerPanel, DesignerPanelContent, DesignerPanelTop + DesignerPanel, DesignerPanelContent, DesignerPanelTop, } from "../designer_panel"; import { t } from "../../i18next_wrapper"; import { TaggedPointGroup, TaggedPoint } from "farmbot"; import { - selectAllPointGroups, selectAllActivePoints + selectAllPointGroups, selectAllActivePoints, } from "../../resources/selectors"; import { GroupInventoryItem } from "../point_groups/group_inventory_item"; import { history } from "../../history"; diff --git a/frontend/farmware/__tests__/actions_test.ts b/frontend/farmware/__tests__/actions_test.ts index d4bfde0b4..b7b315c76 100644 --- a/frontend/farmware/__tests__/actions_test.ts +++ b/frontend/farmware/__tests__/actions_test.ts @@ -3,7 +3,7 @@ jest.mock("axios", () => ({ return Promise.resolve({ data: [ { package: "farmware0" }, - { package: "farmware1" } + { package: "farmware1" }, ] }); }), diff --git a/frontend/farmware/__tests__/farmware_forms_test.tsx b/frontend/farmware/__tests__/farmware_forms_test.tsx index 39f008e98..e45286375 100644 --- a/frontend/farmware/__tests__/farmware_forms_test.tsx +++ b/frontend/farmware/__tests__/farmware_forms_test.tsx @@ -11,7 +11,7 @@ import * as React from "react"; import { mount, shallow } from "enzyme"; import { needsFarmwareForm, farmwareHelpText, getConfigEnvName, - FarmwareForm, FarmwareFormProps, ConfigFields + FarmwareForm, FarmwareFormProps, ConfigFields, } from "../farmware_forms"; import { fakeFarmware } from "../../__test_support__/fake_farmwares"; import { clickButton } from "../../__test_support__/helpers"; @@ -123,7 +123,6 @@ describe("", () => { "My Fake Farmware", [{ kind: "pair", args: { label: "my_fake_farmware_config_1", value: "4" } - }] - ); + }]); }); }); diff --git a/frontend/farmware/__tests__/farmware_info_test.tsx b/frontend/farmware/__tests__/farmware_info_test.tsx index c55d3beb5..36ec47754 100644 --- a/frontend/farmware/__tests__/farmware_info_test.tsx +++ b/frontend/farmware/__tests__/farmware_info_test.tsx @@ -15,7 +15,7 @@ import { fakeFarmware } from "../../__test_support__/fake_farmwares"; import { clickButton } from "../../__test_support__/helpers"; import { destroy } from "../../api/crud"; import { - fakeFarmwareInstallation + fakeFarmwareInstallation, } from "../../__test_support__/fake_state/resources"; import { error } from "../../toast/toast"; import { retryFetchPackageName } from "../actions"; diff --git a/frontend/farmware/__tests__/farmware_list_test.tsx b/frontend/farmware/__tests__/farmware_list_test.tsx index 66d7ada0a..f06a6d290 100644 --- a/frontend/farmware/__tests__/farmware_list_test.tsx +++ b/frontend/farmware/__tests__/farmware_list_test.tsx @@ -10,7 +10,7 @@ import * as React from "react"; import { mount, shallow } from "enzyme"; import { FarmwareList, FarmwareListProps } from "../farmware_list"; import { - fakeFarmwares, fakeFarmware + fakeFarmwares, fakeFarmware, } from "../../__test_support__/fake_farmwares"; import { clickButton } from "../../__test_support__/helpers"; import { Actions } from "../../constants"; diff --git a/frontend/farmware/__tests__/farmware_test.tsx b/frontend/farmware/__tests__/farmware_test.tsx index 9fd3fad03..6539398bb 100644 --- a/frontend/farmware/__tests__/farmware_test.tsx +++ b/frontend/farmware/__tests__/farmware_test.tsx @@ -6,7 +6,7 @@ import { mount } from "enzyme"; import { RawFarmwarePage as FarmwarePage, BasicFarmwarePage } from "../index"; import { FarmwareProps } from "../../devices/interfaces"; import { - fakeFarmware, fakeFarmwares + fakeFarmware, fakeFarmwares, } from "../../__test_support__/fake_farmwares"; import { clickButton } from "../../__test_support__/helpers"; import { Actions } from "../../constants"; @@ -90,7 +90,7 @@ describe("", () => { p.currentFarmware = "My Fake Test Farmware"; const wrapper = mount(); ["My Fake Test Farmware", "Does things", "Run", "Config 1", - "Information", "Description", "Version", "Update", "Remove" + "Information", "Description", "Version", "Update", "Remove", ].map(string => expect(wrapper.text()).toContain(string)); }); @@ -103,7 +103,7 @@ describe("", () => { p.farmwares["My Fake Test Farmware"] = farmware; p.currentFarmware = "My Fake Test Farmware"; const wrapper = mount(); - ["My Fake Farmware", "Does things", "Run", "No inputs provided." + ["My Fake Farmware", "Does things", "Run", "No inputs provided.", ].map(string => expect(wrapper.text()).toContain(string)); }); diff --git a/frontend/farmware/__tests__/generate_manifest_info_test.ts b/frontend/farmware/__tests__/generate_manifest_info_test.ts index aec356c24..4c9b36283 100644 --- a/frontend/farmware/__tests__/generate_manifest_info_test.ts +++ b/frontend/farmware/__tests__/generate_manifest_info_test.ts @@ -1,6 +1,6 @@ import { manifestInfo, manifestInfoPending } from "../generate_manifest_info"; import { - fakeFarmwareManifestV1, fakeFarmwareManifestV2 + fakeFarmwareManifestV1, fakeFarmwareManifestV2, } from "../../__test_support__/fake_farmwares"; describe("manifestInfo()", () => { diff --git a/frontend/farmware/__tests__/reducer_test.ts b/frontend/farmware/__tests__/reducer_test.ts index c763be85d..65cae270b 100644 --- a/frontend/farmware/__tests__/reducer_test.ts +++ b/frontend/farmware/__tests__/reducer_test.ts @@ -2,7 +2,7 @@ import { farmwareReducer } from "../reducer"; import { FarmwareState } from "../interfaces"; import { Actions } from "../../constants"; import { - fakeImage, fakeFarmwareInstallation + fakeImage, fakeFarmwareInstallation, } from "../../__test_support__/fake_state/resources"; describe("farmwareReducer", () => { diff --git a/frontend/farmware/__tests__/state_to_props_test.tsx b/frontend/farmware/__tests__/state_to_props_test.tsx index ec3d7c2af..8cc47c3f6 100644 --- a/frontend/farmware/__tests__/state_to_props_test.tsx +++ b/frontend/farmware/__tests__/state_to_props_test.tsx @@ -7,10 +7,10 @@ jest.mock("../../api/crud", () => ({ import { mapStateToProps, saveOrEditFarmwareEnv } from "../state_to_props"; import { fakeState } from "../../__test_support__/fake_state"; import { - buildResourceIndex + buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { - fakeFarmwareEnv, fakeFarmwareInstallation + fakeFarmwareEnv, fakeFarmwareInstallation, } from "../../__test_support__/fake_state/resources"; import { edit, initSave, save } from "../../api/crud"; import { fakeFarmwareManifestV1 } from "../../__test_support__/fake_farmwares"; diff --git a/frontend/farmware/camera_calibration/__tests__/camera_calibration_test.tsx b/frontend/farmware/camera_calibration/__tests__/camera_calibration_test.tsx index afdfe119e..636fc2f97 100644 --- a/frontend/farmware/camera_calibration/__tests__/camera_calibration_test.tsx +++ b/frontend/farmware/camera_calibration/__tests__/camera_calibration_test.tsx @@ -51,7 +51,7 @@ describe("", () => { "SATURATION025558", "VALUE025569", "Processing Parameters", - "Scan image" + "Scan image", ].map(string => expect(wrapper.text()).toContain(string)); }); diff --git a/frontend/farmware/camera_calibration/camera_calibration.tsx b/frontend/farmware/camera_calibration/camera_calibration.tsx index 515a7066c..fd113b414 100644 --- a/frontend/farmware/camera_calibration/camera_calibration.tsx +++ b/frontend/farmware/camera_calibration/camera_calibration.tsx @@ -14,7 +14,7 @@ import { namespace } from "../weed_detector"; import { t } from "../../i18next_wrapper"; import { formatEnvKey } from "../weed_detector/remote_env/translators"; import { - cameraBtnProps + cameraBtnProps, } from "../../devices/components/fbos_settings/camera_selection"; import { ImageFlipper } from "../images/image_flipper"; import { PhotoFooter } from "../images/photos"; diff --git a/frontend/farmware/camera_calibration/interfaces.ts b/frontend/farmware/camera_calibration/interfaces.ts index 98a1b7ad0..aae4a2579 100644 --- a/frontend/farmware/camera_calibration/interfaces.ts +++ b/frontend/farmware/camera_calibration/interfaces.ts @@ -2,7 +2,7 @@ import { TaggedImage, SyncStatus } from "farmbot"; import { WD_ENV } from "../weed_detector/remote_env/interfaces"; import { NetworkState } from "../../connectivity/interfaces"; import { - ShouldDisplay, SaveFarmwareEnv, UserEnv + ShouldDisplay, SaveFarmwareEnv, UserEnv, } from "../../devices/interfaces"; import { TimeSettings } from "../../interfaces"; diff --git a/frontend/farmware/farmware_forms.tsx b/frontend/farmware/farmware_forms.tsx index fea546258..63f2afb02 100644 --- a/frontend/farmware/farmware_forms.tsx +++ b/frontend/farmware/farmware_forms.tsx @@ -3,7 +3,7 @@ import { Col, BlurableInput } from "../ui/index"; import { Pair, FarmwareConfig } from "farmbot"; import { getDevice } from "../device"; import { - ShouldDisplay, Feature, SaveFarmwareEnv, UserEnv + ShouldDisplay, Feature, SaveFarmwareEnv, UserEnv, } from "../devices/interfaces"; import { kebabCase, toString, snakeCase } from "lodash"; import { FarmwareManifestInfo } from "./interfaces"; diff --git a/frontend/farmware/images/photos.tsx b/frontend/farmware/images/photos.tsx index b7d38b4ec..563e8e901 100644 --- a/frontend/farmware/images/photos.tsx +++ b/frontend/farmware/images/photos.tsx @@ -9,7 +9,7 @@ import { selectImage } from "./actions"; import { safeStringFetch, timeFormatString } from "../../util"; import { destroy } from "../../api/crud"; import { - downloadProgress + downloadProgress, } from "../../devices/components/fbos_settings/os_update_button"; import { TaggedImage } from "farmbot"; import { startCase } from "lodash"; @@ -17,7 +17,7 @@ import { MustBeOnline } from "../../devices/must_be_online"; import { t } from "../../i18next_wrapper"; import { TimeSettings } from "../../interfaces"; import { - cameraBtnProps + cameraBtnProps, } from "../../devices/components/fbos_settings/camera_selection"; interface MetaInfoProps { diff --git a/frontend/farmware/index.tsx b/frontend/farmware/index.tsx index 35a972aa1..751d8b558 100644 --- a/frontend/farmware/index.tsx +++ b/frontend/farmware/index.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { connect } from "react-redux"; import { - Page, Row, LeftPanel, CenterPanel, RightPanel, DocSlug + Page, Row, LeftPanel, CenterPanel, RightPanel, DocSlug, } from "../ui/index"; import { mapStateToProps, isPendingInstallation } from "./state_to_props"; import { Photos } from "./images/photos"; @@ -12,7 +12,7 @@ import { envGet } from "./weed_detector/remote_env/selectors"; import { setActiveFarmwareByName } from "./set_active_farmware_by_name"; import { FarmwareList } from "./farmware_list"; import { - FarmwareForm, needsFarmwareForm, farmwareHelpText + FarmwareForm, needsFarmwareForm, farmwareHelpText, } from "./farmware_forms"; import { urlFriendly } from "../util"; import { ToolTips, Actions } from "../constants"; diff --git a/frontend/farmware/state_to_props.ts b/frontend/farmware/state_to_props.ts index 99a2415c4..20b7ead7b 100644 --- a/frontend/farmware/state_to_props.ts +++ b/frontend/farmware/state_to_props.ts @@ -1,18 +1,18 @@ import { Everything } from "../interfaces"; import { - selectAllImages, maybeGetDevice, maybeGetTimeSettings + selectAllImages, maybeGetDevice, maybeGetTimeSettings, } from "../resources/selectors"; import { - FarmwareProps, Feature, SaveFarmwareEnv, UserEnv, ShouldDisplay, BotState + FarmwareProps, Feature, SaveFarmwareEnv, UserEnv, ShouldDisplay, BotState, } from "../devices/interfaces"; import { prepopulateEnv } from "./weed_detector/remote_env/selectors"; import { - selectAllFarmwareEnvs, selectAllFarmwareInstallations + selectAllFarmwareEnvs, selectAllFarmwareInstallations, } from "../resources/selectors_by_kind"; import { determineInstalledOsVersion, createShouldDisplayFn, - betterCompact + betterCompact, } from "../util"; import { ResourceIndex } from "../resources/interfaces"; import { TaggedFarmwareEnv, JobProgress } from "farmbot"; diff --git a/frontend/farmware/weed_detector/__tests__/weed_detector_test.tsx b/frontend/farmware/weed_detector/__tests__/weed_detector_test.tsx index 0f138b360..2dd572f5a 100644 --- a/frontend/farmware/weed_detector/__tests__/weed_detector_test.tsx +++ b/frontend/farmware/weed_detector/__tests__/weed_detector_test.tsx @@ -52,7 +52,7 @@ describe("", () => { "SATURATION025550255", "VALUE025550255", "Processing Parameters", - "Scan image" + "Scan image", ].map(string => expect(wrapper.text()).toContain(string)); }); diff --git a/frontend/farmware/weed_detector/config.tsx b/frontend/farmware/weed_detector/config.tsx index acfa7b848..414cac1ba 100644 --- a/frontend/farmware/weed_detector/config.tsx +++ b/frontend/farmware/weed_detector/config.tsx @@ -2,11 +2,11 @@ import * as React from "react"; import { BlurableInput, Row, Col, - FBSelect, NULL_CHOICE, DropDownItem + FBSelect, NULL_CHOICE, DropDownItem, } from "../../ui/index"; import { SettingsMenuProps } from "./interfaces"; import { - SPECIAL_VALUE_DDI, CALIBRATION_DROPDOWNS, ORIGIN_DROPDOWNS + SPECIAL_VALUE_DDI, CALIBRATION_DROPDOWNS, ORIGIN_DROPDOWNS, } from "./constants"; import { WD_ENV } from "./remote_env/interfaces"; import { envGet } from "./remote_env/selectors"; diff --git a/frontend/farmware/weed_detector/constants.ts b/frontend/farmware/weed_detector/constants.ts index e1bbda2da..513c5e5f0 100644 --- a/frontend/farmware/weed_detector/constants.ts +++ b/frontend/farmware/weed_detector/constants.ts @@ -32,7 +32,7 @@ export const SPECIAL_VALUE_DDI: { [index: number]: DropDownItem } = { export const CALIBRATION_DROPDOWNS: DropDownItem[] = [ SPECIAL_VALUE_DDI[SPECIAL_VALUES.X], - SPECIAL_VALUE_DDI[SPECIAL_VALUES.Y] + SPECIAL_VALUE_DDI[SPECIAL_VALUES.Y], ]; export const ORIGIN_DROPDOWNS: DropDownItem[] = [ diff --git a/frontend/farmware/weed_detector/index.tsx b/frontend/farmware/weed_detector/index.tsx index 75a59f9db..766366ace 100644 --- a/frontend/farmware/weed_detector/index.tsx +++ b/frontend/farmware/weed_detector/index.tsx @@ -12,7 +12,7 @@ import { MustBeOnline, isBotOnline } from "../../devices/must_be_online"; import { envSave } from "./remote_env/actions"; import { t } from "../../i18next_wrapper"; import { - cameraBtnProps + cameraBtnProps, } from "../../devices/components/fbos_settings/camera_selection"; export const namespace = (prefix: string) => (key: string): WDENVKey => { diff --git a/frontend/farmware/weed_detector/remote_env/__tests__/translators_test.ts b/frontend/farmware/weed_detector/remote_env/__tests__/translators_test.ts index 825ee5f38..ec61bd735 100644 --- a/frontend/farmware/weed_detector/remote_env/__tests__/translators_test.ts +++ b/frontend/farmware/weed_detector/remote_env/__tests__/translators_test.ts @@ -59,7 +59,7 @@ describe("formatEnvKey()", () => { k: "CAMERA_CALIBRATION_image_bot_origin_location", v: SPECIAL_VALUES.TOP_LEFT, r: "TOP_LEFT" - } + }, ].map(t => { expect(formatEnvKey(t.k as WDENVKey, t.v)).toEqual(t.r); }); diff --git a/frontend/folders/__tests__/actions_test.ts b/frontend/folders/__tests__/actions_test.ts index 652978f9c..f39285a4c 100644 --- a/frontend/folders/__tests__/actions_test.ts +++ b/frontend/folders/__tests__/actions_test.ts @@ -77,7 +77,7 @@ const mockFolders: FolderNode[] = [ { id: 15, parent_id: 14, color: "blue", name: "Fifteen" }, { id: 16, parent_id: 14, color: "blue", name: "Sixteen" }, { id: 17, parent_id: 16, color: "blue", name: "Seventeen" }, - { id: 18, parent_id: 16, color: "blue", name: "Eighteen" } + { id: 18, parent_id: 16, color: "blue", name: "Eighteen" }, ]; const mockSequence = fakeSequence(); diff --git a/frontend/folders/__tests__/data_transfer_test.ts b/frontend/folders/__tests__/data_transfer_test.ts index f44ab58b4..2f7c13d3e 100644 --- a/frontend/folders/__tests__/data_transfer_test.ts +++ b/frontend/folders/__tests__/data_transfer_test.ts @@ -7,7 +7,7 @@ const FOLDERS: FolderNode[] = [ { id: 2, color: "green", name: "Folder for growing things", parent_id: undefined }, { id: 3, color: "yellow", name: "subfolder", parent_id: 2 }, { id: 4, color: "gray", name: "tests", parent_id: undefined }, - { id: 5, color: "pink", name: "deeply nested directory", parent_id: 3 } + { id: 5, color: "pink", name: "deeply nested directory", parent_id: 3 }, ]; const TREE = ingest({ folders: FOLDERS, diff --git a/frontend/folders/__tests__/reducer_test.ts b/frontend/folders/__tests__/reducer_test.ts index 7c28380af..dedfd2c32 100644 --- a/frontend/folders/__tests__/reducer_test.ts +++ b/frontend/folders/__tests__/reducer_test.ts @@ -2,10 +2,10 @@ import { resourceReducer } from "../../resources/reducer"; import { RestResources } from "../../resources/interfaces"; import { fakeSequence, - fakeFolder + fakeFolder, } from "../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { Actions } from "../../constants"; diff --git a/frontend/folders/__tests__/search_folder_tree_test.ts b/frontend/folders/__tests__/search_folder_tree_test.ts index a71b6a603..d5637ab8d 100644 --- a/frontend/folders/__tests__/search_folder_tree_test.ts +++ b/frontend/folders/__tests__/search_folder_tree_test.ts @@ -37,7 +37,7 @@ describe("searchFolderTree", () => { "Six", "Sixteen", // == GRANDPARENTS - "Fourteen" + "Fourteen", ].map(x => expect(results).toContain(x)); expect(results.length).toEqual(5); const results2 = searchFor("Eleven").map(x => x.name); @@ -153,13 +153,13 @@ const fakeSearchProps = (input: string): FolderSearchProps => ({ "content": ["Sequence.67.12"], "open": true, "editing": false - } + }, ], "content": ["Sequence.66.11"] - } + }, ], "content": ["Sequence.65.10"] - } + }, ] } }); diff --git a/frontend/folders/climb.ts b/frontend/folders/climb.ts index 6f88092ef..9b6bc3eb7 100644 --- a/frontend/folders/climb.ts +++ b/frontend/folders/climb.ts @@ -1,5 +1,5 @@ import { - RootFolderNode, FolderUnion, FolderNodeMedial, FolderNodeInitial + RootFolderNode, FolderUnion, FolderNodeMedial, FolderNodeInitial, } from "./interfaces"; import { defensiveClone } from "../util"; diff --git a/frontend/folders/component.tsx b/frontend/folders/component.tsx index 02b009706..a5e3ec9cc 100644 --- a/frontend/folders/component.tsx +++ b/frontend/folders/component.tsx @@ -38,7 +38,7 @@ import { import { Link } from "../link"; import { urlFriendly, lastUrlChunk } from "../util"; import { - setActiveSequenceByName + setActiveSequenceByName, } from "../sequences/set_active_sequence_by_name"; import { Popover } from "@blueprintjs/core"; import { t } from "../i18next_wrapper"; diff --git a/frontend/front_page/__tests__/create_account_test.tsx b/frontend/front_page/__tests__/create_account_test.tsx index 97722079d..54ed91436 100644 --- a/frontend/front_page/__tests__/create_account_test.tsx +++ b/frontend/front_page/__tests__/create_account_test.tsx @@ -11,7 +11,7 @@ jest.mock("../resend_verification", () => { import * as React from "react"; import { - FormField, sendEmail, DidRegister, MustRegister, CreateAccount + FormField, sendEmail, DidRegister, MustRegister, CreateAccount, } from "../create_account"; import { shallow } from "enzyme"; import { BlurableInput } from "../../ui/index"; diff --git a/frontend/front_page/create_account.tsx b/frontend/front_page/create_account.tsx index b45978448..f87331fb5 100644 --- a/frontend/front_page/create_account.tsx +++ b/frontend/front_page/create_account.tsx @@ -6,7 +6,7 @@ import { WidgetHeader, Row, BlurableInput, - BIProps + BIProps, } from "../ui/index"; import { resendEmail } from "./resend_verification"; diff --git a/frontend/help/docs.tsx b/frontend/help/docs.tsx index b6d37d933..1f1155734 100644 --- a/frontend/help/docs.tsx +++ b/frontend/help/docs.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import { - Widget, WidgetBody, WidgetHeader, docLink, DOC_SLUGS, DocSlug + Widget, WidgetBody, WidgetHeader, docLink, DOC_SLUGS, DocSlug, } from "../ui"; import { t } from "../i18next_wrapper"; diff --git a/frontend/help/tour.tsx b/frontend/help/tour.tsx index d2a2f712b..0973e5d56 100644 --- a/frontend/help/tour.tsx +++ b/frontend/help/tour.tsx @@ -32,7 +32,7 @@ interface TourState { } export class Tour extends React.Component { - state: TourState = { run: false, index: 0, returnPath: "", }; + state: TourState = { run: false, index: 0, returnPath: "" }; callback = ({ action, index, step, type }: CallBackProps) => { console.log("Tour debug:", step.target, type, action); diff --git a/frontend/help/tours.ts b/frontend/help/tours.ts index 6d27b3b7b..1e97d0103 100644 --- a/frontend/help/tours.ts +++ b/frontend/help/tours.ts @@ -6,7 +6,7 @@ import { selectAllTools } from "../resources/selectors"; import { store } from "../redux/store"; import { getFbosConfig } from "../resources/getters"; import { - getFwHardwareValue, hasUTM + getFwHardwareValue, hasUTM, } from "../devices/components/firmware_hardware_support"; export enum Tours { diff --git a/frontend/hotkeys.tsx b/frontend/hotkeys.tsx index aa21994f2..645add33b 100644 --- a/frontend/hotkeys.tsx +++ b/frontend/hotkeys.tsx @@ -9,7 +9,7 @@ import { HotkeysTarget, IHotkeyProps, Overlay, - Classes + Classes, } from "@blueprintjs/core"; import { findIndex } from "lodash"; import { t } from "./i18next_wrapper"; @@ -26,7 +26,7 @@ interface State { const hotkeyGuideClasses = [ "hotkey-guide", Classes.CARD, - Classes.ELEVATION_4 + Classes.ELEVATION_4, ].join(" "); @HotkeysTarget @@ -102,7 +102,7 @@ export class HotKeys extends React.Component> { combo: "ctrl + shift + /", label: "Toggle Guide", onKeyDown: () => this.toggle("guideOpen")() - } + }, ]; return hotkeyMap; } diff --git a/frontend/logs/__tests__/state_to_props_test.ts b/frontend/logs/__tests__/state_to_props_test.ts index 646a76860..688b12fb4 100644 --- a/frontend/logs/__tests__/state_to_props_test.ts +++ b/frontend/logs/__tests__/state_to_props_test.ts @@ -4,7 +4,7 @@ import { buildResourceIndex } from "../../__test_support__/resource_index_builde import { TaggedLog } from "farmbot"; import { times } from "lodash"; import { - fakeFbosConfig, fakeLog + fakeFbosConfig, fakeLog, } from "../../__test_support__/fake_state/resources"; describe("mapStateToProps()", () => { diff --git a/frontend/logs/components/__tests__/settings_menu_test.tsx b/frontend/logs/components/__tests__/settings_menu_test.tsx index 2821a6a96..3d99c64fd 100644 --- a/frontend/logs/components/__tests__/settings_menu_test.tsx +++ b/frontend/logs/components/__tests__/settings_menu_test.tsx @@ -14,7 +14,7 @@ import { LogsSettingsMenuProps } from "../../interfaces"; import { fakeState } from "../../../__test_support__/fake_state"; import { fakeFbosConfig } from "../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { edit, save } from "../../../api/crud"; diff --git a/frontend/logs/components/logs_table.tsx b/frontend/logs/components/logs_table.tsx index 14277cd72..2d0255a1a 100644 --- a/frontend/logs/components/logs_table.tsx +++ b/frontend/logs/components/logs_table.tsx @@ -64,7 +64,7 @@ const LogsRow = ({ tlog, timeSettings, dispatch, markdown }: LogsRowProps) => { const LOG_TABLE_CLASS = [ Classes.HTML_TABLE, Classes.HTML_TABLE_STRIPED, - "logs-table" + "logs-table", ].join(" "); /** All log messages with select data in table form for display in the app. */ diff --git a/frontend/logs/components/settings_menu.tsx b/frontend/logs/components/settings_menu.tsx index 48dadae13..38605cd92 100644 --- a/frontend/logs/components/settings_menu.tsx +++ b/frontend/logs/components/settings_menu.tsx @@ -31,7 +31,7 @@ const SEQUENCE_LOG_SETTINGS = (): LogSettingRecord[] => [ label: t("Complete"), setting: "sequence_complete_log", tooltip: ToolTips.SEQUENCE_LOG_END - } + }, ]; const FIRMWARE_LOG_SETTINGS = (): LogSettingRecord[] => [ diff --git a/frontend/logs/state_to_props.ts b/frontend/logs/state_to_props.ts index a8d46a8cb..69cdbcf53 100644 --- a/frontend/logs/state_to_props.ts +++ b/frontend/logs/state_to_props.ts @@ -2,7 +2,7 @@ import { Everything } from "../interfaces"; import { selectAllLogs, maybeGetTimeSettings } from "../resources/selectors"; import { LogsProps } from "./interfaces"; import { - sourceFbosConfigValue + sourceFbosConfigValue, } from "../devices/components/source_config_value"; import { validFbosConfig } from "../util"; import { ResourceIndex } from "../resources/interfaces"; diff --git a/frontend/messages/__tests__/state_to_props_test.ts b/frontend/messages/__tests__/state_to_props_test.ts index bb509a482..03a04f0a4 100644 --- a/frontend/messages/__tests__/state_to_props_test.ts +++ b/frontend/messages/__tests__/state_to_props_test.ts @@ -2,7 +2,7 @@ import { fakeState } from "../../__test_support__/fake_state"; import { mapStateToProps } from "../state_to_props"; import { buildResourceIndex } from "../../__test_support__/resource_index_builder"; import { - fakeAlert, fakeFbosConfig + fakeAlert, fakeFbosConfig, } from "../../__test_support__/fake_state/resources"; describe("mapStateToProps()", () => { diff --git a/frontend/messages/cards.tsx b/frontend/messages/cards.tsx index 8b03e50e5..a1384424d 100644 --- a/frontend/messages/cards.tsx +++ b/frontend/messages/cards.tsx @@ -6,11 +6,11 @@ import { CommonAlertCardProps, DismissAlertProps, Bulletin, - BulletinAlertComponentState + BulletinAlertComponentState, } from "./interfaces"; import { formatLogTime } from "../logs"; import { - FlashFirmwareBtn + FlashFirmwareBtn, } from "../devices/components/fbos_settings/firmware_hardware_status"; import { DropDownItem, Row, Col, FBSelect, docLink, Markdown } from "../ui"; import { Content } from "../constants"; @@ -18,7 +18,7 @@ import { TourList } from "../help/tour_list"; import { splitProblemTag } from "./alerts"; import { destroy } from "../api/crud"; import { - isFwHardwareValue, FIRMWARE_CHOICES_DDI, getFirmwareChoices + isFwHardwareValue, FIRMWARE_CHOICES_DDI, getFirmwareChoices, } from "../devices/components/firmware_hardware_support"; import { updateConfig } from "../devices/actions"; import { fetchBulletinContent, seedAccount } from "./actions"; diff --git a/frontend/messages/state_to_props.ts b/frontend/messages/state_to_props.ts index 413e2746e..7632424e0 100644 --- a/frontend/messages/state_to_props.ts +++ b/frontend/messages/state_to_props.ts @@ -4,10 +4,10 @@ import { validFbosConfig, betterCompact } from "../util"; import { getFbosConfig } from "../resources/getters"; import { sourceFbosConfigValue } from "../devices/components/source_config_value"; import { - selectAllAlerts, maybeGetTimeSettings, findResourceById + selectAllAlerts, maybeGetTimeSettings, findResourceById, } from "../resources/selectors"; import { - isFwHardwareValue + isFwHardwareValue, } from "../devices/components/firmware_hardware_support"; import { ResourceIndex, UUID } from "../resources/interfaces"; import { Alert } from "farmbot"; diff --git a/frontend/nav/__tests__/compute_editor_url_from_state_test.ts b/frontend/nav/__tests__/compute_editor_url_from_state_test.ts index 8fe5ba60d..568deffe6 100644 --- a/frontend/nav/__tests__/compute_editor_url_from_state_test.ts +++ b/frontend/nav/__tests__/compute_editor_url_from_state_test.ts @@ -24,7 +24,7 @@ jest.mock("../../redux/store", () => { }); import { - computeEditorUrlFromState, computeFarmwareUrlFromState + computeEditorUrlFromState, computeFarmwareUrlFromState, } from "../compute_editor_url_from_state"; describe("computeEditorUrlFromState", () => { diff --git a/frontend/nav/nav_links.tsx b/frontend/nav/nav_links.tsx index a0f0a6fb4..4ddfca62e 100644 --- a/frontend/nav/nav_links.tsx +++ b/frontend/nav/nav_links.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { NavLinksProps } from "./interfaces"; import { getPathArray } from "../history"; import { - computeEditorUrlFromState, computeFarmwareUrlFromState + computeEditorUrlFromState, computeFarmwareUrlFromState, } from "./compute_editor_url_from_state"; import { Link } from "../link"; import { t } from "../i18next_wrapper"; diff --git a/frontend/redux/__tests__/subscribers_test.ts b/frontend/redux/__tests__/subscribers_test.ts index 5059ad659..54adbc044 100644 --- a/frontend/redux/__tests__/subscribers_test.ts +++ b/frontend/redux/__tests__/subscribers_test.ts @@ -1,10 +1,10 @@ import { unsavedCheck, stopThem, - dontStopThem + dontStopThem, } from "../subscribers"; import { - buildResourceIndex + buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { SpecialStatus, TaggedWebAppConfig } from "farmbot"; import { fakeState } from "../../__test_support__/fake_state"; diff --git a/frontend/redux/__tests__/version_tracker_middleware_tests.ts b/frontend/redux/__tests__/version_tracker_middleware_tests.ts index b6859dcd5..cf4a938d5 100644 --- a/frontend/redux/__tests__/version_tracker_middleware_tests.ts +++ b/frontend/redux/__tests__/version_tracker_middleware_tests.ts @@ -1,7 +1,7 @@ import { fakeState } from "../../__test_support__/fake_state"; import { versionChangeMiddleware } from "../version_tracker_middleware"; import { - buildResourceIndex, fakeDevice + buildResourceIndex, fakeDevice, } from "../../__test_support__/resource_index_builder"; import { MiddlewareAPI } from "redux"; diff --git a/frontend/redux/middlewares.ts b/frontend/redux/middlewares.ts index 8e1332e4c..127dc8a18 100644 --- a/frontend/redux/middlewares.ts +++ b/frontend/redux/middlewares.ts @@ -26,7 +26,7 @@ export const mwConfig: MiddlewareConfig[] = [ stateFetchMiddlewareConfig, revertToEnglishMiddleware, versionChangeMiddleware, - refilterLogsMiddleware + refilterLogsMiddleware, ]; export function getMiddleware(env: EnvName) { @@ -41,7 +41,7 @@ export function getMiddleware(env: EnvName) { Actions.PING_NO, Actions.PING_OK, Actions.PING_START, - Actions.RESOURCE_READY + Actions.RESOURCE_READY, ] }); const composeEnhancers = dtCompose || compose; diff --git a/frontend/regimens/__tests__/index_test.tsx b/frontend/regimens/__tests__/index_test.tsx index 639da9504..364ccfe06 100644 --- a/frontend/regimens/__tests__/index_test.tsx +++ b/frontend/regimens/__tests__/index_test.tsx @@ -6,13 +6,13 @@ jest.mock("../../history", () => ({ import * as React from "react"; import { mount } from "enzyme"; import { - RawRegimens as Regimens, RegimenBackButtonProps, RegimenBackButton + RawRegimens as Regimens, RegimenBackButtonProps, RegimenBackButton, } from "../index"; import { Props } from "../interfaces"; import { bot } from "../../__test_support__/fake_state/bot"; import { auth } from "../../__test_support__/fake_state/token"; import { - buildResourceIndex + buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { fakeRegimen } from "../../__test_support__/fake_state/resources"; import { Actions } from "../../constants"; diff --git a/frontend/regimens/__tests__/reducer_test.ts b/frontend/regimens/__tests__/reducer_test.ts index a0209ed82..3da4d84c9 100644 --- a/frontend/regimens/__tests__/reducer_test.ts +++ b/frontend/regimens/__tests__/reducer_test.ts @@ -18,7 +18,7 @@ const STATE: RegimenState = { "day6": true, "day7": false } - } + }, ], schedulerOpen: false, }; diff --git a/frontend/regimens/__tests__/state_to_props_test.ts b/frontend/regimens/__tests__/state_to_props_test.ts index f509a122f..a6c5269dc 100644 --- a/frontend/regimens/__tests__/state_to_props_test.ts +++ b/frontend/regimens/__tests__/state_to_props_test.ts @@ -2,13 +2,13 @@ import { mapStateToProps } from "../state_to_props"; import { fakeState } from "../../__test_support__/fake_state"; import { TaggedResource } from "farmbot"; import { - buildResourceIndex + buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { newTaggedResource } from "../../sync/actions"; import { selectAllRegimens } from "../../resources/selectors"; import { fakeVariableNameSet } from "../../__test_support__/fake_variables"; import { - fakeRegimen, fakeSequence + fakeRegimen, fakeSequence, } from "../../__test_support__/fake_state/resources"; describe("mapStateToProps()", () => { @@ -26,7 +26,7 @@ describe("mapStateToProps()", () => { name: "Test Regimen", color: "gray", regimen_items: [ - { id: 1, regimen_id: 10000, sequence_id: 20000, time_offset: 1000 } + { id: 1, regimen_id: 10000, sequence_id: 20000, time_offset: 1000 }, ] }), ...newTaggedResource("Sequence", { @@ -38,7 +38,7 @@ describe("mapStateToProps()", () => { "version": 4, "locals": { "kind": "scope_declaration", "args": {} }, }, kind: "sequence" - }) + }), ]; const { index } = buildResourceIndex(fakeResources); state.resources.index = index; diff --git a/frontend/regimens/bulk_scheduler/__tests__/actions_test.ts b/frontend/regimens/bulk_scheduler/__tests__/actions_test.ts index 6eb07f046..384afe09b 100644 --- a/frontend/regimens/bulk_scheduler/__tests__/actions_test.ts +++ b/frontend/regimens/bulk_scheduler/__tests__/actions_test.ts @@ -2,14 +2,14 @@ jest.mock("i18next", () => ({ t: (i: string) => i })); jest.mock("../../../api/crud", () => ({ overwrite: jest.fn() })); import { - commitBulkEditor, setTimeOffset, toggleDay, setSequence + commitBulkEditor, setTimeOffset, toggleDay, setSequence, } from "../actions"; import { fakeState } from "../../../__test_support__/fake_state"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { - TaggedResource, TaggedSequence, TaggedRegimen, Coordinate + TaggedResource, TaggedSequence, TaggedRegimen, Coordinate, } from "farmbot"; import { Actions } from "../../../constants"; import { Everything } from "../../../interfaces"; @@ -30,7 +30,7 @@ describe("commitBulkEditor()", () => { name: "Test Regimen", color: "gray", regimen_items: [ - { regimen_id, sequence_id, time_offset: 1000 } + { regimen_id, sequence_id, time_offset: 1000 }, ], body: [], }; @@ -113,7 +113,7 @@ describe("commitBulkEditor()", () => { commitBulkEditor()(dispatch, getState); const expected = [ { regimen_id, sequence_id, time_offset: 1000 }, - { sequence_id, time_offset: 2000 } + { sequence_id, time_offset: 2000 }, ]; expect(overwrite).toHaveBeenCalledWith(expect.any(Object), expect.objectContaining({ diff --git a/frontend/regimens/bulk_scheduler/__tests__/index_test.tsx b/frontend/regimens/bulk_scheduler/__tests__/index_test.tsx index 9e6934e7b..7ab18f7f1 100644 --- a/frontend/regimens/bulk_scheduler/__tests__/index_test.tsx +++ b/frontend/regimens/bulk_scheduler/__tests__/index_test.tsx @@ -3,7 +3,7 @@ import { mount, shallow } from "enzyme"; import { BulkScheduler } from "../index"; import { BulkEditorProps } from "../interfaces"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { Actions } from "../../../constants"; import { fakeSequence } from "../../../__test_support__/fake_state/resources"; diff --git a/frontend/regimens/bulk_scheduler/index.tsx b/frontend/regimens/bulk_scheduler/index.tsx index 975f7957f..eda06e3cf 100644 --- a/frontend/regimens/bulk_scheduler/index.tsx +++ b/frontend/regimens/bulk_scheduler/index.tsx @@ -4,7 +4,7 @@ import { AddButton } from "./add_button"; import { WeekGrid } from "./week_grid"; import { commitBulkEditor, setTimeOffset, setSequence } from "./actions"; import { - BlurableInput, Row, Col, FBSelect, DropDownItem, NULL_CHOICE + BlurableInput, Row, Col, FBSelect, DropDownItem, NULL_CHOICE, } from "../../ui/index"; import moment from "moment"; import { isString } from "lodash"; diff --git a/frontend/regimens/bulk_scheduler/interfaces.ts b/frontend/regimens/bulk_scheduler/interfaces.ts index 79082259d..6dbe963fb 100644 --- a/frontend/regimens/bulk_scheduler/interfaces.ts +++ b/frontend/regimens/bulk_scheduler/interfaces.ts @@ -32,7 +32,7 @@ export const DAYS: WeekDay[] = [ "day4", "day5", "day6", - "day7" + "day7", ]; export interface Week { diff --git a/frontend/regimens/editor/__tests__/active_editor_test.tsx b/frontend/regimens/editor/__tests__/active_editor_test.tsx index 77ba55c98..7f1f04b12 100644 --- a/frontend/regimens/editor/__tests__/active_editor_test.tsx +++ b/frontend/regimens/editor/__tests__/active_editor_test.tsx @@ -6,7 +6,7 @@ import { ActiveEditor, editRegimenVariables } from "../active_editor"; import { fakeRegimen } from "../../../__test_support__/fake_state/resources"; import { ActiveEditorProps } from "../interfaces"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { overwrite } from "../../../api/crud"; import { VariableDeclaration } from "farmbot"; diff --git a/frontend/regimens/editor/__tests__/index_test.tsx b/frontend/regimens/editor/__tests__/index_test.tsx index 1f7b06c39..aa7b8c2ae 100644 --- a/frontend/regimens/editor/__tests__/index_test.tsx +++ b/frontend/regimens/editor/__tests__/index_test.tsx @@ -15,7 +15,7 @@ import { destroy, save } from "../../../api/crud"; import { clickButton } from "../../../__test_support__/helpers"; import { SpecialStatus } from "farmbot"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; describe("", () => { diff --git a/frontend/regimens/editor/active_editor.tsx b/frontend/regimens/editor/active_editor.tsx index 889874a49..746e30a0d 100644 --- a/frontend/regimens/editor/active_editor.tsx +++ b/frontend/regimens/editor/active_editor.tsx @@ -3,7 +3,7 @@ import { RegimenNameInput } from "./regimen_name_input"; import { ActiveEditorProps, ActiveEditorState } from "./interfaces"; import { push } from "../../history"; import { - RegimenItem, CalendarRow, RegimenItemCalendarRow, RegimenProps + RegimenItem, CalendarRow, RegimenItemCalendarRow, RegimenProps, } from "../interfaces"; import { TaggedRegimen, ScopeDeclarationBodyItem } from "farmbot"; import { defensiveClone } from "../../util"; @@ -12,7 +12,7 @@ import { SaveBtn } from "../../ui"; import { CopyButton } from "./copy_button"; import { LocalsList } from "../../sequences/locals_list/locals_list"; import { - AllowedVariableNodes, VariableNode + AllowedVariableNodes, VariableNode, } from "../../sequences/locals_list/locals_list_support"; import { addOrEditBodyVariables } from "../../sequences/locals_list/handle_select"; import { t } from "../../i18next_wrapper"; @@ -140,7 +140,7 @@ const regimenDay = (dispatch: Function, resources: ResourceIndex) =>
; const regimenItemRow = ( - dispatch: Function, resources: ResourceIndex, dayIndex: number + dispatch: Function, resources: ResourceIndex, dayIndex: number, ) => (row: RegimenItemCalendarRow, itemIndex: number) =>
(item: RegimenItem): RegimenItemCalendarRow => { const uuid = findId(index, "Sequence", item.sequence_id); diff --git a/frontend/resources/__tests__/in_use_test.ts b/frontend/resources/__tests__/in_use_test.ts index e45708629..37e96ce38 100644 --- a/frontend/resources/__tests__/in_use_test.ts +++ b/frontend/resources/__tests__/in_use_test.ts @@ -1,14 +1,14 @@ import { TaggedResource, TaggedRegimen, TaggedSequence } from "farmbot"; import { ResourceIndex } from "../interfaces"; import { - buildResourceIndex + buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { EVERY_USAGE_KIND, UsageIndex, resourceUsageList } from "../in_use"; import { DeepPartial } from "redux"; import { fakeSequence, fakeFarmEvent, - fakeRegimen + fakeRegimen, } from "../../__test_support__/fake_state/resources"; import { resourceReducer } from "../reducer"; import { resourceReady, newTaggedResource } from "../../sync/actions"; @@ -118,7 +118,7 @@ describe("in_use tracking at reducer level", () => { name: "X", color: "red", regimen_items: [ - { sequence_id, time_offset: 12 } + { sequence_id, time_offset: 12 }, ], body: [], })[0]; diff --git a/frontend/resources/__tests__/reducer_test.ts b/frontend/resources/__tests__/reducer_test.ts index 5ee1fff8e..731acb59c 100644 --- a/frontend/resources/__tests__/reducer_test.ts +++ b/frontend/resources/__tests__/reducer_test.ts @@ -6,7 +6,7 @@ import { TaggedDevice, ResourceName, TaggedResource, - TaggedTool + TaggedTool, } from "farmbot"; import { buildResourceIndex } from "../../__test_support__/resource_index_builder"; import { GeneralizedError } from "../actions"; diff --git a/frontend/resources/__tests__/selectors_test.ts b/frontend/resources/__tests__/selectors_test.ts index 49f4a5678..f3041a578 100644 --- a/frontend/resources/__tests__/selectors_test.ts +++ b/frontend/resources/__tests__/selectors_test.ts @@ -1,5 +1,5 @@ import { - buildResourceIndex, fakeDevice + buildResourceIndex, fakeDevice, } from "../../__test_support__/resource_index_builder"; import * as Selector from "../selectors"; import { @@ -11,7 +11,7 @@ import { hasId, arrayUnwrap } from "../util"; import { fakeWebcamFeed, fakeSequence, - fakePlant + fakePlant, } from "../../__test_support__/fake_state/resources"; import { resourceReducer } from "../reducer"; import { emptyState } from "../reducer"; @@ -67,7 +67,7 @@ describe("getFeeds", () => { it("finds the only WebcamFeed", () => { const feed = fakeWebcamFeed(); const state = [ - resourceReady("WebcamFeed", feed) + resourceReady("WebcamFeed", feed), ].reduce(resourceReducer, emptyState()); expect(Selector.selectAllWebcamFeeds(state.index)[0].body).toEqual(feed.body); }); diff --git a/frontend/resources/__tests__/sequence_meta_test.ts b/frontend/resources/__tests__/sequence_meta_test.ts index 2a622efa7..6329b245e 100644 --- a/frontend/resources/__tests__/sequence_meta_test.ts +++ b/frontend/resources/__tests__/sequence_meta_test.ts @@ -3,23 +3,23 @@ import { determineDropdown, findVariableByName, determineVector, - determineVarDDILabel + determineVarDDILabel, } from "../sequence_meta"; import { fakeSequence, fakePoint, fakeTool, fakeToolSlot, - fakePointGroup + fakePointGroup, } from "../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { - sanitizeNodes + sanitizeNodes, } from "../../sequences/locals_list/sanitize_nodes"; import { - formatPoint, NO_VALUE_SELECTED_DDI, formatTool + formatPoint, NO_VALUE_SELECTED_DDI, formatTool, } from "../../sequences/locals_list/location_form_list"; import { Point, Tool } from "farmbot"; import { fakeVariableNameSet } from "../../__test_support__/fake_variables"; diff --git a/frontend/resources/__tests__/sequence_tagging_test.ts b/frontend/resources/__tests__/sequence_tagging_test.ts index a5885d183..fe87c7a45 100644 --- a/frontend/resources/__tests__/sequence_tagging_test.ts +++ b/frontend/resources/__tests__/sequence_tagging_test.ts @@ -21,7 +21,7 @@ describe("tagAllSteps()", () => { "z": 0, "speed": 100 }, - } + }, ], "args": { "locals": { kind: "scope_declaration", args: {} }, diff --git a/frontend/resources/getters.ts b/frontend/resources/getters.ts index f5a7ad2d0..24f0f9296 100644 --- a/frontend/resources/getters.ts +++ b/frontend/resources/getters.ts @@ -3,7 +3,7 @@ import { ResourceIndex } from "./interfaces"; import { TaggedFbosConfig, TaggedWebAppConfig, - TaggedFirmwareConfig + TaggedFirmwareConfig, } from "farmbot"; /** @fileoverview Resource selectors for SINGULAR resources. */ diff --git a/frontend/resources/interfaces.ts b/frontend/resources/interfaces.ts index 2b58e3a1d..85966af55 100644 --- a/frontend/resources/interfaces.ts +++ b/frontend/resources/interfaces.ts @@ -6,7 +6,7 @@ import { TaggedResource, ResourceName, TaggedToolSlotPointer, - TaggedTool + TaggedTool, } from "farmbot"; import { RegimenState } from "../regimens/reducer"; import { FarmwareState } from "../farmware/interfaces"; diff --git a/frontend/resources/reducer.ts b/frontend/resources/reducer.ts index 589daf595..5895a2e58 100644 --- a/frontend/resources/reducer.ts +++ b/frontend/resources/reducer.ts @@ -9,7 +9,7 @@ import { afterEach, beforeEach, folderIndexer, - reindexFolders + reindexFolders, } from "./reducer_support"; import { TaggedResource, SpecialStatus } from "farmbot"; import { Actions } from "../constants"; diff --git a/frontend/resources/reducer_support.ts b/frontend/resources/reducer_support.ts index 58c8c900d..41ea20b4e 100644 --- a/frontend/resources/reducer_support.ts +++ b/frontend/resources/reducer_support.ts @@ -11,7 +11,7 @@ import { arrayWrap, arrayUnwrap } from "./util"; import { TaggedResource, TaggedSequence } from "farmbot"; import { ResourceIndex } from "./interfaces"; import { - sanitizeNodes + sanitizeNodes, } from "../sequences/locals_list/sanitize_nodes"; import { selectAllFarmEvents, @@ -34,7 +34,7 @@ import { Actions } from "../constants"; import { getFbosConfig } from "./getters"; import { ingest, PARENTLESS as NO_PARENT } from "../folders/data_transfer"; import { - FolderNode, FolderMeta, FolderNodeTerminal, FolderNodeMedial + FolderNode, FolderMeta, FolderNodeTerminal, FolderNodeMedial, } from "../folders/interfaces"; import { climb } from "../folders/climb"; @@ -223,7 +223,7 @@ export const INDEXERS: Indexer[] = [ ALL, BY_KIND, BY_KIND_AND_ID, - SEQUENCE_FOLDERS + SEQUENCE_FOLDERS, ]; type IndexerHook = Partial>; diff --git a/frontend/resources/selectors.ts b/frontend/resources/selectors.ts index 4cdf2388c..fbc60d8c3 100644 --- a/frontend/resources/selectors.ts +++ b/frontend/resources/selectors.ts @@ -23,7 +23,7 @@ import { import { betterCompact, bail } from "../util"; import { findAllById } from "./selectors_by_id"; import { - findPoints, selectAllPoints, selectAllActivePoints + findPoints, selectAllPoints, selectAllActivePoints, } from "./selectors_by_kind"; import { assertUuid } from "./util"; import { joinKindAndId } from "./reducer_support"; diff --git a/frontend/resources/selectors_for_indexing.ts b/frontend/resources/selectors_for_indexing.ts index 19f012404..4d03e776c 100644 --- a/frontend/resources/selectors_for_indexing.ts +++ b/frontend/resources/selectors_for_indexing.ts @@ -8,11 +8,11 @@ import { import { CowardlyDictionary } from "../util"; import { ResourceIndex, - SlotWithTool + SlotWithTool, } from "./interfaces"; import { selectAllToolSlotPointers, - maybeFindToolById + maybeFindToolById, } from "./selectors"; import { assertUuid } from "./util"; @@ -33,7 +33,7 @@ interface MapperFn { (item: T): T | undefined; } * */ export const buildIndexer = (kind: T["kind"], mapper?: MapperFn): Indexer => { - return function (index: ResourceIndex, ) { + return function (index: ResourceIndex) { const noop: MapperFn = (i) => i; const output: CowardlyDictionary = {}; const uuids = Object.keys(index.byKind[kind]); diff --git a/frontend/resources/sequence_meta.ts b/frontend/resources/sequence_meta.ts index b137f2032..75c8c530e 100644 --- a/frontend/resources/sequence_meta.ts +++ b/frontend/resources/sequence_meta.ts @@ -9,13 +9,13 @@ import { findPointerByTypeAndId, findPointGroup } from "./selectors"; import { findSlotByToolId, findToolById, - findResourceById + findResourceById, } from "./selectors_by_id"; import { formatPoint, NO_VALUE_SELECTED_DDI, formatTool, - COORDINATE_DDI + COORDINATE_DDI, } from "../sequences/locals_list/location_form_list"; import { VariableNode } from "../sequences/locals_list/locals_list_support"; import { t } from "../i18next_wrapper"; @@ -61,7 +61,7 @@ export const determineVector = /** Try to find a vector in scope declarations for the variable. */ const maybeFindVariable = ( - label: string, resources: ResourceIndex, uuid?: UUID + label: string, resources: ResourceIndex, uuid?: UUID, ): SequenceMeta | undefined => uuid ? findVariableByName(resources, uuid, label) : undefined; diff --git a/frontend/resources/sequence_tagging.ts b/frontend/resources/sequence_tagging.ts index e3e3468ce..2d7a201ca 100644 --- a/frontend/resources/sequence_tagging.ts +++ b/frontend/resources/sequence_tagging.ts @@ -1,7 +1,7 @@ import { get, set } from "lodash"; import { SequenceBodyItem, uuid } from "farmbot/dist"; import { - Traversable + Traversable, } from "../sequences/locals_list/sanitize_nodes"; /** HISTORICAL NOTES: diff --git a/frontend/sequences/__tests__/actions_test.ts b/frontend/sequences/__tests__/actions_test.ts index 44bcd6265..6f8b01413 100644 --- a/frontend/sequences/__tests__/actions_test.ts +++ b/frontend/sequences/__tests__/actions_test.ts @@ -11,7 +11,7 @@ jest.mock("../set_active_sequence_by_name", () => ({ })); import { - copySequence, editCurrentSequence, selectSequence, pushStep + copySequence, editCurrentSequence, selectSequence, pushStep, } from "../actions"; import { fakeSequence } from "../../__test_support__/fake_state/resources"; import { init, edit, overwrite } from "../../api/crud"; diff --git a/frontend/sequences/__tests__/all_steps_test.tsx b/frontend/sequences/__tests__/all_steps_test.tsx index e4917d4d6..27f24c269 100644 --- a/frontend/sequences/__tests__/all_steps_test.tsx +++ b/frontend/sequences/__tests__/all_steps_test.tsx @@ -25,7 +25,7 @@ describe("", () => { p.sequence.body.body = [ { kind: "move_relative", args: { x: 0, y: 0, z: 0, speed: 100 } }, { kind: "read_pin", args: { pin_number: 0, pin_mode: 0, label: "---" } }, - { kind: "write_pin", args: { pin_number: 0, pin_value: 0, pin_mode: 0 } } + { kind: "write_pin", args: { pin_number: 0, pin_value: 0, pin_mode: 0 } }, ]; p.sequence.body.body.map(step => maybeTagStep(step)); const wrapper = shallow(); diff --git a/frontend/sequences/__tests__/sequence_editor_middle_active_test.tsx b/frontend/sequences/__tests__/sequence_editor_middle_active_test.tsx index d51394e5b..1e16408d6 100644 --- a/frontend/sequences/__tests__/sequence_editor_middle_active_test.tsx +++ b/frontend/sequences/__tests__/sequence_editor_middle_active_test.tsx @@ -33,17 +33,17 @@ import { SequenceEditorMiddleActive, onDrop, SequenceNameAndColor, AddCommandButton, SequenceSettingsMenu, SequenceSetting, - SequenceSettingProps + SequenceSettingProps, } from "../sequence_editor_middle_active"; import { mount, shallow } from "enzyme"; import { ActiveMiddleProps, SequenceHeaderProps } from "../interfaces"; import { - FAKE_RESOURCES, buildResourceIndex + FAKE_RESOURCES, buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { fakeSequence } from "../../__test_support__/fake_state/resources"; import { destroy, save, edit } from "../../api/crud"; import { - fakeHardwareFlags, fakeFarmwareData as fakeFarmwareData + fakeHardwareFlags, fakeFarmwareData as fakeFarmwareData, } from "../../__test_support__/fake_sequence_step_data"; import { SpecialStatus } from "farmbot"; import { move, splice } from "../step_tiles"; diff --git a/frontend/sequences/__tests__/sequence_editor_middle_test.tsx b/frontend/sequences/__tests__/sequence_editor_middle_test.tsx index ce072d771..4310ff0a2 100644 --- a/frontend/sequences/__tests__/sequence_editor_middle_test.tsx +++ b/frontend/sequences/__tests__/sequence_editor_middle_test.tsx @@ -3,11 +3,11 @@ import { SequenceEditorMiddle } from "../sequence_editor_middle"; import { mount } from "enzyme"; import { SequenceEditorMiddleProps } from "../interfaces"; import { - FAKE_RESOURCES, buildResourceIndex + FAKE_RESOURCES, buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { fakeSequence } from "../../__test_support__/fake_state/resources"; import { - fakeHardwareFlags, fakeFarmwareData + fakeHardwareFlags, fakeFarmwareData, } from "../../__test_support__/fake_sequence_step_data"; describe("", () => { diff --git a/frontend/sequences/__tests__/sequence_select_box_test.tsx b/frontend/sequences/__tests__/sequence_select_box_test.tsx index d461e6e8b..8bb24f5f2 100644 --- a/frontend/sequences/__tests__/sequence_select_box_test.tsx +++ b/frontend/sequences/__tests__/sequence_select_box_test.tsx @@ -34,7 +34,7 @@ describe("", () => { const result = SequenceSelectBox(p); expect(result.props.list).toEqual([ { label: "Fake 1", value: 1 }, - { label: "Fake 2", value: 2 } + { label: "Fake 2", value: 2 }, ]); expect(result.props.selectedItem).toEqual(undefined); }); @@ -45,7 +45,7 @@ describe("", () => { p.resources = fakeRIWithSequences(); const result = SequenceSelectBox(p); expect(result.props.list).toEqual([ - { label: "Fake 2", value: 2 } + { label: "Fake 2", value: 2 }, ]); expect(result.props.selectedItem).toEqual( { label: "Fake 1", value: 1 }); diff --git a/frontend/sequences/__tests__/sequences_test.tsx b/frontend/sequences/__tests__/sequences_test.tsx index d1b916b98..a4e4cceb5 100644 --- a/frontend/sequences/__tests__/sequences_test.tsx +++ b/frontend/sequences/__tests__/sequences_test.tsx @@ -5,17 +5,17 @@ jest.mock("../../history", () => ({ import * as React from "react"; import { - RawSequences as Sequences, SequenceBackButtonProps, SequenceBackButton + RawSequences as Sequences, SequenceBackButtonProps, SequenceBackButton, } from "../sequences"; import { shallow, mount } from "enzyme"; import { Props } from "../interfaces"; import { - FAKE_RESOURCES, buildResourceIndex + FAKE_RESOURCES, buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { fakeSequence } from "../../__test_support__/fake_state/resources"; import { ToolTips, Actions } from "../../constants"; import { - fakeHardwareFlags, fakeFarmwareData + fakeHardwareFlags, fakeFarmwareData, } from "../../__test_support__/fake_sequence_step_data"; import { push } from "../../history"; import { mapStateToFolderProps } from "../../folders/map_state_to_props"; diff --git a/frontend/sequences/__tests__/state_to_props_test.ts b/frontend/sequences/__tests__/state_to_props_test.ts index f5d06d388..7485dd006 100644 --- a/frontend/sequences/__tests__/state_to_props_test.ts +++ b/frontend/sequences/__tests__/state_to_props_test.ts @@ -3,10 +3,10 @@ import { fakeState } from "../../__test_support__/fake_state"; import { Feature } from "../../devices/interfaces"; import { fakeFarmwareManifestV1 } from "../../__test_support__/fake_farmwares"; import { - fakeSequence, fakeWebAppConfig, fakeFarmwareEnv + fakeSequence, fakeWebAppConfig, fakeFarmwareEnv, } from "../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../__test_support__/resource_index_builder"; import { TaggedSequence } from "farmbot"; diff --git a/frontend/sequences/__tests__/test_button_test.tsx b/frontend/sequences/__tests__/test_button_test.tsx index 7d235de20..74ddfcf69 100644 --- a/frontend/sequences/__tests__/test_button_test.tsx +++ b/frontend/sequences/__tests__/test_button_test.tsx @@ -161,7 +161,7 @@ describe("", () => { .toHaveBeenCalledWith(props.sequence.body.id, [{ kind: "parameter_application", args: { label: "label", data_value: COORDINATE } - } + }, ]); }); diff --git a/frontend/sequences/locals_list/__tests__/default_value_form_test.tsx b/frontend/sequences/locals_list/__tests__/default_value_form_test.tsx index d3e22ffbc..45cbdcd2a 100644 --- a/frontend/sequences/locals_list/__tests__/default_value_form_test.tsx +++ b/frontend/sequences/locals_list/__tests__/default_value_form_test.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { mount } from "enzyme"; import { DefaultValueFormProps, DefaultValueForm } from "../default_value_form"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { Coordinate } from "farmbot"; diff --git a/frontend/sequences/locals_list/__tests__/is_parameterized_test.ts b/frontend/sequences/locals_list/__tests__/is_parameterized_test.ts index 066dd2d22..28923691f 100644 --- a/frontend/sequences/locals_list/__tests__/is_parameterized_test.ts +++ b/frontend/sequences/locals_list/__tests__/is_parameterized_test.ts @@ -23,7 +23,7 @@ describe("isParameterized()", () => { kind: "coordinate", args: { x: 0, y: 0, z: 0 } } } - } + }, ]); expect(isParameterized(hasParent)).toBeTruthy(); }); diff --git a/frontend/sequences/locals_list/__tests__/locals_list_test.tsx b/frontend/sequences/locals_list/__tests__/locals_list_test.tsx index 5629c4fc6..1bf3d1e34 100644 --- a/frontend/sequences/locals_list/__tests__/locals_list_test.tsx +++ b/frontend/sequences/locals_list/__tests__/locals_list_test.tsx @@ -2,11 +2,11 @@ import * as React from "react"; import { LocalsList } from "../locals_list"; import { ParameterApplication, Coordinate } from "farmbot"; import { - fakeSequence + fakeSequence, } from "../../../__test_support__/fake_state/resources"; import { shallow } from "enzyme"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { LocalsListProps, AllowedVariableNodes } from "../locals_list_support"; import { VariableNameSet } from "../../../resources/interfaces"; diff --git a/frontend/sequences/locals_list/__tests__/location_form_coordinate_input_boxes_test.ts b/frontend/sequences/locals_list/__tests__/location_form_coordinate_input_boxes_test.ts index a4796020b..b91f28d20 100644 --- a/frontend/sequences/locals_list/__tests__/location_form_coordinate_input_boxes_test.ts +++ b/frontend/sequences/locals_list/__tests__/location_form_coordinate_input_boxes_test.ts @@ -1,7 +1,7 @@ import { inputEvent } from "../../../__test_support__/fake_html_events"; import { ParameterApplication } from "farmbot"; import { - AxisEditProps, manuallyEditAxis + AxisEditProps, manuallyEditAxis, } from "../location_form_coordinate_input_boxes"; import { VariableNode } from "../locals_list_support"; diff --git a/frontend/sequences/locals_list/__tests__/location_form_list_test.ts b/frontend/sequences/locals_list/__tests__/location_form_list_test.ts index 2d431305e..4606e3efa 100644 --- a/frontend/sequences/locals_list/__tests__/location_form_list_test.ts +++ b/frontend/sequences/locals_list/__tests__/location_form_list_test.ts @@ -1,9 +1,9 @@ import { - locationFormList, dropDownName, formatTool, groups2Ddi + locationFormList, dropDownName, formatTool, groups2Ddi, } from "../location_form_list"; import { fakeResourceIndex } from "../test_helpers"; import { - fakeToolSlot, fakeTool, fakePointGroup + fakeToolSlot, fakeTool, fakePointGroup, } from "../../../__test_support__/fake_state/resources"; describe("locationFormList()", () => { diff --git a/frontend/sequences/locals_list/__tests__/location_form_test.tsx b/frontend/sequences/locals_list/__tests__/location_form_test.tsx index 4a87dd219..3f7f082d1 100644 --- a/frontend/sequences/locals_list/__tests__/location_form_test.tsx +++ b/frontend/sequences/locals_list/__tests__/location_form_test.tsx @@ -1,15 +1,15 @@ import * as React from "react"; import { LocationForm } from "../location_form"; import { - fakeSequence + fakeSequence, } from "../../../__test_support__/fake_state/resources"; import { shallow, mount } from "enzyme"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { FBSelect, BlurableInput } from "../../../ui/index"; import { - LocationFormProps, PARENT, AllowedVariableNodes + LocationFormProps, PARENT, AllowedVariableNodes, } from "../locals_list_support"; import { difference } from "lodash"; import { locationFormList } from "../location_form_list"; diff --git a/frontend/sequences/locals_list/__tests__/sanitize_nodes_test.ts b/frontend/sequences/locals_list/__tests__/sanitize_nodes_test.ts index 023e7488e..d467f8e96 100644 --- a/frontend/sequences/locals_list/__tests__/sanitize_nodes_test.ts +++ b/frontend/sequences/locals_list/__tests__/sanitize_nodes_test.ts @@ -28,7 +28,7 @@ describe("performAllIndexesOnSequence", () => { kind: "coordinate", args: { x: 0, y: 0, z: 0 } }, label: "parent" } - } + }, ] }; const result = sanitizeNodes(unusedVar); diff --git a/frontend/sequences/locals_list/__tests__/variable_support_test.ts b/frontend/sequences/locals_list/__tests__/variable_support_test.ts index bd2bdc285..547b89e59 100644 --- a/frontend/sequences/locals_list/__tests__/variable_support_test.ts +++ b/frontend/sequences/locals_list/__tests__/variable_support_test.ts @@ -1,14 +1,14 @@ import { - variableList, mergeParameterApplications, getRegimenVariableData + variableList, mergeParameterApplications, getRegimenVariableData, } from "../variable_support"; import { fakeVariableNameSet } from "../../../__test_support__/fake_variables"; import { ParameterApplication, ParameterDeclaration, ScopeDeclarationBodyItem, - Coordinate, VariableDeclaration + Coordinate, VariableDeclaration, } from "farmbot"; import { cloneDeep } from "lodash"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; const COORDINATE: Coordinate = { kind: "coordinate", args: { x: 1, y: 2, z: 3 } }; diff --git a/frontend/sequences/locals_list/default_value_form.tsx b/frontend/sequences/locals_list/default_value_form.tsx index 6b9f03f18..01b604197 100644 --- a/frontend/sequences/locals_list/default_value_form.tsx +++ b/frontend/sequences/locals_list/default_value_form.tsx @@ -4,7 +4,7 @@ import { ResourceIndex } from "../../resources/interfaces"; import { ParameterDeclaration, ParameterApplication } from "farmbot"; import { LocationForm } from "./location_form"; import { - SequenceMeta, determineVector, determineDropdown + SequenceMeta, determineVector, determineDropdown, } from "../../resources/sequence_meta"; import { Help, DropDownItem } from "../../ui"; import { ToolTips } from "../../constants"; @@ -61,7 +61,7 @@ const change = const defaultValueVariableData = ( resources: ResourceIndex, - node: ParameterDeclaration + node: ParameterDeclaration, ): SequenceMeta => { const celeryNode: ParameterApplication = { kind: "parameter_application", diff --git a/frontend/sequences/locals_list/handle_select.ts b/frontend/sequences/locals_list/handle_select.ts index 4a2253e12..af2773181 100644 --- a/frontend/sequences/locals_list/handle_select.ts +++ b/frontend/sequences/locals_list/handle_select.ts @@ -79,7 +79,7 @@ const toolVar = (value: string | number) => const pointVar = ( pointer_type: "Plant" | "GenericPointer", - value: string | number + value: string | number, ) => ({ identifierLabel: label, allowedVariableNodes }: NewVarProps): VariableWithAValue => createVariableNode(allowedVariableNodes)(label, { kind: "point", @@ -163,7 +163,7 @@ export const isScopeDeclarationBodyItem = /** Add a new variable or replace an existing one with the same label (regimens). */ export const addOrEditBodyVariables = ( bodyVariables: VariableNode[], - updatedItem: ScopeDeclarationBodyItem + updatedItem: ScopeDeclarationBodyItem, ): ScopeDeclarationBodyItem[] => { const filteredVariables: ScopeDeclarationBodyItem[] = betterCompact(bodyVariables.map(v => @@ -177,7 +177,7 @@ export const addOrEditBodyVariables = ( * (sequences) */ export const addOrEditDeclarationLocals = ( declarations: ScopeDeclarationBodyItem[], - updatedItem: ScopeDeclarationBodyItem + updatedItem: ScopeDeclarationBodyItem, ): ScopeDeclaration => { const updatedDeclarations = addOrEditBodyVariables(declarations, updatedItem); const newLocals: ScopeDeclaration = { diff --git a/frontend/sequences/locals_list/locals_list.tsx b/frontend/sequences/locals_list/locals_list.tsx index 606cab02d..2d26c6d8f 100644 --- a/frontend/sequences/locals_list/locals_list.tsx +++ b/frontend/sequences/locals_list/locals_list.tsx @@ -11,7 +11,7 @@ import { import { overwrite } from "../../api/crud"; import { LocationForm } from "./location_form"; import { - SequenceMeta, determineDropdown, determineVector + SequenceMeta, determineDropdown, determineVector, } from "../../resources/sequence_meta"; import { ResourceIndex } from "../../resources/interfaces"; diff --git a/frontend/sequences/locals_list/locals_list_support.ts b/frontend/sequences/locals_list/locals_list_support.ts index 7f970ca4a..17c6e906c 100644 --- a/frontend/sequences/locals_list/locals_list_support.ts +++ b/frontend/sequences/locals_list/locals_list_support.ts @@ -1,10 +1,10 @@ import { ParameterDeclaration, VariableDeclaration, - ParameterApplication + ParameterApplication, } from "farmbot"; import { - ResourceIndex, VariableNameSet, UUID + ResourceIndex, VariableNameSet, UUID, } from "../../resources/interfaces"; import { SequenceMeta } from "../../resources/sequence_meta"; import { ShouldDisplay } from "../../devices/interfaces"; diff --git a/frontend/sequences/locals_list/location_form_list.ts b/frontend/sequences/locals_list/location_form_list.ts index 30c1399d8..59cb32822 100644 --- a/frontend/sequences/locals_list/location_form_list.ts +++ b/frontend/sequences/locals_list/location_form_list.ts @@ -7,7 +7,7 @@ import { } from "../../resources/selectors"; import { betterCompact } from "../../util"; import { - TaggedTool, TaggedPoint, TaggedToolSlotPointer, Xyz, Vector3, TaggedPointGroup + TaggedTool, TaggedPoint, TaggedToolSlotPointer, Xyz, Vector3, TaggedPointGroup, } from "farmbot"; import { DropDownItem } from "../../ui"; import { capitalize, isNumber } from "lodash"; diff --git a/frontend/sequences/locals_list/sanitize_nodes.ts b/frontend/sequences/locals_list/sanitize_nodes.ts index 4d35ead43..20827a1ec 100644 --- a/frontend/sequences/locals_list/sanitize_nodes.ts +++ b/frontend/sequences/locals_list/sanitize_nodes.ts @@ -4,10 +4,10 @@ import { Identifier, ScopeDeclarationBodyItem, VariableDeclaration, - Execute + Execute, } from "farmbot"; import { - SequenceResource as Sequence + SequenceResource as Sequence, } from "farmbot/dist/resources/api_resources"; import { maybeTagStep } from "../../resources/sequence_tagging"; import { NOTHING_SELECTED } from "./handle_select"; diff --git a/frontend/sequences/locals_list/variable_support.ts b/frontend/sequences/locals_list/variable_support.ts index c44674264..32ecc91f8 100644 --- a/frontend/sequences/locals_list/variable_support.ts +++ b/frontend/sequences/locals_list/variable_support.ts @@ -1,7 +1,7 @@ import { VariableNameSet, ResourceIndex } from "../../resources/interfaces"; import { ParameterApplication, Dictionary, - VariableDeclaration, ParameterDeclaration + VariableDeclaration, ParameterDeclaration, } from "farmbot"; import { betterCompact } from "../../util"; import { isParameterDeclaration } from "./locals_list"; @@ -63,7 +63,7 @@ export const reduceVariables = ( export const mergeVariables = ( varData: VariableNameSet | undefined, variables: T[], - newVariableKind: "parameter_application" | "variable_declaration" + newVariableKind: "parameter_application" | "variable_declaration", ): T[] => { /** New variables required by the chosen sequence. */ const newVars = newVariableKind === "variable_declaration" @@ -81,7 +81,7 @@ export const mergeVariables = ( /** Add new parameter applications if they don't already exist. */ export const mergeParameterApplications = ( varData: VariableNameSet | undefined, - bodyVariables: ParameterApplication[] + bodyVariables: ParameterApplication[], ): ParameterApplication[] => { return mergeVariables(varData, bodyVariables, "parameter_application"); }; @@ -89,7 +89,7 @@ export const mergeParameterApplications = ( /** Add new variables if they don't already exist. */ export const mergeDeclarations = ( varData: VariableNameSet | undefined, - bodyVariables: VariableNode[] + bodyVariables: VariableNode[], ): VariableNode[] => { return mergeVariables(varData, bodyVariables, "variable_declaration"); }; @@ -97,7 +97,7 @@ export const mergeDeclarations = ( /** Convert Regimen body variable data into a VariableNameSet. */ export const getRegimenVariableData = ( bodyVariables: VariableNode[], - resources: ResourceIndex + resources: ResourceIndex, ): VariableNameSet => { const varData: VariableNameSet = {}; bodyVariables.map(variable => { diff --git a/frontend/sequences/sequence_editor_middle.tsx b/frontend/sequences/sequence_editor_middle.tsx index 9ca320bfc..8b75d4084 100644 --- a/frontend/sequences/sequence_editor_middle.tsx +++ b/frontend/sequences/sequence_editor_middle.tsx @@ -3,7 +3,7 @@ import { SequenceEditorMiddleProps } from "./interfaces"; import { isTaggedSequence } from "../resources/tagged_resources"; import { SequenceEditorMiddleActive } from "./sequence_editor_middle_active"; import { - EmptyStateWrapper, EmptyStateGraphic + EmptyStateWrapper, EmptyStateGraphic, } from "../ui/empty_state_wrapper"; import { Content } from "../constants"; import { t } from "../i18next_wrapper"; diff --git a/frontend/sequences/state_to_props.ts b/frontend/sequences/state_to_props.ts index b7377fe41..4abd62e72 100644 --- a/frontend/sequences/state_to_props.ts +++ b/frontend/sequences/state_to_props.ts @@ -13,7 +13,7 @@ import { calculateAxialLengths } from "../controls/move/direction_axes_props"; import { mapStateToFolderProps } from "../folders/map_state_to_props"; import { getEnv, getShouldDisplayFn } from "../farmware/state_to_props"; import { - cameraDisabled + cameraDisabled, } from "../devices/components/fbos_settings/camera_selection"; export function mapStateToProps(props: Everything): Props { diff --git a/frontend/sequences/step_button_cluster.tsx b/frontend/sequences/step_button_cluster.tsx index 966178b61..8acc84a77 100644 --- a/frontend/sequences/step_button_cluster.tsx +++ b/frontend/sequences/step_button_cluster.tsx @@ -192,8 +192,7 @@ export function StepButtonCluster(props: StepButtonProps) { }} color="brown"> {t("Mark As...")} - - ); + ); return
{ALL_THE_BUTTONS.map((stepButton, inx) => diff --git a/frontend/sequences/step_tiles/__tests__/index_test.ts b/frontend/sequences/step_tiles/__tests__/index_test.ts index 2129558cf..4515b18e5 100644 --- a/frontend/sequences/step_tiles/__tests__/index_test.ts +++ b/frontend/sequences/step_tiles/__tests__/index_test.ts @@ -43,7 +43,7 @@ describe("move()", () => { const step1: Wait = { kind: "wait", args: { milliseconds: 100 } }; const step2: Wait = { kind: "wait", args: { milliseconds: 200 } }; sequence.body.body = [step1, step2]; - const fakeProps = () => ({ step: step2, sequence, to: 0, from: 1, }); + const fakeProps = () => ({ step: step2, sequence, to: 0, from: 1 }); it("moves step backward", () => { const p = fakeProps(); @@ -68,7 +68,7 @@ describe("move()", () => { describe("splice()", () => { const sequence = fakeSequence(); const step: Wait = { kind: "wait", args: { milliseconds: 100 } }; - const fakeProps = () => ({ step, sequence, index: 1, }); + const fakeProps = () => ({ step, sequence, index: 1 }); it("adds step", () => { const p = fakeProps(); @@ -160,7 +160,7 @@ describe("renderCeleryNode()", () => { expected: "MarkPlantasx = 300" }, { - node: { kind: "set_servo_angle", args: { pin_number: 4, pin_value: 90, } }, + node: { kind: "set_servo_angle", args: { pin_number: 4, pin_value: 90 } }, expected: "Servo" }, { @@ -180,7 +180,7 @@ describe("renderCeleryNode()", () => { expected: "Calibrate x" }, { - node: { kind: "home", args: { axis: "all", speed: 100, } }, + node: { kind: "home", args: { axis: "all", speed: 100 } }, expected: "Home x" }, { diff --git a/frontend/sequences/step_tiles/__tests__/pin_and_peripheral_support_test.tsx b/frontend/sequences/step_tiles/__tests__/pin_and_peripheral_support_test.tsx index c9c7cae86..b93b67da6 100644 --- a/frontend/sequences/step_tiles/__tests__/pin_and_peripheral_support_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/pin_and_peripheral_support_test.tsx @@ -1,5 +1,5 @@ import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { dropDown2CeleryArg, @@ -23,11 +23,11 @@ import { import { fakePeripheral, fakeSensor, - fakeSequence + fakeSequence, } from "../../../__test_support__/fake_state/resources"; import { DropDownItem } from "../../../ui"; import { - NamedPin, AllowedPinTypes, TaggedSensor, TaggedSequence, Nothing + NamedPin, AllowedPinTypes, TaggedSensor, TaggedSequence, Nothing, } from "farmbot"; import { StepParams } from "../../interfaces"; import { Actions } from "../../../constants"; @@ -51,7 +51,7 @@ describe("Pin and Peripheral support files", () => { } } } - } + }, ]; return buildResourceIndex([sequence, peripheral, fakeSensor()]).index; }; @@ -205,7 +205,7 @@ describe("Pin and Peripheral support files", () => { expect(result).toEqual(expected); }); - it.each<[BoxLed]>(Object.values(BoxLed).map(x => [x]) + it.each<[BoxLed]>(Object.values(BoxLed).map(x => [x]), )("converts %s named pin to DropDownItem", (boxLed) => { const ri = buildResourceIndex([]).index; const namedPin: NamedPin = { diff --git a/frontend/sequences/step_tiles/__tests__/tile_assertion_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_assertion_test.tsx index 92e44af91..16608cda2 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_assertion_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_assertion_test.tsx @@ -6,7 +6,7 @@ import { StepWrapper } from "../../step_ui/step_wrapper"; import { DeepPartial } from "redux"; import { fakeSequence } from "../../../__test_support__/fake_state/resources"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { renderCeleryNode } from ".."; diff --git a/frontend/sequences/step_tiles/__tests__/tile_calibrate_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_calibrate_test.tsx index 5a87fcece..8d669dd8a 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_calibrate_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_calibrate_test.tsx @@ -5,7 +5,7 @@ import { fakeSequence } from "../../../__test_support__/fake_state/resources"; import { emptyState } from "../../../resources/reducer"; import { HardwareFlags } from "../../interfaces"; import { - fakeHardwareFlags + fakeHardwareFlags, } from "../../../__test_support__/fake_sequence_step_data"; describe("", () => { diff --git a/frontend/sequences/step_tiles/__tests__/tile_execute_script_support_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_execute_script_support_test.tsx index a9b254c15..1a0d2debe 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_execute_script_support_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_execute_script_support_test.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { mount, shallow } from "enzyme"; import { - FarmwareInputsProps, FarmwareInputs + FarmwareInputsProps, FarmwareInputs, } from "../tile_execute_script_support"; describe("", () => { diff --git a/frontend/sequences/step_tiles/__tests__/tile_execute_script_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_execute_script_test.tsx index a9980223e..61b524288 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_execute_script_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_execute_script_test.tsx @@ -7,7 +7,7 @@ import { StepParams } from "../../interfaces"; import { Actions, Content } from "../../../constants"; import { emptyState } from "../../../resources/reducer"; import { - fakeFarmwareData + fakeFarmwareData, } from "../../../__test_support__/fake_sequence_step_data"; describe("", () => { diff --git a/frontend/sequences/step_tiles/__tests__/tile_find_home_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_find_home_test.tsx index 75dd58696..48c9bfd84 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_find_home_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_find_home_test.tsx @@ -3,7 +3,7 @@ import { TileFindHome, FindHomeParams } from "../tile_find_home"; import { mount } from "enzyme"; import { fakeSequence } from "../../../__test_support__/fake_state/resources"; import { - fakeHardwareFlags + fakeHardwareFlags, } from "../../../__test_support__/fake_sequence_step_data"; import { HardwareFlags } from "../../interfaces"; import { emptyState } from "../../../resources/reducer"; diff --git a/frontend/sequences/step_tiles/__tests__/tile_move_absolute_conflict_check_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_move_absolute_conflict_check_test.tsx index 6bbf3cea9..a9a8b61ab 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_move_absolute_conflict_check_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_move_absolute_conflict_check_test.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { mount } from "enzyme"; import { MoveAbsoluteWarningProps } from "../../interfaces"; import { - fakeHardwareFlags + fakeHardwareFlags, } from "../../../__test_support__/fake_sequence_step_data"; import { MoveAbsoluteWarning } from "../tile_move_absolute_conflict_check"; diff --git a/frontend/sequences/step_tiles/__tests__/tile_move_absolute_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_move_absolute_test.tsx index d398b1b0f..e6321b25d 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_move_absolute_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_move_absolute_test.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { TileMoveAbsolute } from "../tile_move_absolute"; import { mount, ReactWrapper } from "enzyme"; import { - fakeSequence, fakePoint, fakeTool, fakeToolSlot + fakeSequence, fakePoint, fakeTool, fakeToolSlot, } from "../../../__test_support__/fake_state/resources"; import { Coordinate, @@ -12,7 +12,7 @@ import { Tool, } from "farmbot"; import { - fakeHardwareFlags + fakeHardwareFlags, } from "../../../__test_support__/fake_sequence_step_data"; import { emptyState } from "../../../resources/reducer"; import { inputEvent } from "../../../__test_support__/fake_html_events"; @@ -48,7 +48,7 @@ describe("", () => { } function checkField( - block: ReactWrapper, position: number, label: string, value: string | number + block: ReactWrapper, position: number, label: string, value: string | number, ) { expect(block.find("label").at(position).text().toLowerCase()) .toEqual(label); @@ -186,7 +186,7 @@ describe("", () => { const tma = ordinaryMoveAbs(); tma.updateArgs = jest.fn(); const location: Coordinate = { - kind: "coordinate", args: { x: 0, y: 0, z: 0, } + kind: "coordinate", args: { x: 0, y: 0, z: 0 } }; tma.updateLocation({ kind: "parameter_application", diff --git a/frontend/sequences/step_tiles/__tests__/tile_pin_support_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_pin_support_test.tsx index bce7a9cba..5870b6b52 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_pin_support_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_pin_support_test.tsx @@ -9,7 +9,7 @@ import { currentModeSelection, currentValueSelection, setPinMode, - setPinValue + setPinValue, } from "../tile_pin_support"; import { fakeSequence } from "../../../__test_support__/fake_state/resources"; import { WritePin, ALLOWED_PIN_MODES } from "farmbot/dist"; diff --git a/frontend/sequences/step_tiles/__tests__/tile_send_message_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_send_message_test.tsx index d8db5de69..9eaf98091 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_send_message_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_send_message_test.tsx @@ -5,7 +5,7 @@ jest.mock("../../../api/crud", () => ({ import * as React from "react"; import { - TileSendMessage, RefactoredSendMessage, SendMessageParams + TileSendMessage, RefactoredSendMessage, SendMessageParams, } from "../tile_send_message"; import { mount, shallow } from "enzyme"; import { fakeSequence } from "../../../__test_support__/fake_state/resources"; diff --git a/frontend/sequences/step_tiles/__tests__/tile_set_servo_angle_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_set_servo_angle_test.tsx index 0663eb12c..bcd5f8d7c 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_set_servo_angle_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_set_servo_angle_test.tsx @@ -2,7 +2,7 @@ jest.mock("../../../api/crud", () => ({ editStep: jest.fn() })); import * as React from "react"; import { - TileSetServoAngle, pinNumberChanger, createServoEditFn, ServoPinSelection + TileSetServoAngle, pinNumberChanger, createServoEditFn, ServoPinSelection, } from "../tile_set_servo_angle"; import { mount } from "enzyme"; import { fakeSequence } from "../../../__test_support__/fake_state/resources"; diff --git a/frontend/sequences/step_tiles/__tests__/tile_take_photo_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_take_photo_test.tsx index 8f6ca531d..885fa4747 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_take_photo_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_take_photo_test.tsx @@ -6,7 +6,7 @@ import { TakePhoto } from "farmbot/dist"; import { StepParams } from "../../interfaces"; import { emptyState } from "../../../resources/reducer"; import { - fakeFarmwareData + fakeFarmwareData, } from "../../../__test_support__/fake_sequence_step_data"; import { Content } from "../../../constants"; diff --git a/frontend/sequences/step_tiles/index.tsx b/frontend/sequences/step_tiles/index.tsx index 44ae5522b..9ec100068 100644 --- a/frontend/sequences/step_tiles/index.tsx +++ b/frontend/sequences/step_tiles/index.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { CeleryNode, LegalArgString, If, Execute, Nothing, - SequenceBodyItem as Step, TaggedSequence + SequenceBodyItem as Step, TaggedSequence, } from "farmbot"; import { FLOAT_NUMERIC_FIELDS, NUMERIC_FIELDS } from "../interfaces"; import { ExecuteBlock } from "./tile_execute"; diff --git a/frontend/sequences/step_tiles/mark_as/__tests__/action_list_test.ts b/frontend/sequences/step_tiles/mark_as/__tests__/action_list_test.ts index ec83258e3..15e0c97aa 100644 --- a/frontend/sequences/step_tiles/mark_as/__tests__/action_list_test.ts +++ b/frontend/sequences/step_tiles/mark_as/__tests__/action_list_test.ts @@ -1,7 +1,7 @@ import { actionList } from "../action_list"; import { resourceUpdate, markAsResourceFixture } from "../assertion_support"; import { - buildResourceIndex + buildResourceIndex, } from "../../../../__test_support__/resource_index_builder"; import { PLANT_OPTIONS } from "../constants"; diff --git a/frontend/sequences/step_tiles/mark_as/__tests__/unpack_step_test.ts b/frontend/sequences/step_tiles/mark_as/__tests__/unpack_step_test.ts index f1d735ea6..8c8f45072 100644 --- a/frontend/sequences/step_tiles/mark_as/__tests__/unpack_step_test.ts +++ b/frontend/sequences/step_tiles/mark_as/__tests__/unpack_step_test.ts @@ -4,7 +4,7 @@ import { unpackStep, TOOL_MOUNT, DISMOUNTED } from "../unpack_step"; import { selectAllPlantPointers, selectAllTools, - selectAllGenericPointers + selectAllGenericPointers, } from "../../../../resources/selectors"; import { DropDownPair } from "../interfaces"; describe("unpackStep()", () => { diff --git a/frontend/sequences/step_tiles/mark_as/action_list.ts b/frontend/sequences/step_tiles/mark_as/action_list.ts index 0b895951e..a57281cc1 100644 --- a/frontend/sequences/step_tiles/mark_as/action_list.ts +++ b/frontend/sequences/step_tiles/mark_as/action_list.ts @@ -8,7 +8,7 @@ import { MOUNTED_TO, DISMOUNT, PLANT_OPTIONS, - POINT_OPTIONS + POINT_OPTIONS, } from "./constants"; const allToolsAsDDI = (i: ResourceIndex) => { diff --git a/frontend/sequences/step_tiles/mark_as/assertion_support.ts b/frontend/sequences/step_tiles/mark_as/assertion_support.ts index 4fb65b9f5..bb5140a09 100644 --- a/frontend/sequences/step_tiles/mark_as/assertion_support.ts +++ b/frontend/sequences/step_tiles/mark_as/assertion_support.ts @@ -1,12 +1,12 @@ import { ResourceUpdate, TaggedSequence, resource_type } from "farmbot"; import { - buildResourceIndex + buildResourceIndex, } from "../../../__test_support__/resource_index_builder"; import { fakeTool, fakePlant, fakePoint, - fakeSequence + fakeSequence, } from "../../../__test_support__/fake_state/resources"; import { betterMerge } from "../../../util"; import { MarkAs } from "../mark_as"; @@ -43,7 +43,7 @@ export function fakeMarkAsProps() { label: "mounted_tool_id", value: 0 } - } + }, ]; const currentSequence: TaggedSequence = betterMerge(fakeSequence(), { body: { body: steps } }); diff --git a/frontend/sequences/step_tiles/mark_as/constants.ts b/frontend/sequences/step_tiles/mark_as/constants.ts index 1b1bf20d2..b488bd13c 100644 --- a/frontend/sequences/step_tiles/mark_as/constants.ts +++ b/frontend/sequences/step_tiles/mark_as/constants.ts @@ -7,7 +7,7 @@ export const DISMOUNT: DropDownItem = { label: t("Not Mounted"), value: 0 }; /** Legal "actions" for "Mark As.." block when marking Point resources */ export const POINT_OPTIONS: DropDownItem[] = [ - { label: t("Removed"), value: "removed" } + { label: t("Removed"), value: "removed" }, ]; /** Legal "actions" in the "Mark As.." block when operating on @@ -36,6 +36,6 @@ export const POINT_HEADER: DropDownItem = { }; export const TOP_HALF = [ - { headingId: "Device", label: t("Device"), value, heading: true, }, - { headingId: "Device", label: t("Tool Mount"), value } + { headingId: "Device", label: t("Device"), value, heading: true }, + { headingId: "Device", label: t("Tool Mount"), value }, ]; diff --git a/frontend/sequences/step_tiles/mark_as/unpack_step.ts b/frontend/sequences/step_tiles/mark_as/unpack_step.ts index feb3252eb..7633c2cab 100644 --- a/frontend/sequences/step_tiles/mark_as/unpack_step.ts +++ b/frontend/sequences/step_tiles/mark_as/unpack_step.ts @@ -2,7 +2,7 @@ import { DropDownItem } from "../../../ui"; import { findToolById, findByKindAndId, - findPointerByTypeAndId + findPointerByTypeAndId, } from "../../../resources/selectors"; import { plant2ddi, pointer2ddi } from "./resource_list"; import { GenericPointer } from "farmbot/dist/resources/api_resources"; diff --git a/frontend/sequences/step_tiles/pin_and_peripheral_support.tsx b/frontend/sequences/step_tiles/pin_and_peripheral_support.tsx index 6c866b572..38a41c856 100644 --- a/frontend/sequences/step_tiles/pin_and_peripheral_support.tsx +++ b/frontend/sequences/step_tiles/pin_and_peripheral_support.tsx @@ -1,12 +1,12 @@ import { selectAllSavedPeripherals, - selectAllSavedSensors + selectAllSavedSensors, } from "../../resources/selectors"; import { ResourceIndex } from "../../resources/interfaces"; import { DropDownItem } from "../../ui"; import { range, isNumber, isString } from "lodash"; import { - TaggedPeripheral, TaggedSensor, ResourceName, Nothing + TaggedPeripheral, TaggedSensor, ResourceName, Nothing, } from "farmbot"; import { ReadPin, AllowedPinTypes, NamedPin } from "farmbot"; import { bail } from "../../util/errors"; @@ -109,7 +109,7 @@ export function pinDropdowns( } export const pinsAsDropDownsWritePin = ( - input: ResourceIndex, showPins: boolean + input: ResourceIndex, showPins: boolean, ): DropDownItem[] => [ ...peripheralsAsDropDowns(input), ...boxLedsAsDropDowns(), @@ -117,7 +117,7 @@ export const pinsAsDropDownsWritePin = ( ]; export const pinsAsDropDownsReadPin = ( - input: ResourceIndex, showPins: boolean + input: ResourceIndex, showPins: boolean, ): DropDownItem[] => [ ...sensorsAsDropDowns(input), ...peripheralsAsDropDowns(input), diff --git a/frontend/sequences/step_tiles/tile_calibrate.tsx b/frontend/sequences/step_tiles/tile_calibrate.tsx index 1669f1ae0..896704004 100644 --- a/frontend/sequences/step_tiles/tile_calibrate.tsx +++ b/frontend/sequences/step_tiles/tile_calibrate.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { StepParams, HardwareFlags } from "../interfaces"; import { ToolTips, Content } from "../../constants"; import { - StepWrapper, StepHeader, StepContent, conflictsString, StepWarning + StepWrapper, StepHeader, StepContent, conflictsString, StepWarning, } from "../step_ui/index"; import { AxisStepRadio } from "../step_ui/step_radio"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/sequences/step_tiles/tile_execute.tsx b/frontend/sequences/step_tiles/tile_execute.tsx index 835367233..fbef11cca 100644 --- a/frontend/sequences/step_tiles/tile_execute.tsx +++ b/frontend/sequences/step_tiles/tile_execute.tsx @@ -12,7 +12,7 @@ import { ShouldDisplay } from "../../devices/interfaces"; import { findSequenceById } from "../../resources/selectors_by_id"; import { LocalsList } from "../locals_list/locals_list"; import { - addOrEditParamApps, variableList + addOrEditParamApps, variableList, } from "../locals_list/variable_support"; import { AllowedVariableNodes } from "../locals_list/locals_list_support"; import { isNumber } from "lodash"; diff --git a/frontend/sequences/step_tiles/tile_execute_script.tsx b/frontend/sequences/step_tiles/tile_execute_script.tsx index f35f69323..3a0c489b8 100644 --- a/frontend/sequences/step_tiles/tile_execute_script.tsx +++ b/frontend/sequences/step_tiles/tile_execute_script.tsx @@ -3,7 +3,7 @@ import { StepParams } from "../interfaces"; import { ToolTips, Content } from "../../constants"; import { StepInputBox } from "../inputs/step_input_box"; import { - StepWrapper, StepHeader, StepContent, StepWarning + StepWrapper, StepHeader, StepContent, StepWarning, } from "../step_ui/index"; import { Row, Col, FBSelect, DropDownItem } from "../../ui/index"; import { editStep } from "../../api/crud"; diff --git a/frontend/sequences/step_tiles/tile_find_home.tsx b/frontend/sequences/step_tiles/tile_find_home.tsx index 8ed2b0339..06f03c6d1 100644 --- a/frontend/sequences/step_tiles/tile_find_home.tsx +++ b/frontend/sequences/step_tiles/tile_find_home.tsx @@ -4,7 +4,7 @@ import { StepParams, HardwareFlags } from "../interfaces"; import { ResourceIndex } from "../../resources/interfaces"; import { ToolTips, Content } from "../../constants"; import { - StepWrapper, StepHeader, StepContent, StepWarning, conflictsString + StepWrapper, StepHeader, StepContent, StepWarning, conflictsString, } from "../step_ui/index"; import { some } from "lodash"; import { AxisStepRadio } from "../step_ui/step_radio"; diff --git a/frontend/sequences/step_tiles/tile_if/__tests__/index_test.tsx b/frontend/sequences/step_tiles/tile_if/__tests__/index_test.tsx index 12c7f39a9..72a1322df 100644 --- a/frontend/sequences/step_tiles/tile_if/__tests__/index_test.tsx +++ b/frontend/sequences/step_tiles/tile_if/__tests__/index_test.tsx @@ -10,15 +10,15 @@ import { IfParams, IfBlockDropDownHandler, LHSOptions, - ThenElseParams + ThenElseParams, } from "../index"; import { - buildResourceIndex, FAKE_RESOURCES + buildResourceIndex, FAKE_RESOURCES, } from "../../../../__test_support__/resource_index_builder"; import { Execute, If, TaggedSequence, ParameterApplication } from "farmbot"; import { overwrite } from "../../../../api/crud"; import { - fakeSensor, fakePeripheral + fakeSensor, fakePeripheral, } from "../../../../__test_support__/fake_state/resources"; const fakeResourceIndex = buildResourceIndex(FAKE_RESOURCES).index; diff --git a/frontend/sequences/step_tiles/tile_if/__tests__/lhs_test.ts b/frontend/sequences/step_tiles/tile_if/__tests__/lhs_test.ts index 03f5c5c3f..1d36389e1 100644 --- a/frontend/sequences/step_tiles/tile_if/__tests__/lhs_test.ts +++ b/frontend/sequences/step_tiles/tile_if/__tests__/lhs_test.ts @@ -1,5 +1,5 @@ import { - buildResourceIndex + buildResourceIndex, } from "../../../../__test_support__/resource_index_builder"; import { SpecialStatus, @@ -11,7 +11,7 @@ import { } from "farmbot"; import { selectAllSequences, - selectAllPeripherals + selectAllPeripherals, } from "../../../../resources/selectors"; import { updateLhs } from "../update_lhs"; import { PinGroupName } from "../../pin_and_peripheral_support"; diff --git a/frontend/sequences/step_tiles/tile_if/index.tsx b/frontend/sequences/step_tiles/tile_if/index.tsx index ddac3eadb..de8274979 100644 --- a/frontend/sequences/step_tiles/tile_if/index.tsx +++ b/frontend/sequences/step_tiles/tile_if/index.tsx @@ -4,7 +4,7 @@ import { TaggedSequence, ParameterApplication } from "farmbot"; import { If, Execute, Nothing } from "farmbot/dist"; import { ResourceIndex } from "../../../resources/interfaces"; import { - selectAllSequences, findSequenceById + selectAllSequences, findSequenceById, } from "../../../resources/selectors"; import { isRecursive } from "../index"; import { If_ } from "./if"; @@ -14,12 +14,12 @@ import { overwrite } from "../../../api/crud"; import { ToolTips } from "../../../constants"; import { StepWrapper, StepHeader, StepContent } from "../../step_ui/index"; import { - sensorsAsDropDowns, peripheralsAsDropDowns, pinDropdowns, PinGroupName + sensorsAsDropDowns, peripheralsAsDropDowns, pinDropdowns, PinGroupName, } from "../pin_and_peripheral_support"; import { ShouldDisplay } from "../../../devices/interfaces"; import { isNumber, isString } from "lodash"; import { - addOrEditParamApps, variableList + addOrEditParamApps, variableList, } from "../../locals_list/variable_support"; import { t } from "../../../i18next_wrapper"; @@ -45,7 +45,7 @@ export type Operator = "lhs" | "_else"; export const LHSOptions = - (resources: ResourceIndex, showPins: boolean + (resources: ResourceIndex, showPins: boolean, ): DropDownItem[] => [ { heading: true, headingId: PinGroupName.Position, @@ -64,7 +64,7 @@ export const operatorOptions: DropDownItem[] = [ { value: ">", label: t("is greater than") }, { value: "is", label: t("is equal to") }, { value: "not", label: t("is not equal to") }, - { value: "is_undefined", label: t("is unknown") } + { value: "is_undefined", label: t("is unknown") }, ]; export function seqDropDown(i: ResourceIndex) { diff --git a/frontend/sequences/step_tiles/tile_move_absolute.tsx b/frontend/sequences/step_tiles/tile_move_absolute.tsx index a909cfe47..c5b791332 100644 --- a/frontend/sequences/step_tiles/tile_move_absolute.tsx +++ b/frontend/sequences/step_tiles/tile_move_absolute.tsx @@ -11,11 +11,11 @@ import { ToolTips } from "../../constants"; import { StepWrapper, StepHeader, StepContent } from "../step_ui"; import { StepInputBox } from "../inputs/step_input_box"; import { - determineDropdown, determineVector, Vector3Plus + determineDropdown, determineVector, Vector3Plus, } from "../../resources/sequence_meta"; import { LocationForm } from "../locals_list/location_form"; import { - VariableNode, AllowedVariableNodes + VariableNode, AllowedVariableNodes, } from "../locals_list/locals_list_support"; import { merge } from "lodash"; import { MoveAbsoluteWarning } from "./tile_move_absolute_conflict_check"; diff --git a/frontend/sequences/step_tiles/tile_pin_support.tsx b/frontend/sequences/step_tiles/tile_pin_support.tsx index 56c5ea0c5..356abaf88 100644 --- a/frontend/sequences/step_tiles/tile_pin_support.tsx +++ b/frontend/sequences/step_tiles/tile_pin_support.tsx @@ -16,12 +16,12 @@ const isPinMode = (x: any): x is ALLOWED_PIN_MODES => export const PIN_MODES = () => [ { value: PinMode.analog, label: t("Analog") }, - { value: PinMode.digital, label: t("Digital") } + { value: PinMode.digital, label: t("Digital") }, ]; export const PIN_VALUES = () => [ { value: 1, label: t("ON") }, - { value: 0, label: t("OFF") } + { value: 0, label: t("OFF") }, ]; export function currentModeSelection(currentStep: SequenceBodyItem) { diff --git a/frontend/sequences/step_tiles/tile_read_pin.tsx b/frontend/sequences/step_tiles/tile_read_pin.tsx index 49b7b6f96..8bcb9e873 100644 --- a/frontend/sequences/step_tiles/tile_read_pin.tsx +++ b/frontend/sequences/step_tiles/tile_read_pin.tsx @@ -8,7 +8,7 @@ import { Row, Col, FBSelect } from "../../ui/index"; import { pinsAsDropDownsReadPin, celery2DropDown, - setArgsDotPinNumber + setArgsDotPinNumber, } from "./pin_and_peripheral_support"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/sequences/step_tiles/tile_send_message.tsx b/frontend/sequences/step_tiles/tile_send_message.tsx index c928456f5..0590ed02a 100644 --- a/frontend/sequences/step_tiles/tile_send_message.tsx +++ b/frontend/sequences/step_tiles/tile_send_message.tsx @@ -10,7 +10,7 @@ import { MESSAGE_STATUSES, EACH_CHANNEL, channel, - MESSAGE_STATUSES_DDI + MESSAGE_STATUSES_DDI, } from "./tile_send_message_support"; import { StepWrapper, StepHeader, StepContent } from "../step_ui/index"; import { t } from "../../i18next_wrapper"; diff --git a/frontend/sequences/step_tiles/tile_send_message_support.tsx b/frontend/sequences/step_tiles/tile_send_message_support.tsx index d8c1bb56d..ac7b4650b 100644 --- a/frontend/sequences/step_tiles/tile_send_message_support.tsx +++ b/frontend/sequences/step_tiles/tile_send_message_support.tsx @@ -24,7 +24,7 @@ export const MESSAGE_STATUSES = [ { value: MessageType.busy, label: t("Busy") }, { value: MessageType.warn, label: t("Warning") }, { value: MessageType.error, label: t("Error") }, - { value: MessageType.info, label: t("Info") } + { value: MessageType.info, label: t("Info") }, ]; export const MESSAGE_STATUSES_DDI = { diff --git a/frontend/sequences/step_tiles/tile_write_pin.tsx b/frontend/sequences/step_tiles/tile_write_pin.tsx index 7ce62f7f9..be9cb9f48 100644 --- a/frontend/sequences/step_tiles/tile_write_pin.tsx +++ b/frontend/sequences/step_tiles/tile_write_pin.tsx @@ -3,14 +3,14 @@ import { StepInputBox } from "../inputs/step_input_box"; import { StepParams } from "../interfaces"; import { ToolTips } from "../../constants"; import { - setPinValue, currentValueSelection, PIN_VALUES + setPinValue, currentValueSelection, PIN_VALUES, } from "./tile_pin_support"; import { StepWrapper, StepHeader, StepContent } from "../step_ui/index"; import { Row, Col, FBSelect } from "../../ui/index"; import { celery2DropDown, setArgsDotPinNumber, - pinsAsDropDownsWritePin + pinsAsDropDownsWritePin, } from "./pin_and_peripheral_support"; import { t } from "../../i18next_wrapper"; import { PinMode } from "./tile_read_pin"; diff --git a/frontend/sequences/step_ui/__tests__/step_ui_test.tsx b/frontend/sequences/step_ui/__tests__/step_ui_test.tsx index 7f3330ea0..39b8df09e 100644 --- a/frontend/sequences/step_ui/__tests__/step_ui_test.tsx +++ b/frontend/sequences/step_ui/__tests__/step_ui_test.tsx @@ -5,7 +5,7 @@ import { StepHeader, StepContent, StepHeaderProps, - StepWarning + StepWarning, } from "../index"; import { fakeSequence } from "../../../__test_support__/fake_state/resources"; import { conflictsString } from "../step_warning"; diff --git a/frontend/sequences/step_ui/step_radio.tsx b/frontend/sequences/step_ui/step_radio.tsx index 62b3c246b..2fb5a6260 100644 --- a/frontend/sequences/step_ui/step_radio.tsx +++ b/frontend/sequences/step_ui/step_radio.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { Row, Col } from "../../ui/index"; import { t } from "../../i18next_wrapper"; import { - TaggedSequence, ALLOWED_AXIS, FindHome, Home, Calibrate, Zero + TaggedSequence, ALLOWED_AXIS, FindHome, Home, Calibrate, Zero, } from "farmbot"; import { editStep } from "../../api/crud"; diff --git a/frontend/sequences/test_button.tsx b/frontend/sequences/test_button.tsx index 9214b619d..ad40f9f41 100644 --- a/frontend/sequences/test_button.tsx +++ b/frontend/sequences/test_button.tsx @@ -7,7 +7,7 @@ import { Popover } from "@blueprintjs/core"; import { LocalsList } from "./locals_list/locals_list"; import { AllowedVariableNodes } from "./locals_list/locals_list_support"; import { - addOrEditParamApps, variableList, mergeParameterApplications + addOrEditParamApps, variableList, mergeParameterApplications, } from "./locals_list/variable_support"; import { ResourceIndex, VariableNameSet, UUID } from "../resources/interfaces"; import { ShouldDisplay } from "../devices/interfaces"; diff --git a/frontend/session.ts b/frontend/session.ts index 8dcaf5e03..8575af8bb 100644 --- a/frontend/session.ts +++ b/frontend/session.ts @@ -2,7 +2,7 @@ import { AuthState } from "./auth/interfaces"; import { box } from "boxed_value"; import { BooleanSetting, NumericSetting } from "./session_keys"; import { - BooleanConfigKey, NumberConfigKey + BooleanConfigKey, NumberConfigKey, } from "farmbot/dist/resources/configs/web_app"; /** The `Session` namespace is a wrapper for `localStorage`. diff --git a/frontend/session_keys.ts b/frontend/session_keys.ts index 6a8541e6c..8b6ffb66c 100644 --- a/frontend/session_keys.ts +++ b/frontend/session_keys.ts @@ -1,6 +1,6 @@ import { BooleanConfigKey, - NumberConfigKey + NumberConfigKey, } from "farmbot/dist/resources/configs/web_app"; export const BooleanSetting: Record = { diff --git a/frontend/sync/actions.ts b/frontend/sync/actions.ts index f14ce8e76..5aa18bb53 100644 --- a/frontend/sync/actions.ts +++ b/frontend/sync/actions.ts @@ -76,12 +76,12 @@ export async function fetchSyncData(dispatch: Function) { get("Sensor", API.current.sensorPath), get("Tool", API.current.toolsPath), get("Alert", API.current.alertPath), - get("Folder", API.current.foldersPath) + get("Folder", API.current.foldersPath), ]), 2: () => Promise.all<{}>([ get("SensorReading", API.current.sensorReadingPath), get("Sequence", API.current.sequencesPath), - get("PointGroup", API.current.pointGroupsPath) + get("PointGroup", API.current.pointGroupsPath), ]), 3: () => Promise.all<{}>([ get("FbosConfig", API.current.fbosConfigPath), @@ -92,7 +92,7 @@ export async function fetchSyncData(dispatch: Function) { get("FarmEvent", API.current.farmEventsPath), get("Image", API.current.imagesPath), get("Log", API.current.filteredLogsPath), - get("WebcamFeed", API.current.webcamFeedPath) + get("WebcamFeed", API.current.webcamFeedPath), ]), }; const step = (num: keyof typeof group) => group[num]; diff --git a/frontend/ui/__tests__/blurable_password_test.tsx b/frontend/ui/__tests__/blurable_password_test.tsx index 575e1beba..4e6a0ecc0 100644 --- a/frontend/ui/__tests__/blurable_password_test.tsx +++ b/frontend/ui/__tests__/blurable_password_test.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { shallow } from "enzyme"; import { BlurablePassword, - BPProps + BPProps, } from "../blurable_password"; describe("", () => { diff --git a/frontend/util/move.ts b/frontend/util/move.ts index e003252ea..43473310a 100644 --- a/frontend/util/move.ts +++ b/frontend/util/move.ts @@ -24,14 +24,14 @@ export function move(array: T[], fromIndex: number, toIndex: number) { ...array.slice(0, fromIndex), ...array.slice(fromIndex + 1, toIndex + 1), item, - ...array.slice(toIndex + 1, length) + ...array.slice(toIndex + 1, length), ]; case Comparison.HIGH: return [ ...array.slice(0, toIndex), item, ...array.slice(toIndex, fromIndex), - ...array.slice(fromIndex + 1, length) + ...array.slice(fromIndex + 1, length), ]; default: return array; diff --git a/frontend/util/page.ts b/frontend/util/page.ts index f7ac67d13..1d816734d 100644 --- a/frontend/util/page.ts +++ b/frontend/util/page.ts @@ -1,7 +1,7 @@ import { createElement, ComponentClass, - Attributes + Attributes, } from "react"; import { render } from "react-dom"; import { capitalize } from "lodash"; diff --git a/frontend/util/stop_ie.ts b/frontend/util/stop_ie.ts index 79bbc007f..349a4cc04 100644 --- a/frontend/util/stop_ie.ts +++ b/frontend/util/stop_ie.ts @@ -11,13 +11,13 @@ const REQUIRED_GLOBALS = [ "console", "WebSocket", "Intl", - "Set" + "Set", ]; const REQUIRED_ARRAY_METHODS = [ "includes", "map", - "filter" + "filter", ]; /** We don't support IE. This method stops users from trying to use the site. diff --git a/frontend/util/util.ts b/frontend/util/util.ts index 33357bb03..ef88861bc 100644 --- a/frontend/util/util.ts +++ b/frontend/util/util.ts @@ -25,7 +25,7 @@ export const colors: Array = [ "purple", "pink", "gray", - "red" + "red", ]; /** Picks a color that is compliant with sequence / regimen color codes */ diff --git a/tslint.json b/tslint.json index 76c2d749f..be3ec22cf 100644 --- a/tslint.json +++ b/tslint.json @@ -68,6 +68,18 @@ "selfClosing": "after-props" } ], + "trailing-comma": [ + true, + { + "multiline": { + "objects": "ignore", + "arrays": "always", + "functions": "always", + "imports": "always" + }, + "singleline": "never" + } + ], "no-var-keyword": true, "no-var-requires": false, "deprecation": true,