mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 23:28:14 +00:00
ESLint one-var, no-var rules (#3239)
* fixed issues for eslint one-var and no-var rules Co-authored-by: Joshi <simplyrender@gmail.com> Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
@ -24,13 +24,13 @@ import Condition from "./Condition";
|
||||
import {TRIGGER} from "./utils/constants";
|
||||
import TelemetryCriterion from "./criterion/TelemetryCriterion";
|
||||
|
||||
let openmct = {},
|
||||
testConditionDefinition,
|
||||
testTelemetryObject,
|
||||
conditionObj,
|
||||
conditionManager,
|
||||
mockTelemetryReceived,
|
||||
mockTimeSystems;
|
||||
let openmct = {};
|
||||
let testConditionDefinition;
|
||||
let testTelemetryObject;
|
||||
let conditionObj;
|
||||
let conditionManager;
|
||||
let mockTelemetryReceived;
|
||||
let mockTimeSystems;
|
||||
|
||||
describe("The condition", function () {
|
||||
|
||||
|
@ -194,7 +194,7 @@ export default {
|
||||
}
|
||||
|
||||
if (new_index >= arr.length) {
|
||||
var k = new_index - arr.length;
|
||||
let k = new_index - arr.length;
|
||||
while ((k--) + 1) {
|
||||
arr.push(undefined);
|
||||
}
|
||||
|
@ -127,10 +127,10 @@ export default {
|
||||
this.searchService.query(this.searchValue).then(children => {
|
||||
this.filteredTreeItems = children.hits.map(child => {
|
||||
|
||||
let context = child.object.getCapability('context'),
|
||||
object = child.object.useCapability('adapter'),
|
||||
objectPath = [],
|
||||
navigateToParent;
|
||||
let context = child.object.getCapability('context');
|
||||
let object = child.object.useCapability('adapter');
|
||||
let objectPath = [];
|
||||
let navigateToParent;
|
||||
|
||||
if (context) {
|
||||
objectPath = context.getPath().slice(1)
|
||||
|
@ -23,12 +23,12 @@
|
||||
import TelemetryCriterion from "./TelemetryCriterion";
|
||||
import { getMockTelemetry } from "utils/testing";
|
||||
|
||||
let openmct = {},
|
||||
mockListener,
|
||||
testCriterionDefinition,
|
||||
testTelemetryObject,
|
||||
telemetryCriterion,
|
||||
mockTelemetry = getMockTelemetry();
|
||||
let openmct = {};
|
||||
let mockListener;
|
||||
let testCriterionDefinition;
|
||||
let testTelemetryObject;
|
||||
let telemetryCriterion;
|
||||
let mockTelemetry = getMockTelemetry();
|
||||
|
||||
describe("The telemetry criterion", function () {
|
||||
|
||||
|
Reference in New Issue
Block a user