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

chore: automatically replace var with let or const #3338

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DavideViolante
Copy link

  • add eslint rule no-var
  • add eslint rule prefer-const
  • run npm run lint --fix to automatically fix the code

Note: I didn't fix any code manually, just ran eslint.


var emptyRowFieldBuf = buffers.dataRow([])
emptyRowFieldBuf = buffers.dataRow([])
Copy link
Author

Choose a reason for hiding this comment

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

The only manual change was here due to: cannot redeclare variable. Same at line 52.
I think the line 42 and 46 can be safely removed because they are declared twice but only the 2nd var is used.

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