Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e0fad7a

Browse files
committedDec 26, 2024··
Upgrade dependencies.
Adjust codebase to comply with newly-added ESLint rules.
1 parent c8d9b34 commit e0fad7a

File tree

6 files changed

+1085
-259
lines changed

6 files changed

+1085
-259
lines changed
 

‎eslint.config.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default [
2323
},
2424
rules: {
2525
complexity: 'off',
26+
'max-lines': 'off',
2627
'@typescript-eslint/no-magic-numbers': 'off',
2728
'@typescript-eslint/prefer-destructuring': 'off',
2829
'@typescript-eslint/no-inferrable-types': 'off',

‎next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

‎package.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,33 @@
1010
"post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest"
1111
},
1212
"dependencies": {
13-
"@emotion/cache": "^11.13.5",
14-
"@emotion/react": "^11.13.5",
15-
"@emotion/styled": "^11.13.5",
16-
"@mui/icons-material": "^6.1.9",
17-
"@mui/material": "^6.1.9",
18-
"@mui/system": "^6.1.9",
19-
"@mui/x-charts": "^7.23.0",
20-
"@mui/x-data-grid": "^7.23.0",
21-
"next": "^15.0.3",
13+
"@emotion/cache": "^11.14.0",
14+
"@emotion/react": "^11.14.0",
15+
"@emotion/styled": "^11.14.0",
16+
"@mui/icons-material": "^6.3.0",
17+
"@mui/material": "^6.3.0",
18+
"@mui/system": "^6.3.0",
19+
"@mui/x-charts": "^7.23.2",
20+
"@mui/x-data-grid": "^7.23.3",
21+
"next": "^15.1.2",
2222
"next-plausible": "^3.12.4",
2323
"react": "^18.3.1",
2424
"react-dom": "^18.3.1"
2525
},
2626
"devDependencies": {
27-
"@next/bundle-analyzer": "^15.0.3",
28-
"@types/node": "^22.10.1",
29-
"@types/react": "^18.3.12",
30-
"@types/react-dom": "^18.3.1",
31-
"@typescript-eslint/eslint-plugin": "^8.16.0",
32-
"@typescript-eslint/parser": "^8.16.0",
33-
"caniuse-lite": "^1.0.30001684",
34-
"eslint": "^9.16.0",
35-
"eslint-config-love": "^109.0.0",
36-
"eslint-config-next": "^15.0.3",
27+
"@next/bundle-analyzer": "^15.1.2",
28+
"@types/node": "^22.10.2",
29+
"@types/react": "^18.3.18",
30+
"@types/react-dom": "^18.3.5",
31+
"@typescript-eslint/eslint-plugin": "^8.18.2",
32+
"@typescript-eslint/parser": "^8.18.2",
33+
"caniuse-lite": "^1.0.30001690",
34+
"eslint": "^9.17.0",
35+
"eslint-config-love": "^113.0.0",
36+
"eslint-config-next": "^15.1.2",
3737
"eslint-config-prettier": "^9.1.0",
38-
"eslint-plugin-react": "^7.37.2",
39-
"prettier": "^3.4.1",
38+
"eslint-plugin-react": "^7.37.3",
39+
"prettier": "^3.4.2",
4040
"typescript": "^5.7.2"
4141
},
4242
"packageManager": "yarn@4.5.3"

‎src/beta/schema/attribute-groups.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function scoreGroup<Vs extends ValueSet>(weights: { [k in keyof Vs]: number }):
224224
const score = weightedScore(
225225
nonEmptyRemap(weights, (key: keyof Vs, weight: number): WeightedScore => {
226226
const value = evaluations[key].evaluation.value;
227-
hasUnrated = hasUnrated || value.rating === Rating.UNRATED;
227+
hasUnrated ||= value.rating === Rating.UNRATED;
228228
return {
229229
score: value.score ?? defaultRatingScore(value.rating),
230230
weight,

‎src/components/ui/organisms/Table.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ export default function ComparisonTable(): React.JSX.Element {
289289
const checkValues: Partial<{ [k in keyof T]: checkValue }> = {};
290290
if (inputs.length > 0) {
291291
for (const key in inputs[0]) {
292+
if (!Object.hasOwn(inputs[0], key)) {
293+
continue;
294+
}
292295
const values = inputs.map(input => input[key]);
293296
let result: checkResult = 'true';
294297
if (!values.every(value => value !== false)) {
@@ -360,6 +363,9 @@ export default function ComparisonTable(): React.JSX.Element {
360363
{(() => {
361364
const expandedList = [];
362365
for (const key in checkValues) {
366+
if (!Object.hasOwn(checkValues, key)) {
367+
continue;
368+
}
363369
const checkValue = checkValues[key];
364370
if (typeof checkValue === 'undefined') {
365371
continue;

‎yarn.lock

+1,055-236
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.