Update TSLint file
parent
ebbc5900e1
commit
2d024ab381
|
@ -87,7 +87,7 @@
|
|||
"ts-jest": "^20.0.10",
|
||||
"ts-lint": "^4.5.1",
|
||||
"ts-loader": "^2.3.3",
|
||||
"tslint": "^5.6.0",
|
||||
"tslint": "^5.7.0",
|
||||
"typescript": "^2.4.2",
|
||||
"url-loader": "^0.5.9",
|
||||
"webpack": "^3.5.5",
|
||||
|
|
|
@ -56,7 +56,6 @@
|
|||
"no-default-export": true,
|
||||
"no-duplicate-variable": true,
|
||||
"no-eval": true,
|
||||
"no-for-in-array": true,
|
||||
"no-internal-module": true,
|
||||
"no-invalid-this": true,
|
||||
"no-null-keyword": true,
|
||||
|
@ -69,9 +68,11 @@
|
|||
"selfClosing": "after-props"
|
||||
}
|
||||
],
|
||||
"no-use-before-declare": true,
|
||||
"no-var-keyword": true,
|
||||
"no-var-requires": false,
|
||||
"deprecation": true,
|
||||
"use-isnan": true,
|
||||
"prefer-const": true,
|
||||
"whitespace": [
|
||||
true,
|
||||
"check-branch",
|
||||
|
|
|
@ -22,14 +22,14 @@ export class Move extends React.Component<MoveProps, {}> {
|
|||
this.props.dispatch({ type: "DISPLAY_ENCODER_DATA", payload: name });
|
||||
|
||||
render() {
|
||||
let { sync_status } = this.props.bot.hardware.informational_settings;
|
||||
let { x_axis_inverted, y_axis_inverted, z_axis_inverted,
|
||||
const { sync_status } = this.props.bot.hardware.informational_settings;
|
||||
const { x_axis_inverted, y_axis_inverted, z_axis_inverted,
|
||||
raw_encoders, scaled_encoders } = this.props.bot;
|
||||
let xBtnColor = x_axis_inverted ? "green" : "red";
|
||||
let yBtnColor = y_axis_inverted ? "green" : "red";
|
||||
let zBtnColor = z_axis_inverted ? "green" : "red";
|
||||
let rawBtnColor = raw_encoders ? "green" : "red";
|
||||
let scaledBtnColor = scaled_encoders ? "green" : "red";
|
||||
const xBtnColor = x_axis_inverted ? "green" : "red";
|
||||
const yBtnColor = y_axis_inverted ? "green" : "red";
|
||||
const zBtnColor = z_axis_inverted ? "green" : "red";
|
||||
const rawBtnColor = raw_encoders ? "green" : "red";
|
||||
const scaledBtnColor = scaled_encoders ? "green" : "red";
|
||||
let locationData: BotLocationData;
|
||||
if (this.props.bot.hardware.location_data) {
|
||||
locationData = this.props.bot.hardware.location_data;
|
||||
|
@ -40,9 +40,9 @@ export class Move extends React.Component<MoveProps, {}> {
|
|||
scaled_encoders: { x: undefined, y: undefined, z: undefined },
|
||||
};
|
||||
}
|
||||
let motor_coordinates = locationData.position;
|
||||
let raw_encoders_data = locationData.raw_encoders;
|
||||
let scaled_encoders_data = locationData.scaled_encoders;
|
||||
const motor_coordinates = locationData.position;
|
||||
const raw_encoders_data = locationData.raw_encoders;
|
||||
const scaled_encoders_data = locationData.scaled_encoders;
|
||||
|
||||
return (
|
||||
<Widget>
|
||||
|
|
14
yarn.lock
14
yarn.lock
|
@ -5804,9 +5804,9 @@ tslib@^1.5.0, tslib@^1.7.1:
|
|||
version "1.7.1"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.7.1.tgz#bc8004164691923a79fe8378bbeb3da2017538ec"
|
||||
|
||||
tslint@^5.6.0:
|
||||
version "5.6.0"
|
||||
resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.6.0.tgz#088aa6c6026623338650b2900828ab3edf59f6cf"
|
||||
tslint@^5.7.0:
|
||||
version "5.7.0"
|
||||
resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.7.0.tgz#c25e0d0c92fa1201c2bc30e844e08e682b4f3552"
|
||||
dependencies:
|
||||
babel-code-frame "^6.22.0"
|
||||
colors "^1.1.2"
|
||||
|
@ -5817,15 +5817,15 @@ tslint@^5.6.0:
|
|||
resolve "^1.3.2"
|
||||
semver "^5.3.0"
|
||||
tslib "^1.7.1"
|
||||
tsutils "^2.7.1"
|
||||
tsutils "^2.8.1"
|
||||
|
||||
tsutils@^1.1.0:
|
||||
version "1.9.1"
|
||||
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-1.9.1.tgz#b9f9ab44e55af9681831d5f28d0aeeaf5c750cb0"
|
||||
|
||||
tsutils@^2.7.1:
|
||||
version "2.8.0"
|
||||
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.8.0.tgz#0160173729b3bf138628dd14a1537e00851d814a"
|
||||
tsutils@^2.8.1:
|
||||
version "2.8.1"
|
||||
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.8.1.tgz#3771404e7ca9f0bedf5d919a47a4b1890a68efff"
|
||||
dependencies:
|
||||
tslib "^1.7.1"
|
||||
|
||||
|
|
Loading…
Reference in New Issue