Skip to content
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

feat: enabled typescript strict mode #1233

Merged
merged 9 commits into from
Oct 22, 2024

Conversation

oliverschwendener
Copy link
Owner

@oliverschwendener oliverschwendener commented Oct 21, 2024

This PR enables "strict": true in tsconfig.node.json. Would be cool if every code owner could review their code, thanks!

This PR is still work in progress...

scomans
scomans previously approved these changes Oct 21, 2024
Comment on lines +160 to +163
return (await this.fileSystemUtility.readDirectory(ideaPath))
.map((f) => basename(f))
.find((f) => f.endsWith(".iml"))
?.replace(".iml", "");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return (await this.fileSystemUtility.readDirectory(ideaPath))
.map((f) => basename(f))
.find((f) => f.endsWith(".iml"))
?.replace(".iml", "");
const filesInDir = await this.fileSystemUtility.readDirectory(ideaPath);
let projectFile = filesInDir.find((f) => f.endsWith(".iml"));
if(!projectFile) {
return undefined;
}
projectFile = basename(projectFile);
return projectFile.substring(0, projectFile.length - 4);

Just a minor improvement for my original code :)

Copy link
Collaborator

@IrishBruse IrishBruse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vscode changes look good

@oliverschwendener oliverschwendener merged commit c66407a into main Oct 22, 2024
3 checks passed
@oliverschwendener oliverschwendener deleted the feat-typescript-strict-mode branch October 22, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants