Skip to content

Commit

Permalink
Disable no-unescaped-entities
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyEJohnson committed Dec 2, 2024
1 parent 5af7a71 commit 9fdc756
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ module.exports = {
"react/prop-types": "off",
"react/jsx-no-target-blank": "off",
"react/display-name": "off",
"react/no-unescaped-entities": "warn",
"react/no-unescaped-entities": "off",
}
}
2 changes: 1 addition & 1 deletion src/components/BodyPortal.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ describe('BodyPortal', () => {
render(
<BodyPortalSlotsContext.Provider value={['header', 'root']}>
<BodyPortal slot='header' tagName='header' id='orange' data-testid='blue'>
Now you&apos;re thinking with portals
Now you're thinking with portals
</BodyPortal>
</BodyPortalSlotsContext.Provider>,
{ container: root }
Expand Down
2 changes: 1 addition & 1 deletion src/components/Error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Error = ({ heading, children, ...props }: ErrorPropTypes) => {
return <ModalBody {...props} data-testid='error'>
<ModalBodyHeading>{heading ?? `Uh-oh, there's been a glitch`}</ModalBodyHeading>
{children ?? <>
We&apos;re not quite sure what went wrong. Restart your browser. If this doesn&apos;t solve
We're not quite sure what went wrong. Restart your browser. If this doesn't solve
the problem, visit our <a href="https://openstax.secure.force.com/help" target="_blank">Support Center</a>.
</>}
<EventId data-testid='event-id'>{context.error?.eventId || lastEventId}</EventId>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Error = ({ children, ...props }: React.PropsWithChildren<ErrorPropTypes>)
const defaultErrorFallbacks = {
'generic': <Error data-testid='error-fallback' />,
'SessionExpiredError': <Error heading='Your session has expired'>
Please refresh your browser and try again. If this doesn&apos;t solve the problem, visit our <a href="https://openstax.secure.force.com/help" target="_blank">Support Center</a>.
Please refresh your browser and try again. If this doesn't solve the problem, visit our <a href="https://openstax.secure.force.com/help" target="_blank">Support Center</a>.
</Error>,
'UnauthorizedError': <Error heading="Uh-oh, it seems you can't access this page.">
You may not have the required permissions or may have been logged out. Try refreshing the page or restarting your browser.
Expand Down

0 comments on commit 9fdc756

Please sign in to comment.