-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
CLI: Typescript strict mode #22254
CLI: Typescript strict mode #22254
Conversation
@@ -76,7 +76,7 @@ export const builderVite: Fix<BuilderViteOptions> = { | |||
|
|||
logger.info(`✅ Updating main.js to use vite builder`); | |||
if (!dryRun) { | |||
await updateMainConfig({ dryRun, mainConfigPath }, async (main) => { |
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.
mainConfigPath
is declared as optional in RunOptions
here
mainConfigPath?: string; |
but updateMainConfig
expects non-null string. What would be a good fix here?
} | ||
|
||
if (!eslintFile && !unsupportedExtension) { | ||
if (!eslintFile || !unsupportedExtension) { |
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.
I'm pretty sure this is meant to be ||
here. Let me know if this is a mistake.
return groups ? [groups[1], groups[2]] : [addon, undefined]; | ||
if (groups) { | ||
return [groups[0], groups[2]] as const; | ||
} | ||
return [addon, undefined] as const; |
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.
Probably would have just made more sense to add a tuple return-type to the getVersionSpecifier
function definition.
Updated and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: @angular-devkit/core@16.2.4, @storybook/client-logger@7.5.3, @storybook/theming@7.5.3 |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
@SocketSecurity ignore json-parse-even-better-errors@3.0.0 |
Part of #22176
What I did
Fix some typescript errors before enabling strict mode.
How to test
Checklist
MIGRATION.MD
Maintainers
make sure to add the
ci:merged
orci:daily
GH label to it.["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]