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

client: Various cleanups #1459

Merged
merged 5 commits into from
Jul 29, 2023
Merged

client: Various cleanups #1459

merged 5 commits into from
Jul 29, 2023

Conversation

jtojnar
Copy link
Member

@jtojnar jtojnar commented Jul 29, 2023

No description provided.

@netlify
Copy link

netlify bot commented Jul 29, 2023

Deploy Preview for selfoss canceled.

Name Link
🔨 Latest commit 0941aa1
🔍 Latest deploy log https://app.netlify.com/sites/selfoss/deploys/64c578fb7d83b0000812545f

@jtojnar jtojnar added this to the 2.20 milestone Jul 29, 2023
eslint with TypeScript support would complain:

- Unexpected var, use let or const instead (no-var)
- Use the spread operator instead of '.apply()' (prefer-spread)
- Use the rest parameters instead of 'arguments' (prefer-rest-params)
- variable is never reassigned. Use 'const' instead (prefer-const)

Also update eslint.
This better matches common React project style.
`htmlTitle` has not been used since 072357f.
`windowLoaded` has not been used since 510ae9c.
So that `this` value is more predictable.
It was introduced in d36ea78 along with `getItems` method that ended up being used instead.
@jtojnar jtojnar merged commit 0941aa1 into master Jul 29, 2023
14 checks passed
@jtojnar jtojnar deleted the pre-ts-cleanups branch July 29, 2023 21:46
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.

1 participant