Skip to content

Commit

Permalink
Added no-tabs eslint rule and fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmcmaster committed Mar 28, 2024
1 parent 2fb39df commit eec5650
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"no-angle-bracket-type-assertion": 0,
"no-bitwise": 1,
"no-console": 1,
"no-tabs": 1,
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0, "maxBOF": 0 }],
"no-empty": [1, { "allowEmptyCatch": true }],
"no-empty-interface": 0,
Expand Down
2 changes: 1 addition & 1 deletion controller/acceptance/healthcheck.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { expect } from "chai";

const fetch = _axios.get;

// Beanstalk <SYSTEM_NAME>_<SERVICE_NAME>_URL
// Beanstalk <SYSTEM_NAME>_<SERVICE_NAME>_URL
const integrationUrl = "http://" + (process.env.BUILD_APP_URL || `localhost:${process.env.PORT || "8081"}`);

describe("Healthcheck Integration", () => {
Expand Down
2 changes: 1 addition & 1 deletion controller/acceptance/pewpew.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function fetch (
const UNIT_TEST_FOLDER = process.env.UNIT_TEST_FOLDER || "test";
const PEWPEW_ZIP_FILEPATH = process.env.PEWPEW_ZIP_FILEPATH || path.join(UNIT_TEST_FOLDER, PEWPEW_BINARY_EXECUTABLE + ".zip");

// Beanstalk <SYSTEM_NAME>_<SERVICE_NAME>_URL
// Beanstalk <SYSTEM_NAME>_<SERVICE_NAME>_URL
const integrationUrl = "http://" + (process.env.BUILD_APP_URL || `localhost:${process.env.PORT || "8081"}`);

let sharedPewPewVersions: string[] | undefined;
Expand Down
2 changes: 1 addition & 1 deletion controller/acceptance/queues.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { expect } from "chai";

const fetch = _axios.get;

// Beanstalk <SYSTEM_NAME>_<SERVICE_NAME>_URL
// Beanstalk <SYSTEM_NAME>_<SERVICE_NAME>_URL
const integrationUrl = "http://" + (process.env.BUILD_APP_URL || `localhost:${process.env.PORT || "8081"}`);

let sharedQueueNames: string[] | undefined;
Expand Down
2 changes: 1 addition & 1 deletion controller/acceptance/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const defaultEnvironmentVariables: EnvironmentVariablesFile = {
TEST2: "true"
};

// Beanstalk <SYSTEM_NAME>_<SERVICE_NAME>_URL
// Beanstalk <SYSTEM_NAME>_<SERVICE_NAME>_URL
export const integrationUrl = "http://" + (process.env.BUILD_APP_URL || `localhost:${process.env.PORT || "8081"}`);

let sharedPpaasTestId: PpaasTestId | undefined;
Expand Down
4 changes: 2 additions & 2 deletions controller/components/YamlWriterUpload/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export const YamlWriterUpload = (props: YamlWriterUploadProps) => {
if (types[mimeType] !== undefined) {
types[mimeType]!.index.push({ iter: i, id });
} else {
types[mimeType] = { index: [{ iter: i, id }], selected: "partial"};
types[mimeType] = { index: [{ iter: i, id }], selected: "partial"};
}

// Adds a reference to an endpoint with given response type
Expand All @@ -292,7 +292,7 @@ export const YamlWriterUpload = (props: YamlWriterUploadProps) => {
} else {
urls[hostUrl] = { index: [{ iter: i, id }], selected: "yes"};
}
endpoints.push({ selected: "yes", url, type: mimeType, id, method: entry.request.method, headers: [...entry.request.headers] });
endpoints.push({ selected: "yes", url, type: mimeType, id, method: entry.request.method, headers: [...entry.request.headers] });
}

const typesTemp = types;
Expand Down
1 change: 1 addition & 0 deletions guide/results-viewer-react/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"no-angle-bracket-type-assertion": 0,
"no-bitwise": 1,
"no-console": 1,
"no-tabs": 1,
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0, "maxBOF": 0 }],
"no-empty": [1, { "allowEmptyCatch": true }],
"no-empty-interface": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export const YamlWriterUpload = (props: YamlWriterUploadProps) => {
if (types[mimeType] !== undefined) {
types[mimeType]!.index.push({ iter: i, id });
} else {
types[mimeType] = { index: [{ iter: i, id }], selected: "partial"};
types[mimeType] = { index: [{ iter: i, id }], selected: "partial"};
}

// Adds a reference to an endpoint with given response type
Expand All @@ -291,7 +291,7 @@ export const YamlWriterUpload = (props: YamlWriterUploadProps) => {
} else {
urls[hostUrl] = { index: [{ iter: i, id }], selected: "yes"};
}
endpoints.push({ selected: "yes", url, type: mimeType, id, method: entry.request.method, headers: [...entry.request.headers] });
endpoints.push({ selected: "yes", url, type: mimeType, id, method: entry.request.method, headers: [...entry.request.headers] });
}

const typesTemp = types;
Expand Down

0 comments on commit eec5650

Please sign in to comment.