-
Notifications
You must be signed in to change notification settings - Fork 285
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
docs: example require #1136
docs: example require #1136
Conversation
var Minio = require('minio') | ||
var Helpers = require('minio/dist/main/helpers') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to start modifying the variable instance with const
rather than var
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it matters in example. But it's better we perfer const in src code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it would be a way to say that the library has been modernized. But it's okay if we're still using var
on examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer-const
is previous disabled in eslint, I don't know how maintainers think. And I don't care much about code style in examples...
Co-authored-by: Prakash Senthil Vel <[email protected]>
No description provided.