Upgrade deps

This commit is contained in:
Kalle 2023-08-26 23:22:51 +03:00
parent dab6b00c2d
commit 191de711c0
9 changed files with 1998 additions and 3213 deletions

View File

@ -14,8 +14,6 @@ module.exports = {
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"@remix-run/eslint-config",
"@remix-run/eslint-config/node",
],
rules: {
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
@ -32,6 +30,7 @@ module.exports = {
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/unbound-method": 0,
"@typescript-eslint/consistent-type-imports": "warn",
"react/prop-types": 0,
"@typescript-eslint/no-restricted-imports": [
"error",

2
.nvmrc
View File

@ -1 +1 @@
v18.16.0
v18.17.1

View File

@ -24,7 +24,7 @@ export function divideGroups({
likes: Pick<GroupLike, "likerGroupId" | "targetGroupId">[];
}): DividedGroupsUncensored {
let own: LookingGroupWithInviteCode | null = null;
let neutral: LookingGroupWithInviteCode[] = [];
const neutral: LookingGroupWithInviteCode[] = [];
const likesReceived: LookingGroupWithInviteCode[] = [];
const likesGiven: LookingGroupWithInviteCode[] = [];

View File

@ -58,8 +58,6 @@ export type FindPlacement = Pick<
| "year"
| "region"
| "playerId"
| "month"
| "year"
| "mode"
> &
Pick<User, "customUrl" | "discordId">;

View File

@ -521,7 +521,7 @@ function TournamentProgressPrompt({ ownedTeamId }: { ownedTeamId: number }) {
if (data.finalStandings) return null;
const { progress, currentMatchId, currentOpponent } = (() => {
let lowestStatus = Infinity;
let lowestStatus: Status = Infinity;
let currentMatchId: number | undefined;
let currentOpponent: string | undefined;
@ -551,6 +551,7 @@ function TournamentProgressPrompt({ ownedTeamId }: { ownedTeamId: number }) {
return { progress: lowestStatus, currentMatchId, currentOpponent };
})();
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
if (progress === Infinity) {
console.error("Unexpected no status");
return null;

View File

@ -178,7 +178,6 @@ export class InMemoryDatabase implements CrudInterface {
}
}
// @ts-expect-error imported
const values = this.data[table].filter(this.makeFilter(arg));
if (!values) {
return false;

View File

@ -105,7 +105,7 @@ function ThemeProvider({
// Gets corrected by clientThemeCode if set to "" during SSR
htmlThemeClass: theme ?? "",
// Gets corrected by clientThemeCode if set to wrong value during SSR
metaColorScheme: theme === "light" ? "light dark" : "dark light",
metaColorScheme: theme === Theme.LIGHT ? "light dark" : "dark light",
userTheme:
themeSource === "static" ? null : isAutoDetected ? "auto" : theme!,
setUserTheme,

5139
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -30,8 +30,8 @@
"delete-skill": "node --experimental-specifier-resolution=node --loader ts-node/esm -r tsconfig-paths/register scripts/delete-skill.ts",
"lint:ts": "eslint . --ext .ts,.tsx",
"lint:css": "stylelint \"app/styles/**/*.css\"",
"prettier:check": "prettier --check . --loglevel warn",
"prettier:write": "prettier --write . --loglevel warn",
"prettier:check": "prettier --check . --log-level warn",
"prettier:write": "prettier --write . --log-level warn",
"typecheck": "tsc --noEmit",
"test:unit": "uvu -r tsm -r tsconfig-paths/register -i e2e",
"test:e2e": "npx playwright test",
@ -44,16 +44,16 @@
"@dnd-kit/sortable": "^7.0.2",
"@dnd-kit/utilities": "^3.2.1",
"@faker-js/faker": "^8.0.2",
"@headlessui/react": "^1.7.15",
"@headlessui/react": "^1.7.17",
"@popperjs/core": "^2.11.8",
"@remix-run/node": "^1.18.0",
"@remix-run/react": "^1.18.0",
"@remix-run/serve": "^1.18.0",
"@remix-run/node": "^1.19.3",
"@remix-run/react": "^1.19.3",
"@remix-run/serve": "^1.19.3",
"@tldraw/tldraw": "^1.29.2",
"aws-sdk": "^2.1409.0",
"better-sqlite3": "^8.4.0",
"aws-sdk": "^2.1445.0",
"better-sqlite3": "^8.5.2",
"cachified": "^3.5.4",
"clsx": "^1.2.1",
"clsx": "^2.0.0",
"compressorjs": "^1.2.1",
"countries-list": "^2.6.1",
"date-fns": "^2.30.0",
@ -63,13 +63,13 @@
"i18next-browser-languagedetector": "^6.1.5",
"i18next-fs-backend": "^1.1.5",
"i18next-http-backend": "^1.4.4",
"isbot": "^3.6.12",
"isbot": "^3.6.13",
"just-capitalize": "^3.2.0",
"just-clone": "^6.2.0",
"just-random-integer": "^4.2.0",
"just-shuffle": "^4.2.0",
"lru-cache": "9.1.2",
"markdown-to-jsx": "^7.2.1",
"lru-cache": "10.0.1",
"markdown-to-jsx": "^7.3.2",
"nanoid": "~3.3.4",
"node-cron": "3.0.2",
"nprogress": "^0.2.0",
@ -82,42 +82,41 @@
"react-popper": "^2.3.0",
"react-responsive-masonry": "^2.1.7",
"react-use": "^17.4.0",
"remix-auth": "^3.4.0",
"remix-auth-oauth2": "^1.7.0",
"remix-auth": "^3.5.1",
"remix-auth-oauth2": "^1.8.0",
"remix-i18next": "^4.1.1",
"remix-utils": "^6.5.0",
"remix-utils": "^6.6.0",
"slugify": "^1.6.6",
"swr": "^2.2.0",
"swr": "^2.2.1",
"tiny-invariant": "^1.3.1",
"zod": "^3.21.4"
"zod": "^3.22.2"
},
"devDependencies": {
"@playwright/test": "^1.35.1",
"@remix-run/dev": "^1.18.0",
"@remix-run/eslint-config": "^1.18.0",
"@playwright/test": "^1.37.1",
"@remix-run/dev": "^1.19.3",
"@types/better-sqlite3": "7.6.4",
"@types/i18next-fs-backend": "^1.1.2",
"@types/node-cron": "^3.0.8",
"@types/nprogress": "^0.2.0",
"@types/prettier": "3.0.0",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@types/react-responsive-masonry": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"cross-env": "^7.0.3",
"dotenv": "^16.3.1",
"eslint": "^8.43.0",
"eslint-plugin-react": "^7.32.2",
"eslint": "^8.48.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"ley": "^0.8.1",
"prettier": "3.0.2",
"stylelint": "^15.10.1",
"stylelint-config-standard": "^33.0.0",
"stylelint": "^15.10.3",
"stylelint-config-standard": "^34.0.0",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"tsm": "^2.3.0",
"typescript": "^5.1.6",
"typescript": "^5.2.2",
"uvu": "^0.5.6"
}
}