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

Integrate eslint in codebase #135

Merged
merged 4 commits into from
Sep 20, 2023
Merged

Conversation

papidb
Copy link
Contributor

@papidb papidb commented Sep 15, 2023

This would allow us improves code quality, consistency and enhances collaboration

Copy link
Member

@Vexu Vexu left a comment

Choose a reason for hiding this comment

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

I'm not a huge fan of wrapping single line ifs in braces but I guess it's better to be consistent.

src/zigSetup.ts Outdated
Comment on lines 39 to 42
for (const entry of Object.entries(indexJson)) {
let [key] = entry;
const [, value] = entry;
if (key === "master") {key = "nightly";}
Copy link
Member

Choose a reason for hiding this comment

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

What's going on here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The value from entry isn't reassigned, so I had to make the key a variable a let variable and the value a const variable.

Copy link
Member

Choose a reason for hiding this comment

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

Can the lint be overriden?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it can, I would make this changes.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks!

@papidb papidb requested a review from Vexu September 20, 2023 11:37
@Vexu Vexu merged commit d631d6f into ziglang:master Sep 20, 2023
1 check passed
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.

2 participants