Skip to content

Commit

Permalink
⬆️ Oppgraderer eslint, typer og jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
steoiv committed Oct 23, 2024
1 parent 2458d8d commit 35d4549
Show file tree
Hide file tree
Showing 3 changed files with 245 additions and 185 deletions.
4 changes: 1 addition & 3 deletions lib/utils/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ function flattenMessages(nestedMessages: GenericMessageObject, prefix = ''): Rec
}, {});
}

type Messages = {
[K in DecoratorLocale]?: { [name: string]: string };
};
type Messages = Partial<Record<DecoratorLocale, { [name: string]: string }>>;

export const messages: Messages = {
nb: flattenMessages(messagesNb),
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"cookie": "^0.6.0",
"date-fns": "^4.1.0",
"html-react-parser": "^5.1.18",
"jsdom": "^24.1.3",
"jsdom": "^25.0.1",
"next": "^14.2.15",
"node-cache": "^5.1.2",
"react": "18.3.1",
Expand All @@ -45,16 +45,16 @@
"@testing-library/user-event": "^14.5.2",
"@types/amplitude-js": "^8.16.5",
"@types/cookie": "^0.6.0",
"@types/jest": "^29.5.13",
"@types/jest": "^29.5.14",
"@types/jest-axe": "^3.5.9",
"@types/node": "^20.16.13",
"@types/react": "18.3.11",
"@types/node": "^20.16.15",
"@types/react": "18.3.12",
"@types/react-dom": "^18.3.1",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.4",
"eslint-plugin-jest": "^28.6.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"eslint": "^8.57.1",
"eslint-config-next": "^14.2.16",
"eslint-plugin-jest": "^28.8.3",
"husky": "^9.1.6",
"jest": "^29.7.0",
"jest-axe": "^9.0.0",
Expand Down
Loading

0 comments on commit 35d4549

Please sign in to comment.