Skip to content

Commit

Permalink
Update prettier and add parentheses (#3303)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Aug 15, 2024
1 parent f3e35ba commit 6f7e5d3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Pronunciations/Recorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/WordCard/DomainChipsGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
};

Expand Down
2 changes: 1 addition & 1 deletion src/utilities/fontContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class ProjectFonts {
? this.getLangFont(props.lang)
: props.analysis
? this.analysisFont
: style?.fontFamily ?? this.inherit,
: (style?.fontFamily ?? this.inherit),
};
}
}
Expand Down

0 comments on commit 6f7e5d3

Please sign in to comment.