Skip to content

Commit 64d5912

Browse files
author
Jonah Paten
authored
chore: update dev dependencies to latest (#2603)
* chore: updated typescript eslint (#2600) * chore: updated sonarjs eslint, configured/fixed new errors (#2600) * chore: updated other eslint plugins (#2600) * chore: updated, configured, reran prettier (#2600) * chore: updated types/node (#2600) * chore: updated got (#2600) * chore: updated commitlint (#2600) * fix: fixed commitlint version (#2600) * chore: updated husky (#2600) * chore: update remark-gfm (#2600) * chore: resolve husky deprecation alert (#2600) * chore: updated @digitak/esrun (#2600) * chore: updated remaining typing dependencies (#2600) * fix: moved dependencies used in the app out of devDependencies (#2600) * chore: updated types/react (#2600) * chore: updated next/eslint-plugin-next (#2600) * chore: moved remark dependencies out of devDependencies (#2600) * chore: updated types packages to match the main package version (#2600) * chore: move next-mdx-remote and slugify from dev to prod dependencies (#2600)
1 parent 2dbcf3d commit 64d5912

File tree

11 files changed

+3205
-1280
lines changed

11 files changed

+3205
-1280
lines changed

.eslintrc.json

Lines changed: 4 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,9 @@
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",
63+
"sonarjs/redundant-type-aliases": "warn"
6264
},
6365
"overrides": [
6466
{

.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

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
echo '🏗️👷 Checking your project before committing'
52

63
# Check Prettier

.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+
}

apis/azul/hca-dcp/common/utils.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function isNullOrUndefined(value: any): boolean {
7070
*/
7171
export function processAggregatedOrArrayValue<
7272
T,
73-
K extends KeyOfTypeStringOrNullArray<T>
73+
K extends KeyOfTypeStringOrNullArray<T>,
7474
>(responseValues: T[], key: K): string[] {
7575
// Aggregate key values across response values.
7676
const values = aggregateResponseValues(
@@ -91,7 +91,7 @@ export function processAggregatedOrArrayValue<
9191
*/
9292
export function processAggregatedBooleanOrArrayValue<
9393
T,
94-
K extends KeyOfTypeBooleanOrNullArray<T>
94+
K extends KeyOfTypeBooleanOrNullArray<T>,
9595
>(responseValues: T[], key: K): string[] {
9696
// Aggregate key values across response values.
9797
const values = aggregateResponseValues(
@@ -114,7 +114,7 @@ export function processAggregatedBooleanOrArrayValue<
114114
*/
115115
export function processAggregatedNumberEntityValue<
116116
T,
117-
K extends KeyOfTypeNumberOrNull<T>
117+
K extends KeyOfTypeNumberOrNull<T>,
118118
>(responseValues: T[], key: K): number {
119119
// Aggregate key values across response values.
120120
return aggregateNumericalResponseValues(responseValues, key);
@@ -129,7 +129,7 @@ export function processAggregatedNumberEntityValue<
129129
*/
130130
export function processEntityArrayValue<
131131
T,
132-
K extends KeyOfTypeStringOrNullArray<T>
132+
K extends KeyOfTypeStringOrNullArray<T>,
133133
>(responseValues: T[], key: K, label = LABEL.UNSPECIFIED): string[] {
134134
// Response values should be a singleton array; check for at least one value here.
135135
if (responseValues.length === 0) {
@@ -202,7 +202,7 @@ export function processNumberEntityValue<T, K extends KeyOfTypeNumberOrNull<T>>(
202202
*/
203203
function aggregateNumericalResponseValues<
204204
T,
205-
K extends KeyOfTypeNumberOrNull<T>
205+
K extends KeyOfTypeNumberOrNull<T>,
206206
>(responseValues: T[], key: K): number {
207207
return responseValues
208208
.map((responseValue) => responseValue[key] as unknown as number)
@@ -217,7 +217,7 @@ function aggregateNumericalResponseValues<
217217
*/
218218
function aggregateResponseValues<
219219
T,
220-
K extends KeyOfTypeStringOrNullArray<T> | KeyOfTypeBooleanOrNullArray<T>
220+
K extends KeyOfTypeStringOrNullArray<T> | KeyOfTypeBooleanOrNullArray<T>,
221221
>(responseValues: T[], key: K): StringOrNullArray | BooleanOrNullArray {
222222
return responseValues
223223
.filter((responseValue) => !!responseValue[key])

components/Home/components/SectionHero/sectionHero.styles.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,14 @@ export const CTAs = styled.div`
6161
justify-self: center;
6262
6363
& .MuiButton-containedSecondary {
64-
box-shadow: inset 0 0 0 1px ${smokeDark}, 0 1px 0 0 ${primaryDark};
64+
box-shadow:
65+
inset 0 0 0 1px ${smokeDark},
66+
0 1px 0 0 ${primaryDark};
6567
6668
&:hover {
67-
box-shadow: inset 0 0 0 1px ${smokeDark}, 0 1px 0 0 ${primaryDark};
69+
box-shadow:
70+
inset 0 0 0 1px ${smokeDark},
71+
0 1px 0 0 ${primaryDark};
6872
}
6973
7074
&:active {

components/Home/components/SectionStayUpToDate/sectionStayUpToDate.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const SectionStayUpToDate = (): JSX.Element => {
1616
<SectionContent>
1717
<SectionHead>Stay up-to-date with the Human Cell Atlas</SectionHead>
1818
<CTAs>
19+
{/* eslint-disable sonarjs/link-with-target-blank -- rule doesn't recognize constant */}
1920
<ButtonSecondary
2021
onClick={(): void => {
2122
window.open(
@@ -27,6 +28,7 @@ export const SectionStayUpToDate = (): JSX.Element => {
2728
>
2829
Join The HCA
2930
</ButtonSecondary>
31+
{/* eslint-enable sonarjs/link-with-target-blank -- keep checking future noopener cases */}
3032
</CTAs>
3133
</SectionContent>
3234
</Section>

0 commit comments

Comments
 (0)