Skip to content

Commit

Permalink
Upgrade dependencies.
Browse files Browse the repository at this point in the history
Adjust codebase to comply with newly-added ESLint rules.
  • Loading branch information
polymutex committed Dec 26, 2024
1 parent c8d9b34 commit e0fad7a
Show file tree
Hide file tree
Showing 6 changed files with 1,085 additions and 259 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default [
},
rules: {
complexity: 'off',
'max-lines': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/prefer-destructuring': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,33 @@
"post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest"
},
"dependencies": {
"@emotion/cache": "^11.13.5",
"@emotion/react": "^11.13.5",
"@emotion/styled": "^11.13.5",
"@mui/icons-material": "^6.1.9",
"@mui/material": "^6.1.9",
"@mui/system": "^6.1.9",
"@mui/x-charts": "^7.23.0",
"@mui/x-data-grid": "^7.23.0",
"next": "^15.0.3",
"@emotion/cache": "^11.14.0",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.3.0",
"@mui/material": "^6.3.0",
"@mui/system": "^6.3.0",
"@mui/x-charts": "^7.23.2",
"@mui/x-data-grid": "^7.23.3",
"next": "^15.1.2",
"next-plausible": "^3.12.4",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@next/bundle-analyzer": "^15.0.3",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"caniuse-lite": "^1.0.30001684",
"eslint": "^9.16.0",
"eslint-config-love": "^109.0.0",
"eslint-config-next": "^15.0.3",
"@next/bundle-analyzer": "^15.1.2",
"@types/node": "^22.10.2",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@typescript-eslint/eslint-plugin": "^8.18.2",
"@typescript-eslint/parser": "^8.18.2",
"caniuse-lite": "^1.0.30001690",
"eslint": "^9.17.0",
"eslint-config-love": "^113.0.0",
"eslint-config-next": "^15.1.2",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.37.2",
"prettier": "^3.4.1",
"eslint-plugin-react": "^7.37.3",
"prettier": "^3.4.2",
"typescript": "^5.7.2"
},
"packageManager": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion src/beta/schema/attribute-groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function scoreGroup<Vs extends ValueSet>(weights: { [k in keyof Vs]: number }):
const score = weightedScore(
nonEmptyRemap(weights, (key: keyof Vs, weight: number): WeightedScore => {
const value = evaluations[key].evaluation.value;
hasUnrated = hasUnrated || value.rating === Rating.UNRATED;
hasUnrated ||= value.rating === Rating.UNRATED;
return {
score: value.score ?? defaultRatingScore(value.rating),
weight,
Expand Down
6 changes: 6 additions & 0 deletions src/components/ui/organisms/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ export default function ComparisonTable(): React.JSX.Element {
const checkValues: Partial<{ [k in keyof T]: checkValue }> = {};
if (inputs.length > 0) {
for (const key in inputs[0]) {
if (!Object.hasOwn(inputs[0], key)) {
continue;
}
const values = inputs.map(input => input[key]);
let result: checkResult = 'true';
if (!values.every(value => value !== false)) {
Expand Down Expand Up @@ -360,6 +363,9 @@ export default function ComparisonTable(): React.JSX.Element {
{(() => {
const expandedList = [];
for (const key in checkValues) {
if (!Object.hasOwn(checkValues, key)) {
continue;
}
const checkValue = checkValues[key];
if (typeof checkValue === 'undefined') {
continue;
Expand Down
Loading

0 comments on commit e0fad7a

Please sign in to comment.