Skip to content

Commit 109465f

Browse files
author
Jonah Paten
authored
chore: updated dev dependencies (#4309) (#4318)
* chore: updated typescript (#4309) * chore: updated eslint plugins (#4309) * chore: updated more linting plugins and fixed sonarjs errors (#4309) * chore: updated and ran prettier (#3409) * chore: updated commitlint (#3409) * chore: updated babel-loader (#4309) * chore: updated got (#4309) * chore: updated playwright (#4309) * chore: updated husky (#4309) * chore: updated jest (#4309) * fix: moved next-mdx-remote to prod dependencies (#4309) * fix: renamed Error to MyError (#4309) * chore: diabled no-nested-conditional eslint rule (#4309)
1 parent e5b579e commit 109465f

File tree

30 files changed

+10682
-8534
lines changed

30 files changed

+10682
-8534
lines changed

.eslintrc.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"prettier",
1515
"plugin:prettier/recommended",
1616
"next",
17-
"plugin:sonarjs/recommended",
17+
"plugin:sonarjs/recommended-legacy",
1818
"plugin:eslint-comments/recommended"
1919
],
2020
"rules": {
@@ -57,7 +57,10 @@
5757
"jsdoc/require-returns-description": "error",
5858
"jsdoc/check-alignment": "error",
5959
"jsdoc/check-param-names": "error",
60-
"react-hooks/exhaustive-deps": "error"
60+
"react-hooks/exhaustive-deps": "error",
61+
"sonarjs/todo-tag": "warn",
62+
"sonarjs/redundant-type-aliases": "warn",
63+
"sonarjs/no-nested-conditional": "off"
6164
},
6265
"overrides": [
6366
{

.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

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ build
1717

1818
# dependencies
1919
node_modules
20+
21+
# other (avoids breaking a link)
22+
app/components/common/MDXContent/hca-dcp/downloadBatchCorrectionWarning.mdx

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

__tests__/project-matrix-mapper.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ const LYMPH_NODE = "lymph node";
2525
const MOCK_PROJECT_MATRIX_FILE_0 = {
2626
name: "123.loom",
2727
size: 254147853,
28-
url: "http://path/to/file0?version=0&catalog=dcp2ebi",
28+
url: "https://path/to/file0?version=0&catalog=dcp2ebi",
2929
};
3030
const MOCK_PROJECT_MATRIX_FILE_1 = {
3131
name: "456.loom",
3232
size: 254147854,
33-
url: "http://path/to/file1?version=0&catalog=dcp2ebi",
33+
url: "https://path/to/file1?version=0&catalog=dcp2ebi",
3434
};
3535
const CONTRIBUTED_ANALYSES = {
3636
genusSpecies: {

app/apis/azul/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])

app/apis/azul/hca-dcp/archivePreview/archivePreview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function fetchProjectMatrixArchiveFiles(
5252
const response = await fetch(url);
5353
const result = await response.json();
5454
return bindArchiveFiles(result);
55-
} catch (error) {
55+
} catch {
5656
return [];
5757
}
5858
}

app/apis/catalog/anvil-catalog/common/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const getConsortiumTitle = (
6161
};
6262

6363
export const anvilCatalogStudyInputMapper = <
64-
StudyType extends AnVILCatalogStudyAny
64+
StudyType extends AnVILCatalogStudyAny,
6565
>(
6666
input: StudyType
6767
): StudyType => {

app/components/Detail/components/GeneratedMatricesTables/components/ArchivePreviewDialog/components/ArchivePreviewTable/archivePreviewTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface ArchivePreviewTableProps {
2525
*/
2626
function getArchivePreviewTableColumns<
2727
T extends RowData,
28-
TData = unknown
28+
TData = unknown,
2929
>(): ColumnDef<T, TData>[] {
3030
return [
3131
{

0 commit comments

Comments
 (0)