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

Refactor lets to consts #1089

Merged
merged 2 commits into from
Jun 5, 2023
Merged

Conversation

jwhitmarsh
Copy link

@jwhitmarsh jwhitmarsh commented Jun 5, 2023

Fix #1039

eslint --fix to the rescue. One key thing to point out is that this PR includes updating the eslintrc. Happy to revert that change if preferred.

@@ -37,7 +37,7 @@
"no-useless-constructor": 0,
"no-useless-escape": 0,
"no-var": 0,
"prefer-const": 0,
"prefer-const": 1,
Copy link
Member

Choose a reason for hiding this comment

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

I'm surprised booleans aren't used for these.

Copy link
Member

@SleeplessOne1917 SleeplessOne1917 left a comment

Choose a reason for hiding this comment

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

Thank you!

@SleeplessOne1917 SleeplessOne1917 merged commit 8181e4a into LemmyNet:main Jun 5, 2023
@dessalines
Copy link
Member

Thanks!

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.

Replace all let with const in codebase (when possible)
3 participants