Skip to content

Commit 467e38b

Browse files
committed
fix: update deps
1 parent 0df1ed3 commit 467e38b

File tree

3 files changed

+129
-113
lines changed

3 files changed

+129
-113
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
"@mui/icons-material": "5.15.1",
3131
"@mui/lab": "5.0.0-alpha.134",
3232
"@mui/material": "5.15.1",
33-
"@sentry/react": "7.86.0",
33+
"@sentry/react": "7.89.0",
3434
"@tanstack/react-query": "^4.36.1",
3535
"@tanstack/react-query-devtools": "^4.36.1",
3636
"@types/lodash.groupby": "4.6.9",
37-
"@types/node": "20.10.4",
38-
"@types/react": "18.2.43",
39-
"@types/react-dom": "18.2.17",
37+
"@types/node": "20.10.5",
38+
"@types/react": "18.2.45",
39+
"@types/react-dom": "18.2.18",
4040
"@uiw/react-codemirror": "4.21.21",
4141
"@uppy/core": "^3.1.1",
4242
"@uppy/dashboard": "^3.3.1",
@@ -45,22 +45,22 @@
4545
"@uppy/progress-bar": "^3.0.1",
4646
"@uppy/react": "^3.1.0",
4747
"@uppy/xhr-upload": "^3.1.0",
48-
"date-fns": "2.30.0",
48+
"date-fns": "3.0.1",
4949
"file-saver": "^2.0.5",
5050
"i18next": "23.7.11",
5151
"lodash.countby": "4.6.0",
5252
"lodash.groupby": "4.6.0",
5353
"lodash.isequal": "4.5.0",
5454
"lodash.isobject": "3.0.2",
5555
"lodash.isstring": "4.0.1",
56-
"prism-react-renderer": "2.3.0",
56+
"prism-react-renderer": "2.3.1",
5757
"react": "18.2.0",
5858
"react-diff-viewer": "3.1.1",
5959
"react-dom": "18.2.0",
6060
"react-i18next": "13.5.0",
6161
"react-markdown": "9.0.1",
6262
"react-mde": "12.0.8",
63-
"react-router-dom": "6.20.1",
63+
"react-router-dom": "6.21.0",
6464
"react-toastify": "9.1.3",
6565
"remark-breaks": "4.0.0",
6666
"remark-gfm": "4.0.0",
@@ -115,7 +115,7 @@
115115
"eslint-config-react-app": "7.0.1",
116116
"eslint-import-resolver-typescript": "^3.6.1",
117117
"eslint-plugin-cypress": "2.15.1",
118-
"eslint-plugin-import": "2.29.0",
118+
"eslint-plugin-import": "2.29.1",
119119
"eslint-plugin-jsx-a11y": "6.8.0",
120120
"eslint-plugin-prettier": "5.1.0",
121121
"eslint-plugin-react": "^7.33.2",

src/utils/datetime.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
// known problem with date-fns:
2-
// https://stackoverflow.com/questions/63375527/how-to-set-up-imported-multiple-times-rule-for-date-fns-in-eslint
3-
// eslint-disable-next-line import/no-duplicates
4-
import { formatDistance } from 'date-fns';
5-
// eslint-disable-next-line import/no-duplicates
6-
import { enGB, fr } from 'date-fns/locale';
1+
import { Locale, formatDistance } from 'date-fns';
2+
import { enGB } from 'date-fns/locale/en-GB';
3+
import { fr } from 'date-fns/locale/fr';
74

85
// to add a new language to the dates
96
const locales: { [key: string]: Locale } = {

0 commit comments

Comments
 (0)