Skip to content

Commit b421d54

Browse files
authored
chore: update dev dependencies (#3427) (#3428)
* chore: update typescript (#3427) * chore: update typescript-eslint (#3427) * chore: update eslint plugins (#3427) * feat: configure/resolve sonarjs errors (#3427) * chore: update prettier (#3427) * style: configure prettier and fix remaining errors (#3427) * chore: update commitlint (#3427) * chore: update jest (#3427) * chore: update husky (#3427) * chore: update csv-parse and got (#3427) * fix: update hook for latest version of husky (#3427) * chore: move dependencies used in app out of dev dependencies (#3427) * chore: move slugify out of dev dependencies (#3427) * content: remove link that now points to incorrect site (#3427)
1 parent a8aa285 commit b421d54

File tree

11 files changed

+3830
-2152
lines changed

11 files changed

+3830
-2152
lines changed

.eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"prettier",
1616
"plugin:prettier/recommended",
1717
"next",
18-
"plugin:sonarjs/recommended",
18+
"plugin:sonarjs/recommended-legacy",
1919
"plugin:eslint-comments/recommended"
2020
],
2121
"rules": {
@@ -58,7 +58,8 @@
5858
"jsdoc/require-returns-description": "error",
5959
"jsdoc/check-alignment": "error",
6060
"jsdoc/check-param-names": "error",
61-
"react-hooks/exhaustive-deps": "error"
61+
"react-hooks/exhaustive-deps": "error",
62+
"sonarjs/todo-tag": "warn"
6263
},
6364
"overrides": [
6465
{

.husky/commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
echo "Checking commit message"
52

63
# Check for issue number

.prettierrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{}
1+
{
2+
"trailingComma": "es5"
3+
}

components/Consortia/CSER/components/Publications/publications.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ import publications from "./publications.json";
55
import { Publications as PublicationsByYear } from "./publications.styles";
66

77
export const Publications = (): JSX.Element => {
8-
const publicationsByYear = publications.reduce((byYear, publication) => {
9-
(
10-
byYear[publication.publicationYear] ||
11-
(byYear[publication.publicationYear] = [])
12-
).push(publication);
13-
return byYear;
14-
}, {} as Record<string, typeof publications>);
8+
const publicationsByYear = publications.reduce(
9+
(byYear, publication) => {
10+
(
11+
byYear[publication.publicationYear] ||
12+
(byYear[publication.publicationYear] = [])
13+
).push(publication);
14+
return byYear;
15+
},
16+
{} as Record<string, typeof publications>
17+
);
1518

1619
const { compare } = new Intl.Collator("en");
1720

components/Consortia/CSER/components/Resources/resources.tsx

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ export const Resources = (): JSX.Element => {
8686
A database of genes that, when somatically altered in cancer, are
8787
directly linked to a clinical action. Created by CanSeq:
8888
</p>
89-
<p>http://www.broadinstitute.org/cancer/cga/target</p>
89+
<p>https://www.broadinstitute.org/cancer/cga/target</p>
9090
{/* <Link */}
91-
{/* label="http://www.broadinstitute.org/cancer/cga/target" */}
92-
{/* url="http://www.broadinstitute.org/cancer/cga/target" */}
91+
{/* label="https://www.broadinstitute.org/cancer/cga/target" */}
92+
{/* url="https://www.broadinstitute.org/cancer/cga/target" */}
9393
{/* /> */}
9494
</div>
9595
<div>
@@ -101,10 +101,10 @@ export const Resources = (): JSX.Element => {
101101
A heuristic algorithm for clinical interpretation of cancer genome
102102
sequencing data. Created by CanSeq:
103103
</p>
104-
<p>http://www.broadinstitute.org/cancer/cga/phial</p>
104+
<p>https://www.broadinstitute.org/cancer/cga/phial</p>
105105
{/* <Link */}
106-
{/* label="http://www.broadinstitute.org/cancer/cga/phial" */}
107-
{/* url="http://www.broadinstitute.org/cancer/cga/phial" */}
106+
{/* label="https://www.broadinstitute.org/cancer/cga/phial" */}
107+
{/* url="https://www.broadinstitute.org/cancer/cga/phial" */}
108108
{/* /> */}
109109
</div>
110110
<div>
@@ -137,7 +137,7 @@ export const Resources = (): JSX.Element => {
137137
Proband is an app for taking family history pedigrees, designed
138138
exclusively for the iPad. Created by PediSeq.
139139
</p>
140-
{/* <Link label="http://probandapp.com" url="http://probandapp.com" /> */}
140+
{/* <Link label="https://probandapp.com" url="https://probandapp.com" /> */}
141141
</div>
142142
<div>
143143
<TextBodyLarge500>
@@ -148,7 +148,7 @@ export const Resources = (): JSX.Element => {
148148
to allow adults undergoing genomic testing to record their
149149
preferences about getting incidental or secondary results.
150150
</p>
151-
<Link label="http://www.pigsr.org" url="http://www.pigsr.org" />
151+
<Link label="https://www.pigsr.org" url="https://www.pigsr.org" />
152152
</div>
153153
<div>
154154
<TextBodyLarge500>
@@ -159,10 +159,10 @@ export const Resources = (): JSX.Element => {
159159
A NEJM interactive graphic on clinical genome and exome sequencing.
160160
Created by ClinSeq and MedSeq:
161161
</p>
162-
<p>http://www.nejm.org</p>
162+
<p>https://www.nejm.org</p>
163163
{/* <Link */}
164-
{/* label="http://www.nejm.org" */}
165-
{/* url="http://www.nejm.org/action/showMediaPlayer?doi=10.1056/NEJMra1312543&aid=NEJMra1312543_attach_1" */}
164+
{/* label="https://www.nejm.org" */}
165+
{/* url="https://www.nejm.org/action/showMediaPlayer?doi=10.1056/NEJMra1312543&aid=NEJMra1312543_attach_1" */}
166166
{/* /> */}
167167
</div>
168168
</Accordion>
@@ -207,8 +207,8 @@ export const Resources = (): JSX.Element => {
207207
<TextBodyLarge500>Medscape</TextBodyLarge500>
208208
<p>Medscape offers diverse topics in its online CME library:</p>
209209
<Link
210-
label="http://www.medscape.org/resource/genomic-medicine/cme"
211-
url="http://www.medscape.org/resource/genomic-medicine/cme"
210+
label="https://www.medscape.org/resource/genomic-medicine/cme"
211+
url="https://www.medscape.org/resource/genomic-medicine/cme"
212212
/>
213213
</div>
214214
</Accordion>
@@ -220,8 +220,8 @@ export const Resources = (): JSX.Element => {
220220
among human variations and phenotypes with supporting evidence:
221221
</p>
222222
<Link
223-
label="http://www.ncbi.nlm.nih.gov/clinvar"
224-
url="http://www.ncbi.nlm.nih.gov/clinvar"
223+
label="https://www.ncbi.nlm.nih.gov/clinvar"
224+
url="https://www.ncbi.nlm.nih.gov/clinvar"
225225
/>
226226
</div>
227227
<div>
@@ -231,8 +231,8 @@ export const Resources = (): JSX.Element => {
231231
Exome Sequencing Project (ESP):
232232
</p>
233233
<Link
234-
label="http://evs.gs.washington.edu/EVS"
235-
url="http://evs.gs.washington.edu/EVS"
234+
label="https://evs.gs.washington.edu/EVS"
235+
url="https://evs.gs.washington.edu/EVS"
236236
/>
237237
</div>
238238
<div>
@@ -245,8 +245,8 @@ export const Resources = (): JSX.Element => {
245245
investigated the interaction of genotype and phenotype:
246246
</p>
247247
<Link
248-
label="http://www.ncbi.nlm.nih.gov/gap"
249-
url="http://www.ncbi.nlm.nih.gov/gap"
248+
label="https://www.ncbi.nlm.nih.gov/gap"
249+
url="https://www.ncbi.nlm.nih.gov/gap"
250250
/>
251251
</div>
252252
<div>
@@ -255,7 +255,7 @@ export const Resources = (): JSX.Element => {
255255
The UCSC Genome Browser, containing the reference sequence and
256256
working draft assemblies for a large collection of genomes:
257257
</p>
258-
<Link label="http://genome.ucsc.edu" url="http://genome.ucsc.edu" />
258+
<Link label="https://genome.ucsc.edu" url="https://genome.ucsc.edu" />
259259
</div>
260260
<div>
261261
<TextBodyLarge500>
@@ -266,8 +266,8 @@ export const Resources = (): JSX.Element => {
266266
authoritative compendium of human genes and genetic phenotypes:
267267
</p>
268268
<Link
269-
label="http://www.ncbi.nlm.nih.gov/omim"
270-
url="http://www.ncbi.nlm.nih.gov/omim"
269+
label="https://www.ncbi.nlm.nih.gov/omim"
270+
url="https://www.ncbi.nlm.nih.gov/omim"
271271
/>
272272
</div>
273273
<div>
@@ -277,8 +277,8 @@ export const Resources = (): JSX.Element => {
277277
descriptions with a clinical focus:
278278
</p>
279279
<Link
280-
label="http://www.genereviews.org"
281-
url="http://www.genereviews.org"
280+
label="https://www.genereviews.org"
281+
url="https://www.genereviews.org"
282282
/>
283283
</div>
284284
<div>
@@ -287,16 +287,16 @@ export const Resources = (): JSX.Element => {
287287
Genetics Home Reference, consumer-friendly information about the
288288
effects of genetic variations on human health:
289289
</p>
290-
<Link label="http://ghr.nlm.nih.gov" url="http://ghr.nlm.nih.gov" />
290+
<Link label="https://ghr.nlm.nih.gov" url="https://ghr.nlm.nih.gov" />
291291
</div>
292292
<div>
293293
<TextBodyLarge500>Center for Mendelian Genomics</TextBodyLarge500>
294294
<p>
295295
Center for Mendelian Genomics, will apply next-generation sequencing
296296
and computational approaches to discover the genes and variants that
297-
underlie Mendelian conditions:
297+
underlie Mendelian conditions.
298298
</p>
299-
<Link label="http://mendelian.org/" url="http://mendelian.org" />
299+
{/* <Link label="https://mendelian.org/" url="https://mendelian.org" /> */}
300300
</div>
301301
<div>
302302
<TextBodyLarge500>The CSER1 ELSI Literature Archive</TextBodyLarge500>

components/Home/components/Section/components/SectionHero/components/Carousel/components/Arrow/arrow.styles.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export const IconButton = styled(MIconButton, {
2626
& {
2727
background-color: ${white};
2828
border-radius: 50%;
29-
box-shadow: inset 0 0 0 1px ${smokeDark}, 0 1px 0 0 ${black08};
29+
box-shadow:
30+
inset 0 0 0 1px ${smokeDark},
31+
0 1px 0 0 ${black08};
3032
color: ${inkMain};
3133
position: absolute;
3234
top: 50%;

components/Home/components/Section/components/SectionHero/components/Carousel/components/Cards/cards.styles.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ export const CardPositioner = styled("div")<Props>`
4444

4545
export const Card = styled(MCard)`
4646
border: none;
47-
box-shadow: ${elevation01}, inset 0 0 0 1px ${smokeMain};
47+
box-shadow:
48+
${elevation01},
49+
inset 0 0 0 1px ${smokeMain};
4850
display: flex;
4951
height: 100%;
5052
width: 100%;

0 commit comments

Comments
 (0)