Skip to content

Commit 5a8d83e

Browse files
committed
Fix all eslint issues.
1 parent 5f44ebb commit 5a8d83e

File tree

124 files changed

+4848
-6108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+4848
-6108
lines changed

.github/ISSUE_TEMPLATE/---report-a-bug.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
name: '⚠️ Report a Bug'
2+
name: "⚠️ Report a Bug"
33
about: Think you found a bug in the firebase-functions SDK? Report it here. Please do not use this form if your function is deployed successfully but not working as you expected.
4-
title: ''
5-
labels: ''
6-
assignees: ''
4+
title: ""
5+
labels: ""
6+
assignees: ""
77
---
88

99
<!-- DO NOT DELETE

.github/workflows/postmerge.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ name: Post-merge tests
1616
on:
1717
workflow_dispatch:
1818
workflow_run:
19-
workflows: ['CI Tests']
19+
workflows: ["CI Tests"]
2020
types: [completed]
2121
branches: [master]
2222

@@ -38,16 +38,16 @@ jobs:
3838

3939
- uses: google-github-actions/auth@v0
4040
with:
41-
credentials_json: '${{ secrets.CF3_INTEGRATION_TEST_GOOGLE_CREDENTIALS }}'
41+
credentials_json: "${{ secrets.CF3_INTEGRATION_TEST_GOOGLE_CREDENTIALS }}"
4242
create_credentials_file: true
4343

44-
- name: 'Set up Cloud SDK'
44+
- name: "Set up Cloud SDK"
4545
uses: google-github-actions/setup-gcloud@v0
4646

47-
- name: 'Setup Firebase CLI'
47+
- name: "Setup Firebase CLI"
4848
run: npm i -g firebase-tools
4949

50-
- name: 'Run integration test'
50+
- name: "Run integration test"
5151
run: npm run test:postmerge
5252

5353
- name: Print debug logs

.mocharc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ extension:
44
package: ./package.json
55
reporter: spec
66
require:
7-
- 'ts-node/register'
8-
- 'source-map-support/register'
7+
- "ts-node/register"
8+
- "source-map-support/register"

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ _Please avoid double posting across multiple channels!_
2323

2424
```js
2525
// functions/index.js
26-
const functions = require('firebase-functions');
27-
const notifyUsers = require('./notify-users');
28-
29-
exports.newPost = functions.database
30-
.ref('/posts/{postId}')
31-
.onCreate((snapshot, context) => {
32-
functions.logger.info('Received new post with ID:', context.params.postId);
33-
return notifyUsers(snapshot.val());
34-
});
26+
const functions = require("firebase-functions");
27+
const notifyUsers = require("./notify-users");
28+
29+
exports.newPost = functions.database.ref("/posts/{postId}").onCreate((snapshot, context) => {
30+
functions.logger.info("Received new post with ID:", context.params.postId);
31+
return notifyUsers(snapshot.val());
32+
});
3533
```
3634

3735
## Contributing

docgen/content-sources/v1/toc.yaml

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,145 +1,145 @@
11
toc:
2-
- title: 'functions'
2+
- title: "functions"
33
path: /docs/reference/functions/cloud_functions.html
44
section:
5-
- title: 'CloudFunction'
5+
- title: "CloudFunction"
66
path: /docs/reference/functions/cloud_functions.html#cloudfunction
7-
- title: 'HttpsFunction'
7+
- title: "HttpsFunction"
88
path: /docs/reference/functions/cloud_functions.html#httpsfunction
9-
- title: 'EventContext'
9+
- title: "EventContext"
1010
path: /docs/reference/functions/cloud_functions.eventcontext.html
11-
- title: 'FunctionBuilder'
11+
- title: "FunctionBuilder"
1212
path: /docs/reference/functions/function_builder.functionbuilder.html
13-
- title: 'Change'
13+
- title: "Change"
1414
path: /docs/reference/functions/cloud_functions.change.html
15-
- title: 'ChangeJson'
15+
- title: "ChangeJson"
1616
path: /docs/reference/functions/cloud_functions.changejson.html
17-
- title: 'BlockingFunction'
17+
- title: "BlockingFunction"
1818
path: /docs/reference/functions/cloud_functions.blockingfunction.html
1919

20-
- title: 'functions.config'
20+
- title: "functions.config"
2121
path: /docs/reference/functions/config.html
2222
section:
23-
- title: 'Config'
23+
- title: "Config"
2424
path: /docs/reference/functions/config.config-1.html
25-
- title: 'config.Config'
25+
- title: "config.Config"
2626
path: /docs/reference/functions/config.config-1.config.html
2727

28-
- title: 'functions.function-configuration'
28+
- title: "functions.function-configuration"
2929
path: /docs/reference/functions/function_configuration.html
3030
section:
31-
- title: 'config.DeploymentOptions'
31+
- title: "config.DeploymentOptions"
3232
path: /docs/reference/functions/function_configuration.deploymentoptions.html
33-
- title: 'config.FailurePolicy'
33+
- title: "config.FailurePolicy"
3434
path: /docs/reference/functions/function_configuration.failurepolicy.html
35-
- title: 'config.RuntimeOptions'
35+
- title: "config.RuntimeOptions"
3636
path: /docs/reference/functions/function_configuration.runtimeoptions.html
37-
- title: 'config.Schedule'
37+
- title: "config.Schedule"
3838
path: /docs/reference/functions/function_configuration.schedule.html
39-
- title: 'config.ScheduleRetryConfig'
39+
- title: "config.ScheduleRetryConfig"
4040
path: /docs/reference/functions/function_configuration.scheduleretryconfig.html
4141

42-
- title: 'functions.analytics'
42+
- title: "functions.analytics"
4343
path: /docs/reference/functions/providers_analytics.html
4444
section:
45-
- title: 'AnalyticsEvent'
45+
- title: "AnalyticsEvent"
4646
path: /docs/reference/functions/providers_analytics.analyticsevent.html
47-
- title: 'AnalyticsEventBuilder'
47+
- title: "AnalyticsEventBuilder"
4848
path: /docs/reference/functions/providers_analytics.analyticseventbuilder.html
49-
- title: 'AppInfo'
49+
- title: "AppInfo"
5050
path: /docs/reference/functions/providers_analytics.appinfo.html
51-
- title: 'DeviceInfo'
51+
- title: "DeviceInfo"
5252
path: /docs/reference/functions/providers_analytics.deviceinfo.html
53-
- title: 'ExportBundleInfo'
53+
- title: "ExportBundleInfo"
5454
path: /docs/reference/functions/providers_analytics.exportbundleinfo.html
55-
- title: 'GeoInfo'
55+
- title: "GeoInfo"
5656
path: /docs/reference/functions/providers_analytics.geoinfo.html
57-
- title: 'UserDimensions'
57+
- title: "UserDimensions"
5858
path: /docs/reference/functions/providers_analytics.userdimensions.html
59-
- title: 'UserPropertyValue'
59+
- title: "UserPropertyValue"
6060
path: /docs/reference/functions/providers_analytics.userpropertyvalue.html
6161

62-
- title: 'functions.auth'
62+
- title: "functions.auth"
6363
path: /docs/reference/functions/providers_auth.html
6464
section:
65-
- title: 'UserBuilder'
65+
- title: "UserBuilder"
6666
path: /docs/reference/functions/providers_auth.userbuilder.html
67-
- title: 'UserInfo'
67+
- title: "UserInfo"
6868
path: /docs/reference/functions/providers_auth.html#userinfo
69-
- title: 'UserRecordMetadata'
69+
- title: "UserRecordMetadata"
7070
path: /docs/reference/functions/providers_auth.userrecordmetadata.html
71-
- title: 'UserRecord'
71+
- title: "UserRecord"
7272
path: /docs/reference/functions/providers_auth.html#userrecord
7373

74-
- title: 'functions.firestore'
74+
- title: "functions.firestore"
7575
path: /docs/reference/functions/providers_firestore.html
7676
section:
77-
- title: 'DocumentBuilder'
77+
- title: "DocumentBuilder"
7878
path: /docs/reference/functions/providers_firestore.documentbuilder.html
79-
- title: 'DocumentSnapshot'
79+
- title: "DocumentSnapshot"
8080
path: /docs/reference/functions/providers_firestore.html#documentsnapshot
8181

82-
- title: 'functions.database'
82+
- title: "functions.database"
8383
path: /docs/reference/functions/providers_database.html
8484
section:
85-
- title: 'DataSnapshot'
85+
- title: "DataSnapshot"
8686
path: /docs/reference/functions/providers_database.datasnapshot.html
87-
- title: 'RefBuilder'
87+
- title: "RefBuilder"
8888
path: /docs/reference/functions/providers_database.refbuilder.html
89-
- title: 'InstanceBuilder'
89+
- title: "InstanceBuilder"
9090
path: /docs/reference/functions/providers_database.instancebuilder.html
9191

92-
- title: 'functions.https'
92+
- title: "functions.https"
9393
path: /docs/reference/functions/providers_https.html
9494
section:
95-
- title: 'HttpsError'
95+
- title: "HttpsError"
9696
path: /docs/reference/functions/common_providers_https.httpserror.html
97-
- title: 'CallableRequest'
97+
- title: "CallableRequest"
9898
path: /docs/reference/functions/common_providers_https.callablerequest.html
99-
- title: 'CallableContext'
99+
- title: "CallableContext"
100100
path: /docs/reference/functions/common_providers_https.callablecontext.html
101-
- title: 'AuthData'
101+
- title: "AuthData"
102102
path: /docs/reference/functions/common_providers_https.authdata.html
103-
- title: 'AppCheckData'
103+
- title: "AppCheckData"
104104
path: /docs/reference/functions/common_providers_https.appcheckdata.html
105105

106-
- title: 'functions.logger'
106+
- title: "functions.logger"
107107
path: /docs/reference/functions/logger.html
108108
section:
109-
- title: 'LogEntry'
109+
- title: "LogEntry"
110110
path: /docs/reference/functions/logger.logentry.html
111111

112-
- title: 'functions.pubsub'
112+
- title: "functions.pubsub"
113113
path: /docs/reference/functions/providers_pubsub.html
114114
section:
115-
- title: 'Message'
115+
- title: "Message"
116116
path: /docs/reference/functions/providers_pubsub.message.html
117-
- title: 'TopicBuilder'
117+
- title: "TopicBuilder"
118118
path: /docs/reference/functions/providers_pubsub.topicbuilder.html
119-
- title: 'ScheduleBuilder'
119+
- title: "ScheduleBuilder"
120120
path: /docs/reference/functions/providers_pubsub.schedulebuilder.html
121121

122-
- title: 'functions.remoteconfig'
122+
- title: "functions.remoteconfig"
123123
path: /docs/reference/functions/providers_remoteconfig.html
124124
section:
125-
- title: 'RemoteConfigUser'
125+
- title: "RemoteConfigUser"
126126
path: /docs/reference/functions/providers_remoteconfig.remoteconfiguser.html
127-
- title: 'TemplateVersion'
127+
- title: "TemplateVersion"
128128
path: /docs/reference/functions/providers_remoteconfig.templateversion.html
129-
- title: 'UpdateBuilder'
129+
- title: "UpdateBuilder"
130130
path: /docs/reference/functions/providers_remoteconfig.updatebuilder.html
131131

132-
- title: 'functions.storage'
132+
- title: "functions.storage"
133133
path: /docs/reference/functions/providers_storage.html
134134
section:
135-
- title: 'BucketBuilder'
135+
- title: "BucketBuilder"
136136
path: /docs/reference/functions/providers_storage.bucketbuilder.html
137-
- title: 'ObjectBuilder'
137+
- title: "ObjectBuilder"
138138
path: /docs/reference/functions/providers_storage.objectbuilder.html
139-
- title: 'ObjectMetadata'
139+
- title: "ObjectMetadata"
140140
path: /docs/reference/functions/providers_storage.objectmetadata.html
141141

142-
- title: 'functions.tasks'
142+
- title: "functions.tasks"
143143
path: /docs/reference/functions/providers_tasks.html
144144
section:
145145
- title: AuthData
@@ -157,20 +157,20 @@ toc:
157157
- title: TaskQueueOptions
158158
path: /docs/reference/functions/providers_tasks.taskqueueoptions.html
159159

160-
- title: 'functions.testLab'
160+
- title: "functions.testLab"
161161
path: /docs/reference/functions/providers_testlab.html
162162
section:
163-
- title: 'testLab.clientInfo'
163+
- title: "testLab.clientInfo"
164164
path: /docs/reference/functions/providers_testlab.clientinfo.html
165-
- title: 'testLab.resultStorage'
165+
- title: "testLab.resultStorage"
166166
path: /docs/reference/functions/providers_testlab.resultstorage.html
167-
- title: 'testLab.testMatrix'
167+
- title: "testLab.testMatrix"
168168
path: /docs/reference/functions/providers_testlab.testmatrix.html
169-
- title: 'testLab.testMatrixBuilder'
169+
- title: "testLab.testMatrixBuilder"
170170
path: /docs/reference/functions/providers_testlab.testmatrixbuilder.html
171171

172-
- title: 'functions.handler'
172+
- title: "functions.handler"
173173
path: /docs/reference/functions/handler_builder.html
174174
section:
175-
- title: 'HandlerBuilder'
175+
- title: "HandlerBuilder"
176176
path: /docs/reference/functions/handler_builder.handlerbuilder.html

docgen/content-sources/v2/toc.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
toc:
2-
- title: 'functions'
2+
- title: "functions"
33
path: /docs/functions/alpha/index.html
4-
- title: 'functions.core'
4+
- title: "functions.core"
55
path: /docs/functions/alpha/v2_core.html
66
section:
7-
- title: 'Functions v2'
7+
- title: "Functions v2"
88
path: /docs/functions/alpha/v2.html
9-
- title: 'functions.CloudEvent'
9+
- title: "functions.CloudEvent"
1010
path: /docs/functions/alpha/v2_core.CloudEvent.html
11-
- title: 'functions.CloudFunction'
11+
- title: "functions.CloudFunction"
1212
path: /docs/functions/alpha/v2_core.CloudFunction.html
13-
- title: 'functions.https'
13+
- title: "functions.https"
1414
path: /docs/functions/alpha/v2_providers_https.html
1515
section:
16-
- title: 'functions.https.CallableFunction'
16+
- title: "functions.https.CallableFunction"
1717
path: /docs/functions/alpha/v2_providers_https.CallableFunction.html
18-
- title: 'functions.https.CallableRequest'
18+
- title: "functions.https.CallableRequest"
1919
path: /docs/functions/alpha/v2_providers_https.CallableRequest.html
20-
- title: 'functions.https.error'
20+
- title: "functions.https.error"
2121
path: /docs/functions/alpha/v2_providers_https.HttpsError.html
22-
- title: 'functions.https.options'
22+
- title: "functions.https.options"
2323
path: /docs/functions/alpha/v2_providers_https.HttpsOptions.html
24-
- title: 'functions.logger'
24+
- title: "functions.logger"
2525
path: /docs/functions/alpha/logger.html
2626
section:
27-
- title: 'LogEntry'
27+
- title: "LogEntry"
2828
path: /docs/functions/alpha/logger.LogEntry.html
29-
- title: 'functions.options'
29+
- title: "functions.options"
3030
path: /docs/functions/alpha/v2_options.html
3131
section:
32-
- title: 'functions.options.GlobalOptions'
32+
- title: "functions.options.GlobalOptions"
3333
path: /docs/functions/alpha/v2_options.GlobalOptions.html
34-
- title: 'functions.options.EventHandlerOptions'
34+
- title: "functions.options.EventHandlerOptions"
3535
path: /docs/functions/alpha/v2_options.EventHandlerOptions.html
36-
- title: 'functions.pubsub'
36+
- title: "functions.pubsub"
3737
path: /docs/functions/alpha/v2_providers_pubsub.html
3838
section:
39-
- title: 'Message'
39+
- title: "Message"
4040
path: /docs/functions/alpha/v2_providers_pubsub.Message.html
41-
- title: 'MessagePublishedData'
41+
- title: "MessagePublishedData"
4242
path: /docs/functions/alpha/v2_providers_pubsub.MessagePublishedData.html
43-
- title: 'PubSubOptions'
43+
- title: "PubSubOptions"
4444
path: /docs/functions/alpha/v2_providers_pubsub.PubSubOptions.html

0 commit comments

Comments
 (0)