Skip to content

Commit 6cf79a9

Browse files
authored
chore: update the package-lock (#720) (#721)
* chore: update the package-lock (#720) * chore: upgrade @typescript-eslint/eslint-plugin to be within typescript range (#720) * docs: update readme (#720) --------- Co-authored-by: Fran McDade <18710366+frano-m@users.noreply.github.com>
1 parent 26d97dd commit 6cf79a9

File tree

10 files changed

+4652
-3933
lines changed

10 files changed

+4652
-3933
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
{
7272
"files": "**/*.test.ts",
7373
"rules": {
74-
"@typescript-eslint/no-explicit-any": "off"
74+
"@typescript-eslint/no-explicit-any": "off",
75+
"sonarjs/no-duplicate-string": "off"
7576
}
7677
}
7778
]

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,18 @@
1414
the [Data Biosphere Data Browser](https://github.com/DataBiosphere/data-browser).
1515
2. Set `node` version to `22.12.0` (this is also the version used by the Data Browser).
1616
3. In the `findable-ui` repository directory:
17-
- Run `npm ci`.
18-
- [Bump the version number](https://docs.npmjs.com/cli/v6/commands/npm-version) in `package.json`
19-
e.g. `npm version <update_type>`.
17+
- Run `npm update`.
2018
- Run `npx tsc` (this should be run when this repository is first downloaded and when any changes are made to the
2119
source files; one way this can be done more efficiently is
2220
by [setting the default build task](https://code.visualstudio.com/docs/typescript/typescript-compiling#_step-3-make-the-typescript-build-the-default)
2321
in VS Code so that it can be done with a keyboard shortcut).
2422
4. In the Data Browser `explorer` directory (e.g. `data-browser/explorer`):
25-
- Run `npm ci`.
26-
- Update the `@databiosphere/findable-ui` dependency in the `package.json` file to use the new version
27-
of Findable UI.
28-
- Run `npm link ../../findable-ui`, which will create a symlink in node_modules pointing
23+
- Run `npm update`.
24+
- Run `npm link ../findable-ui`, which will create a symlink in node_modules pointing
2925
to findable-ui.
3026
- If any packages are later installed or uninstalled, the symlink will need to be created again, which can be done
3127
with the same command or by running `npm link @databiosphere/findable-ui`.
3228
- To successfully link to findable-ui, you may need to comment out the following packages from the `next.config.mjs` webpack configuration:
3329
- `@tanstack/react-table`
34-
- `axios`
30+
3531

package-lock.json

Lines changed: 4624 additions & 3906 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"@commitlint/cli": "^17.4.2",
2626
"@commitlint/config-conventional": "^17.4.2",
2727
"@emotion/jest": "^11.13.0",
28-
"@mui/types": "^7.4.0",
2928
"@next/eslint-plugin-next": "^14.2.33",
3029
"@storybook/addon-actions": "^8.6.4",
3130
"@storybook/addon-essentials": "^8.6.4",
@@ -43,8 +42,8 @@
4342
"@types/react-dom": "^18.3.0",
4443
"@types/react-gtm-module": "^2.0.1",
4544
"@types/react-window": "^1.8.5",
46-
"@types/uuid": "8.3.4",
47-
"@typescript-eslint/eslint-plugin": "^7.18.0",
45+
"@types/uuid": "^8.3.4",
46+
"@typescript-eslint/eslint-plugin": "^8.49.0",
4847
"eslint": "^8.33.0",
4948
"eslint-config-next": "^14.2.33",
5049
"eslint-config-prettier": "^8.6.0",
@@ -75,7 +74,7 @@
7574
"@tanstack/match-sorter-utils": "^8.19.4",
7675
"@tanstack/react-table": "^8.19.2",
7776
"@tanstack/react-virtual": "^3.13.12",
78-
"copy-to-clipboard": "3.3.1",
77+
"copy-to-clipboard": "^3.3.1",
7978
"gray-matter": "^4.0.3",
8079
"isomorphic-dompurify": "^2.22.0",
8180
"ky": "^1.7.2",
@@ -85,9 +84,9 @@
8584
"react": "^18.3.1",
8685
"react-dom": "^18.3.1",
8786
"react-dropzone": "^14.2.3",
88-
"react-gtm-module": "2.0.11",
87+
"react-gtm-module": "^2.0.11",
8988
"react-idle-timer": "^5.7.2",
90-
"react-window": "1.8.9",
89+
"react-window": "^1.8.9",
9190
"rehype-raw": "^7.0.0",
9291
"rehype-react": "^7.2.0",
9392
"rehype-sanitize": "^5.0.1",
@@ -96,7 +95,7 @@
9695
"remark-rehype": "^10.1.0",
9796
"slugify": "^1.6.6",
9897
"unified": "^10.1.2",
99-
"uuid": "8.3.2",
98+
"uuid": "^8.3.2",
10099
"yup": "^1.6.1"
101100
},
102101
"overrides": {

src/common/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
export function isValidUrl(testUrl: string): boolean {
77
try {
88
return Boolean(new URL(testUrl));
9-
} catch (e) {
9+
} catch {
1010
return false;
1111
}
1212
}

src/components/Links/components/Link/components/ExploreViewLink/exploreViewLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function isValidJsonString(query: string): boolean {
132132
try {
133133
JSON.parse(query);
134134
return true;
135-
} catch (e) {
135+
} catch {
136136
return false;
137137
}
138138
}

src/components/Redirect/redirect.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export const Redirect = ({
1313
const router = useRouter();
1414

1515
useEffect(() => {
16-
replace ? router.replace(destination) : router.push(destination);
16+
if (replace) {
17+
router.replace(destination);
18+
} else {
19+
router.push(destination);
20+
}
1721
}, [destination, replace, router]);
1822

1923
return <></>;

src/components/common/ToggleButtonGroup/toggleButtonGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const ToggleButtonGroup = ({
6060
): void => {
6161
if (newToggleValue) {
6262
setToggleValue(newToggleValue);
63-
onToggleFn && onToggleFn();
63+
if (onToggleFn) onToggleFn();
6464
}
6565
};
6666

src/hooks/useFileLocation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function buildFetchFileUrl(url?: string): string | undefined {
3131
"/fetch/"
3232
);
3333
return urlObj.href;
34-
} catch (e) {
34+
} catch {
3535
throw new Error(`Invalid file URL: ${url}`);
3636
}
3737
}

types/data-explorer-ui.d.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ declare module "@emotion/react" {
245245
}
246246

247247
declare module "@tanstack/react-table" {
248-
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- TData and TValue are unused variables.
248+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-unused-vars -- TData and TValue are unused generic parameters for interface extension.
249249
interface Column<TData extends RowData, TValue> extends CustomFeatureColumn {}
250250

251251
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- TData and TValue are unused variables.
@@ -263,13 +263,13 @@ declare module "@tanstack/react-table" {
263263
width?: GridTrackSize;
264264
}
265265

266-
// eslint-disable-next-line @typescript-eslint/no-empty-interface -- empty interface is needed for extending.
266+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type -- empty interface is needed for extending.
267267
interface InitialTableState extends CustomFeatureInitialTableState {}
268268

269-
// eslint-disable-next-line @typescript-eslint/no-empty-interface, @typescript-eslint/no-unused-vars -- empty interface is needed for extending, TData is an unused variable.
269+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-unused-vars -- empty interface is needed for extending, TData is an unused variable.
270270
interface Row<TData extends RowData> extends CustomFeatureRow {}
271271

272-
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- TData is an unused variables.
272+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- TData is an unused variable.
273273
interface SortingOptions<TData extends RowData> {
274274
/**
275275
* When false, sorting can still be applied programmatically (e.g., `getSortedRowModel`),
@@ -278,13 +278,14 @@ declare module "@tanstack/react-table" {
278278
enableSortingInteraction?: boolean;
279279
}
280280

281-
// eslint-disable-next-line @typescript-eslint/no-empty-interface -- empty interface is needed for extending.
281+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type -- empty interface is needed for extending.
282282
interface Table<TData extends RowData> extends CustomFeatureInstance<TData> {}
283283

284+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type -- empty interface is needed for extending.
284285
interface TableOptionsResolved<TData extends RowData>
285286
extends CustomFeatureOptions<TData> {}
286287

287-
// eslint-disable-next-line @typescript-eslint/no-empty-interface -- empty interface is needed for extending.
288+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type -- empty interface is needed for extending.
288289
interface TableState extends CustomFeatureTableState {}
289290
}
290291

0 commit comments

Comments
 (0)