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

Standardise & simplify code #488

Merged
merged 7 commits into from
Dec 16, 2024
Merged

Standardise & simplify code #488

merged 7 commits into from
Dec 16, 2024

Conversation

webfiltered
Copy link
Contributor

  • Cleans imports
  • Always use error for error var
  • Prefer spread, for-of, and anything-but-reduce
  • And various other ESLint nits

@webfiltered webfiltered requested review from a team as code owners December 14, 2024 20:09
@webfiltered webfiltered marked this pull request as draft December 14, 2024 20:18
Copy link
Member

@huchenlei huchenlei left a comment

Choose a reason for hiding this comment

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

LGTM! Are we going to enable eslint soon?

@webfiltered
Copy link
Contributor Author

Definitely. I am using a workaround to run it atm though - the repo is using commonJS, which isn't well-supported anymore.

@webfiltered webfiltered marked this pull request as ready for review December 15, 2024 09:15
webfiltered added a commit that referenced this pull request Dec 16, 2024
nit - Standardise imports

Fix test import / mock

[Refactor] Assorted ESLint nits

[Refactor] Simplify code - prefer spread, for-of

nit - Standardise utf8 name

nit - Standardise error var names

nit - Doc
@huchenlei huchenlei merged commit e12afde into main Dec 16, 2024
8 checks passed
@huchenlei huchenlei deleted the eslint-clean branch December 16, 2024 18:40
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