diff --git a/.eslintrc b/.eslintrc index 3bf36364..52083e88 100644 --- a/.eslintrc +++ b/.eslintrc @@ -63,6 +63,7 @@ "space-infix-ops":"warn", "space-before-blocks": "warn", "keyword-spacing": "warn", + "key-spacing": 1, "strict": 1, "comma-dangle": 1, "triple-equals": 0, diff --git a/agent/test/pewpewtest.spec.ts b/agent/test/pewpewtest.spec.ts index 17b6cb2c..2b1ab17f 100644 --- a/agent/test/pewpewtest.spec.ts +++ b/agent/test/pewpewtest.spec.ts @@ -190,7 +190,7 @@ describe("PewPewTest", () => { endTime: now + 2, resultsFilename: ["test2"], status: TestStatus.Failed, - version:"version3", + version: "version3", userId: "user3" }; diff --git a/controller/components/StartTestForm/index.tsx b/controller/components/StartTestForm/index.tsx index 9734d1ec..67bdc8a4 100644 --- a/controller/components/StartTestForm/index.tsx +++ b/controller/components/StartTestForm/index.tsx @@ -174,7 +174,7 @@ export const StartTestForm = ({ allDays: defaultDaysOfWeek.every((dayOfWeek: DayValue) => dayOfWeek.value), queueName: previousTestData?.queueName || queueInitialProps.queueName, pewpewVersion: previousTestData?.version || (recurringTest ? maxPewPewVersion : versionInitalProps.pewpewVersion), - environmentVariables: previousTestData?.environmentVariables + environmentVariables: previousTestData?.environmentVariables ? Object.entries(previousTestData.environmentVariables).map(([variableName, variableValue]: [string, string | null], index: number) => ({ // Map these to the placeholder values name: "previousVar" + index, // We can't use the date or we'll get constant redraws, use the index diff --git a/controller/components/TestInfo/index.tsx b/controller/components/TestInfo/index.tsx index db4e42d6..22efcd6a 100644 --- a/controller/components/TestInfo/index.tsx +++ b/controller/components/TestInfo/index.tsx @@ -54,7 +54,7 @@ export const TestInfo = ({ testData, ...testInfoProps }: TestInfoProps) => { const defaultState: TestInfoState = { message: testInfoProps.message || undefined, messageId: testInfoProps.messageId || undefined, - killTest : testInfoProps.killTest || undefined, + killTest: testInfoProps.killTest || undefined, error: testInfoProps.error || undefined }; const [state, setState] = useState(defaultState); diff --git a/guide/results-viewer-react/.eslintrc b/guide/results-viewer-react/.eslintrc index f5a20c45..b35016bd 100644 --- a/guide/results-viewer-react/.eslintrc +++ b/guide/results-viewer-react/.eslintrc @@ -50,6 +50,7 @@ "space-infix-ops":"warn", "space-before-blocks": "warn", "keyword-spacing": "warn", + "key-spacing": 1, "strict": 1, "comma-dangle": 1, "triple-equals": 0, diff --git a/guide/results-viewer-react/src/components/Modal/story.tsx b/guide/results-viewer-react/src/components/Modal/story.tsx index 3ad4147a..fccf8c7b 100644 --- a/guide/results-viewer-react/src/components/Modal/story.tsx +++ b/guide/results-viewer-react/src/components/Modal/story.tsx @@ -63,7 +63,7 @@ const ModalUploadHarDemo = () => {