Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added eslint key-spacing rule #204

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion agent/test/pewpewtest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ describe("PewPewTest", () => {
endTime: now + 2,
resultsFilename: ["test2"],
status: TestStatus.Failed,
version:"version3",
version: "version3",
userId: "user3"
};

Expand Down
2 changes: 1 addition & 1 deletion controller/components/StartTestForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion controller/components/TestInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
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 @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion guide/results-viewer-react/src/components/Modal/story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const ModalUploadHarDemo = () => {
<div>
{files.map((file, index) => (
<div style={{paddingTop: "13px"}} key={index}>
<button name={`remove${index}`} style={{marginRight: "5px", marginTop:"40px"}} onClick={() => onRemoveFile(index)}>X</button>
<button name={`remove${index}`} style={{marginRight: "5px", marginTop: "40px"}} onClick={() => onRemoveFile(index)}>X</button>
{file.name}
</div>
))}
Expand Down
4 changes: 2 additions & 2 deletions guide/results-viewer-react/src/components/YamlUrls/story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ const propsLoaded: UrlProps = {
url: "https://www.pewpew.org",
hitRate: "1hpm",
headers: [
{id: "0", name : "Default Header", value: "Here is where default headers are. These next 3 are the only default. Authorization header only shows up when Authenticated button is selected"},
{id: "0", name: "Default Header", value: "Here is where default headers are. These next 3 are the only default. Authorization header only shows up when Authenticated button is selected"},
...getDefaultHeaders(true),
{id: "1", name : "Har Header", value: "Here is where har headers would be"}
{id: "1", name: "Har Header", value: "Here is where har headers would be"}
],
method: "GET", authorization: null
},
Expand Down