diff --git a/package-lock.json b/package-lock.json index 737d3385bf..ba646cd875 100644 --- a/package-lock.json +++ b/package-lock.json @@ -88,7 +88,7 @@ "jest-canvas-mock": "^2.5.2", "license-checker-rseidelsohn": "^4.3.0", "npm-run-all": "^4.1.5", - "prettier": "^3.0.3", + "prettier": "^3.3.3", "react-scripts": "^5.0.1", "react-test-renderer": "^18.2.0", "redux-mock-store": "^1.5.4", @@ -20225,9 +20225,9 @@ } }, "node_modules/prettier": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz", - "integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" diff --git a/package.json b/package.json index 0e286292bc..8182b7227e 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ "jest-canvas-mock": "^2.5.2", "license-checker-rseidelsohn": "^4.3.0", "npm-run-all": "^4.1.5", - "prettier": "^3.0.3", + "prettier": "^3.3.3", "react-scripts": "^5.0.1", "react-test-renderer": "^18.2.0", "redux-mock-store": "^1.5.4", diff --git a/src/components/Pronunciations/Recorder.ts b/src/components/Pronunciations/Recorder.ts index a049b387b5..9fb8540073 100644 --- a/src/components/Pronunciations/Recorder.ts +++ b/src/components/Pronunciations/Recorder.ts @@ -25,7 +25,7 @@ export default class Recorder { * If not, returns `undefined`. */ getRecordingId(): string | undefined { return this.recordRTC?.getState() === "recording" - ? this.id ?? "" + ? (this.id ?? "") : undefined; } diff --git a/src/components/WordCard/DomainChipsGrid.tsx b/src/components/WordCard/DomainChipsGrid.tsx index c7b0152960..19a994e139 100644 --- a/src/components/WordCard/DomainChipsGrid.tsx +++ b/src/components/WordCard/DomainChipsGrid.tsx @@ -21,7 +21,7 @@ export default function DomainChipsGrid( /** Change the domain name into the project's sem dom language; * if not available, fall back to the given domain's name. */ const updateName = (dom: SemanticDomain): SemanticDomain => { - const name = semDomNames ? semDomNames[dom.id] ?? dom.name : dom.name; + const name = semDomNames ? (semDomNames[dom.id] ?? dom.name) : dom.name; return { ...dom, name }; }; diff --git a/src/utilities/fontContext.ts b/src/utilities/fontContext.ts index ff2063eeff..3ef355b09e 100644 --- a/src/utilities/fontContext.ts +++ b/src/utilities/fontContext.ts @@ -89,7 +89,7 @@ export class ProjectFonts { ? this.getLangFont(props.lang) : props.analysis ? this.analysisFont - : style?.fontFamily ?? this.inherit, + : (style?.fontFamily ?? this.inherit), }; } }