-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(v2): correct some of type errors reported by eslint #4382
Conversation
[V1] Deploy preview failure Built without sensitive environment variables with commit 9423941 https://app.netlify.com/sites/docusaurus-1/deploys/604953c9a3a4aa0007ac1305 |
Deploy preview for docusaurus-2 ready! Built without sensitive environment variables with commit 9423941 |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-4382--docusaurus-2.netlify.app/classic/ |
@@ -51,7 +51,7 @@ export function normalizePluginOptions<T extends {id?: string}>( | |||
logValidationBugReportHint(); | |||
if (isValidationDisabledEscapeHatch) { | |||
console.error(error); | |||
return options; | |||
return options as T; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is unsafe but it happens only if we want to ignore validation
thanks 👍 |
Motivation
Fix some of simpler warnings reported by eslint
Have you read the Contributing Guidelines on pull requests?
yes
Test Plan
Related tickets
ref; #3424