Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
Lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
xnkevinnguyen committed Feb 26, 2020
1 parent 83901da commit a987e9d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 15 deletions.
6 changes: 1 addition & 5 deletions src/view/components/cpx/Cpx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@
import * as React from "react";
import { CPX_TOOLBAR_ICON_ID } from "../../components/toolbar/SensorModalUtils";
import ToolBar from "../../components/toolbar/ToolBar";
import { SENSOR_LIST, VSCODE_MESSAGES_TO_WEBVIEW } from "../../constants";
import * as TOOLBAR_SVG from "../../svgs/toolbar_svg";
import Simulator from "./CpxSimulator";
import {
SENSOR_LIST,
WEBVIEW_MESSAGES,
VSCODE_MESSAGES_TO_WEBVIEW,
} from "../../constants";

// Component grouping the functionality for circuit playground express
const DEFAULT_STATE = {
Expand Down
2 changes: 1 addition & 1 deletion src/view/components/microbit/Microbit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import * as React from "react";
import { MICROBIT_TOOLBAR_ID } from "../../components/toolbar/SensorModalUtils";
import { SENSOR_LIST, VSCODE_MESSAGES_TO_WEBVIEW } from "../../constants";
import "../../styles/Simulator.css";
import * as TOOLBAR_SVG from "../../svgs/toolbar_svg";
import ToolBar from "../toolbar/ToolBar";
import { MicrobitSimulator } from "./MicrobitSimulator";
import { SENSOR_LIST, VSCODE_MESSAGES_TO_WEBVIEW } from "../../constants";

// Component grouping the functionality for micro:bit functionalities
interface IState {
Expand Down
2 changes: 1 addition & 1 deletion src/view/components/toolbar/LightSensorBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// Licensed under the MIT license.

import * as React from "react";
import { SENSOR_LIST } from "../../constants";
import "../../styles/LightSensorBar.css";
import { ISensorProps, ISliderProps, X_SLIDER_INDEX } from "../../viewUtils";
import InputSlider from "./InputSlider";
import { SENSOR_LIST } from "../../constants";

const LIGHT_SLIDER_PROPS: ISliderProps = {
maxValue: 255,
Expand Down
4 changes: 2 additions & 2 deletions src/view/components/toolbar/SensorModalUtils.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import * as React from "react";
import { SENSOR_LIST } from "../../constants";
import { ARROW_RIGHT_SVG } from "../../svgs/arrow_right_svg";
import { TAG_INPUT_SVG } from "../../svgs/tag_input_svg";
import { TAG_OUTPUT_SVG } from "../../svgs/tag_output_svg";
import LightSensorBar from "./LightSensorBar";
import { Accelerometer } from "./motion/Accelerometer";
import MotionSensorBar from "./motion/MotionSensorBar";
import TemperatureSensorBar from "./TemperatureSensorBar";
import { SENSOR_LIST } from "../../constants";

export const TRY_IT_MAKE_CODE = (
<div className="link-parent">
Expand Down Expand Up @@ -336,5 +336,5 @@ export const getModalContent = (
);
if (modalContentConstructor) {
return modalContentConstructor(onUpdateValue, sensorValues);
} else return;
} else { return; }
};
2 changes: 1 addition & 1 deletion src/view/components/toolbar/TemperatureSensorBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// Licensed under the MIT license.

import * as React from "react";
import { SENSOR_LIST } from "../../constants";
import "../../styles/TemperatureSensorBar.css";
import { ISensorProps, ISliderProps, X_SLIDER_INDEX } from "../../viewUtils";
import InputSlider from "./InputSlider";
import { SENSOR_LIST } from "../../constants";

const TEMPERATURE_SLIDER_PROPS: ISliderProps = {
axisLabel: " ",
Expand Down
4 changes: 2 additions & 2 deletions src/view/components/toolbar/ToolBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import {
injectIntl,
WrappedComponentProps,
} from "react-intl";
import { SENSOR_LIST } from "../../constants";
import "../../styles/ToolBar.css";
import Button from "../Button";
import {
DEFAULT_MODAL_CONTENT,
IModalContent,
getModalContent,
IModalContent,
} from "./SensorModalUtils";
import { SENSOR_LIST } from "../../constants";

interface IToolbarState {
currentOpenedId: string;
Expand Down
2 changes: 1 addition & 1 deletion src/view/components/toolbar/motion/Accelerometer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";
import { SENSOR_LIST } from "../../../constants";
import { ISensorProps, ISliderProps } from "../../../viewUtils";
import { ThreeDimensionSlider } from "./threeDimensionSlider/ThreeDimensionSlider";
import { SENSOR_LIST } from "../../../constants";

const MOTION_SLIDER_PROPS_X: ISliderProps = {
axisLabel: "X",
Expand Down
2 changes: 1 addition & 1 deletion src/view/components/toolbar/motion/MotionSensorBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import * as React from "react";
import { CONSTANTS, WEBVIEW_MESSAGES, SENSOR_LIST } from "../../../constants";
import { CONSTANTS, SENSOR_LIST, WEBVIEW_MESSAGES } from "../../../constants";
import "../../../styles/MotionSensorBar.css";
import { sendMessage } from "../../../utils/MessageUtils";
import { ISensorProps, ISliderProps } from "../../../viewUtils";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as React from "react";
import { SENSOR_LIST } from "../../../../constants";
import {
ISensorProps,
X_SLIDER_INDEX,
Y_SLIDER_INDEX,
Z_SLIDER_INDEX,
} from "../../../../viewUtils";
import InputSlider from "../../InputSlider";
import { SENSOR_LIST } from "../../../../constants";

interface IProps {
axisProperties: ISensorProps;
Expand Down

0 comments on commit a987e9d

Please sign in to comment.