Skip to content

Commit

Permalink
chore: update dev dependencies to latest (#2603)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
jpaten authored Dec 7, 2024
1 parent 2dbcf3d commit 64d5912
Show file tree
Hide file tree
Showing 11 changed files with 3,205 additions and 1,280 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prettier",
"plugin:prettier/recommended",
"next",
"plugin:sonarjs/recommended",
"plugin:sonarjs/recommended-legacy",
"plugin:eslint-comments/recommended"
],
"rules": {
Expand Down Expand Up @@ -58,7 +58,9 @@
"jsdoc/require-returns-description": "error",
"jsdoc/check-alignment": "error",
"jsdoc/check-param-names": "error",
"react-hooks/exhaustive-deps": "error"
"react-hooks/exhaustive-deps": "error",
"sonarjs/todo-tag": "warn",
"sonarjs/redundant-type-aliases": "warn"
},
"overrides": [
{
Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

echo "Checking commit message"

# Check for issue number
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

echo '🏗️👷 Checking your project before committing'

# Check Prettier
Expand Down
4 changes: 3 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"trailingComma": "es5"
}
12 changes: 6 additions & 6 deletions apis/azul/hca-dcp/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function isNullOrUndefined(value: any): boolean {
*/
export function processAggregatedOrArrayValue<
T,
K extends KeyOfTypeStringOrNullArray<T>
K extends KeyOfTypeStringOrNullArray<T>,
>(responseValues: T[], key: K): string[] {
// Aggregate key values across response values.
const values = aggregateResponseValues(
Expand All @@ -91,7 +91,7 @@ export function processAggregatedOrArrayValue<
*/
export function processAggregatedBooleanOrArrayValue<
T,
K extends KeyOfTypeBooleanOrNullArray<T>
K extends KeyOfTypeBooleanOrNullArray<T>,
>(responseValues: T[], key: K): string[] {
// Aggregate key values across response values.
const values = aggregateResponseValues(
Expand All @@ -114,7 +114,7 @@ export function processAggregatedBooleanOrArrayValue<
*/
export function processAggregatedNumberEntityValue<
T,
K extends KeyOfTypeNumberOrNull<T>
K extends KeyOfTypeNumberOrNull<T>,
>(responseValues: T[], key: K): number {
// Aggregate key values across response values.
return aggregateNumericalResponseValues(responseValues, key);
Expand All @@ -129,7 +129,7 @@ export function processAggregatedNumberEntityValue<
*/
export function processEntityArrayValue<
T,
K extends KeyOfTypeStringOrNullArray<T>
K extends KeyOfTypeStringOrNullArray<T>,
>(responseValues: T[], key: K, label = LABEL.UNSPECIFIED): string[] {
// Response values should be a singleton array; check for at least one value here.
if (responseValues.length === 0) {
Expand Down Expand Up @@ -202,7 +202,7 @@ export function processNumberEntityValue<T, K extends KeyOfTypeNumberOrNull<T>>(
*/
function aggregateNumericalResponseValues<
T,
K extends KeyOfTypeNumberOrNull<T>
K extends KeyOfTypeNumberOrNull<T>,
>(responseValues: T[], key: K): number {
return responseValues
.map((responseValue) => responseValue[key] as unknown as number)
Expand All @@ -217,7 +217,7 @@ function aggregateNumericalResponseValues<
*/
function aggregateResponseValues<
T,
K extends KeyOfTypeStringOrNullArray<T> | KeyOfTypeBooleanOrNullArray<T>
K extends KeyOfTypeStringOrNullArray<T> | KeyOfTypeBooleanOrNullArray<T>,
>(responseValues: T[], key: K): StringOrNullArray | BooleanOrNullArray {
return responseValues
.filter((responseValue) => !!responseValue[key])
Expand Down
8 changes: 6 additions & 2 deletions components/Home/components/SectionHero/sectionHero.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,14 @@ export const CTAs = styled.div`
justify-self: center;
& .MuiButton-containedSecondary {
box-shadow: inset 0 0 0 1px ${smokeDark}, 0 1px 0 0 ${primaryDark};
box-shadow:
inset 0 0 0 1px ${smokeDark},
0 1px 0 0 ${primaryDark};
&:hover {
box-shadow: inset 0 0 0 1px ${smokeDark}, 0 1px 0 0 ${primaryDark};
box-shadow:
inset 0 0 0 1px ${smokeDark},
0 1px 0 0 ${primaryDark};
}
&:active {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const SectionStayUpToDate = (): JSX.Element => {
<SectionContent>
<SectionHead>Stay up-to-date with the Human Cell Atlas</SectionHead>
<CTAs>
{/* eslint-disable sonarjs/link-with-target-blank -- rule doesn't recognize constant */}
<ButtonSecondary
onClick={(): void => {
window.open(
Expand All @@ -27,6 +28,7 @@ export const SectionStayUpToDate = (): JSX.Element => {
>
Join The HCA
</ButtonSecondary>
{/* eslint-enable sonarjs/link-with-target-blank -- keep checking future noopener cases */}
</CTAs>
</SectionContent>
</Section>
Expand Down
Loading

0 comments on commit 64d5912

Please sign in to comment.