Skip to content

Commit

Permalink
chore: handle lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Aug 19, 2024
1 parent 5db2ade commit 77d7793
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/api/service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ApiService = () => {
<Layout title="Open FGA API Explorer">
<BrowserOnly fallback={<div>Loading...</div>}>
{() => {
// eslint-disable-next-line @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-require-imports
const { SwaggerUI } = require('../../components/SwaggerUI/swagger-ui');
return <SwaggerUI apiDocsBasePath={apiDocsBasePath} />;
}}
Expand Down
2 changes: 1 addition & 1 deletion src/theme/NavbarItem/NavbarNavLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function NavbarNavLink({
};
setGithubStars(newCachedGithubStars);
sessionStorage.setItem(GITHUB_STARS_SESSION_STORAGE_NAME, JSON.stringify(newCachedGithubStars));
} catch (err) {
} catch {
// try to use old cache if available (even if it is out of date)
setGithubStars(cachedGithubStars || null);
}
Expand Down
1 change: 1 addition & 0 deletions src/theme/prism-include-languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default function prismIncludeLanguages(PrismObject: typeof PrismNamespace
globalThis.Prism = PrismObject;

additionalLanguages.forEach((lang) => {
// eslint-disable-next-line @typescript-eslint/no-require-imports
require(`prismjs/components/prism-${lang}`);
});

Expand Down

0 comments on commit 77d7793

Please sign in to comment.