-
Notifications
You must be signed in to change notification settings - Fork 977
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
Update Functions init templates #1093
Conversation
2 similar comments
I think we should make it so that the developer can select all the text in the file, uncomment, and be left with valid functions code and valid comments. I really don't understand why the top line is not commented like the rest of the code - so I'd recommend commenting out the top import line for firebase-functions and keeping the double comments. Thoughts? |
I don't think we should comment out the top line. It's required for every file, whereas the rest of the lines are helpful to get started with, but not necessarily needed. |
Yeah, the existing structure of the file is deliberate. |
I think we should either keep all code uncommented and comments commented, or comment out everything - you could argue that I suggest we leave it as it was and table this discussion for now. |
Didn't see @mbleigh 's comment before I posted mine - it makes sense that we don't want to uncomment the code to have people accidentally deploy a function when running |
I noticed the typescript version here does not match the version we see in functions or admin - was there a specific reason we chose typescript v3.2.2 for the templates? If not, I think we should keep them all consistent at v3.1.0 |
Description
typescript
in the typescript templatesindex
filestslint
rulees6
withes2015
which are equivalent (but the years are easier to follow)Scenarios Tested
created and tested (via
npm run lint
andnpm run serve
):