-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Code style update (const, arrow functions) #1731
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
Labels
Comments
Let's do what I suggested there for global CLI too, and move all the code except the Node version check into a separate file that would be lazily required. This way we can use modern syntax there without screwing up the version check message. |
correct? |
Yes, although I'd only switch to arrows where it helps readability. I'd leave top level functions as named declarations. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Started here - #1433 (comment)
(only for packages/react-scripts)
var
->const
. For example:const
is usedvar
is usedvar
andconst
are usedThe text was updated successfully, but these errors were encountered: