Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
becky-gilbert committed May 1, 2024
1 parent f9019f2 commit ae527c6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/surveys/src/consent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TrialType } from "jspsych";
import SurveyPlugin from "@jspsych/plugin-survey";
import { TrialType } from "jspsych";
import { consent_survey_function as survey_function } from "./utils";

const info = <const>{
Expand Down
2 changes: 1 addition & 1 deletion packages/surveys/src/exit.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ParameterType, TrialType } from "jspsych";
import SurveyPlugin from "@jspsych/plugin-survey";
import { ParameterType, TrialType } from "jspsych";
import { surveyJSON } from "./exit_json";
import { exit_survey_function as survey_function } from "./utils";

Expand Down
40 changes: 22 additions & 18 deletions packages/surveys/src/exit_json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,64 +3,68 @@ export const surveyJSON = {
{
elements: [
{
description: "We ask again just to check for typos during registration or accidental selection of a different child at the start of the study.",
description:
"We ask again just to check for typos during registration or accidental selection of a different child at the start of the study.",
inputType: "date",
isRequired: true,
maxValueExpression: "today()",
name: "birthDate",
title: "Please confirm your child's birthdate.",
type: "text"
type: "text",
},
{
description: "Only authorized researchers will have access to information in the library. Researchers who are granted access must agree to maintain confidentiality and not use information for commercial purposes. Data sharing will lead to faster progress in research on human development and behavior. If you have any questions about the data-sharing library, please visit [Databrary](https://nyu.databrary.org/) or email [email protected].",
description:
"Only authorized researchers will have access to information in the library. Researchers who are granted access must agree to maintain confidentiality and not use information for commercial purposes. Data sharing will lead to faster progress in research on human development and behavior. If you have any questions about the data-sharing library, please visit [Databrary](https://nyu.databrary.org/) or email [email protected].",
enableIf: "({withdrawal} empty) or ({withdrawal.length} = 0)",
isRequired: true,
name: "databraryShare",
title: "Would you like to share your video and other data from this session with authorized users of the secure data library Databrary?",
title:
"Would you like to share your video and other data from this session with authorized users of the secure data library Databrary?",
type: "boolean",
valueFalse: "no",
valueTrue: "yes"
valueTrue: "yes",
},
{
choices: [
{
text: "**Private**: Video may only be viewed by authorized scientists",
value: "private"
value: "private",
},
{
text: "**Scientific and educational**: Video may be shared for scientific or educational purposes. For example, we might show a video clip in a talk at a scientific conference or an undergraduate class about cognitive development, or include an image or video in a scientific paper. In some circumstances, video or images may be available online, for instance as supplemental material in a scientific paper.",
value: "scientific"
value: "scientific",
},
{
text: "**Publicity**: Please select this option if you'd be excited about seeing your child featured on the Lookit website or in a news article about this study! Your video may be shared for publicity as well as scientific and educational purposes; it will never be used for commercial purposes. Video clips shared may be available online to the general public.",
value: "public"
}
value: "public",
},
],
description: "",
enableIf: "({withdrawal} empty) or ({withdrawal.length} = 0)",
isRequired: true,
name: "useOfMedia",
title: "Use of video clips and images:",
type: "radiogroup"
type: "radiogroup",
},
{
choices: [],
defaultValue: [],
isRequired: false,
name: "withdrawal",
title: "Withdrawal of video data",
type: "checkbox"
type: "checkbox",
},
{
autoGrow: true,
name: "feedback",
rows: 3,
title: "How did it go? Do you have any suggestions for improving the study?",
type: "comment"
}
title:
"How did it go? Do you have any suggestions for improving the study?",
type: "comment",
},
],
name: "page1"
}
name: "page1",
},
],
showQuestionNumbers: "off"
};
showQuestionNumbers: "off",
};

0 comments on commit ae527c6

Please sign in to comment.