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

Cleanup with eslint rules #216

Merged
merged 5 commits into from
Jul 22, 2024
Merged

Cleanup with eslint rules #216

merged 5 commits into from
Jul 22, 2024

Conversation

xPaw
Copy link
Contributor

@xPaw xPaw commented Jul 18, 2024

  • Remove unused vars
  • Fix up globals
  • Change var to let/const
  • Enable stylistic rules for consistent style

Probably a pain to review (you can ignore whitespace changes at least).

var items = getInventoryItems();
var marketableItems = [];
var filteredItems = [];
loadAllInventories().then(
Copy link
Owner

Choose a reason for hiding this comment

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

Just commenting on this once (Chome hangs for a whole minute here), can we change all these callbacks to arrow functions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

Yes, thanks, this looks much better.

@Nuklon Nuklon merged commit 4eecab0 into Nuklon:master Jul 22, 2024
1 check passed
@xPaw xPaw deleted the lint branch July 22, 2024 17:27
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