Skip to content

Commit

Permalink
chore(deps): bump prettier from 2.4.1 to 2.8.8
Browse files Browse the repository at this point in the history
- add parentheses for `TypeofTypeAnnotation`
  (prettier/prettier#14458,
  prettier/prettier#14042)
  • Loading branch information
lorenzocorallo committed Apr 25, 2023
1 parent 878f4f9 commit 5af2a8d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
14 changes: 10 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -39,7 +39,7 @@
"i18next": "^22.4.15",
"i18next-browser-languagedetector": "^7.0.1",
"mkdirp": "^1.0.4",
"prettier": "^2.4.1",
"prettier": "^2.8.8",
"react": "^17.0.2",
"react-collapsible": "^2.10.0",
"react-dom": "^17.0.2",
Expand Down
7 changes: 5 additions & 2 deletions src/components/pages/Results.tsx
Expand Up @@ -157,7 +157,10 @@ export default function Results(props: ResultsProps) {
)

const score = (
Object.entries(correctionGrid) as [Section, typeof correctionGrid[string]][]
Object.entries(correctionGrid) as [
Section,
(typeof correctionGrid)[string]
][]
)
.map(([, correction]) => correction.score.mul(correction.weight))
.reduce((acc, curr) => acc.add(curr), new Fraction(0))
Expand Down Expand Up @@ -195,7 +198,7 @@ export default function Results(props: ResultsProps) {
{(
Object.entries(correctionGrid) as [
Section,
typeof correctionGrid[Section]
(typeof correctionGrid)[Section]
][]
)
.sort((a, b) => sectionInfo[a[0]].order - sectionInfo[b[0]].order)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/database.ts
Expand Up @@ -10,7 +10,7 @@ export const sheetDict = {
quesiti_COM: 'com',
quesiti_FIS: 'fis'
} as const
export type Section = typeof sheetDict[keyof typeof sheetDict]
export type Section = (typeof sheetDict)[keyof typeof sheetDict]

export type AnswerLetter = 'a' | 'b' | 'c' | 'd' | 'e'

Expand Down

0 comments on commit 5af2a8d

Please sign in to comment.