-
Notifications
You must be signed in to change notification settings - Fork 26
Removing .js from imports #1694
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
Conversation
| if (type == "array" || type == "object") { | ||
| for (let i in obj) { | ||
| for (const i in obj) { |
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.
terrible variable name... I suggest key
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.
we can address this in a different PR
| } | ||
| const data = await response.json(); | ||
| var message = data; | ||
| const message = data; |
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 know this isn't new... but why?
| } catch (err) { | ||
| console.log(err); | ||
| var result_1 = { | ||
| const result_1 = { |
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 suspect this was from Mike using autoconvert to async await: can we just have this object returned rather than having a machine generated variable name?
| } catch (err) { | ||
| console.log(err); | ||
| var result_1 = { | ||
| const result_1 = { |
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.
just return
| } catch (err) { | ||
| console.log(err); | ||
| var result_1 = { | ||
| const result_1 = { |
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.
just return
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 think there is an eslint about this, "unnecessary variable", can you check @PhilBastian ?
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.
| } catch (err) { | ||
| console.log(err); | ||
| var result_1 = { | ||
| const result_1 = { |
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.
just return

This is quite a few files, but is just removing the
.jsfrom the imports, so that once we rename the files to.tswe don't need to revisit these imports.