Skip to content

Commit ef4c82f

Browse files
committed
run prettier on the whole repo
1 parent 076ea8a commit ef4c82f

File tree

449 files changed

+200058
-97139
lines changed

Some content is hidden

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

449 files changed

+200058
-97139
lines changed

Node-1st-gen/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
This folder contains examples for 1st gen functions. Note that 2nd gen functions are available and the recommended platform for Cloud Functions for Firebase.
44

5-
See a description of all samples in this folder in the [root README](../README.md).
5+
See a description of all samples in this folder in the [root README](../README.md).

Node-1st-gen/assistant-say-number/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ This sample shows how to create an action for the Google Home/Assistant using th
55
e.g. If the user says "Twelve" the action will say "The ordinal of twelve is twelfth".
66

77
Further reading:
8-
- Actions SDK: https://developers.google.com/actions/develop/sdk/getting-started#getting-started.
9-
- Firebase SDK: https://firebase.google.com/docs/functions
8+
9+
- Actions SDK: https://developers.google.com/actions/develop/sdk/getting-started#getting-started.
10+
- Firebase SDK: https://firebase.google.com/docs/functions
1011

1112
## Functions Code
1213

@@ -16,15 +17,14 @@ Handling the Google Actions requests is done using the [Google Actions SDK](http
1617

1718
The dependencies are listed in [functions/package.json](functions/package.json).
1819

19-
2020
## Deploy and test
2121

2222
To test this sample action:
2323

24-
- Create a Firebase Project using the [Firebase Developer Console](https://console.firebase.google.com)
25-
- Configure this sample to use your project using `firebase use --add` and select your project.
26-
- Deploy your project using `firebase deploy`
27-
- In the `action.json` file, update the two `<YOUR_PROJECT_ID>` placeholders with your Firebase project ID. The URL should match the `Function URL (sayNumber):` that was printed out by `firebase deploy`.
28-
- [Download](https://developers.google.com/actions/tools/gactions-cli) the `gaction` CLI
29-
- Make your action available for testing using the `gactions preview action.json`
30-
- Test your Action on the [Google Home Web Simulator](https://g.co/actionswebsim) by saying "Talk to My Action"
24+
- Create a Firebase Project using the [Firebase Developer Console](https://console.firebase.google.com)
25+
- Configure this sample to use your project using `firebase use --add` and select your project.
26+
- Deploy your project using `firebase deploy`
27+
- In the `action.json` file, update the two `<YOUR_PROJECT_ID>` placeholders with your Firebase project ID. The URL should match the `Function URL (sayNumber):` that was printed out by `firebase deploy`.
28+
- [Download](https://developers.google.com/actions/tools/gactions-cli) the `gaction` CLI
29+
- Make your action available for testing using the `gactions preview action.json`
30+
- Test your Action on the [Google Home Web Simulator](https://g.co/actionswebsim) by saying "Talk to My Action"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"functions": {
3-
"codebase": "assistant-say-number"
4-
}
2+
"functions": {
3+
"codebase": "assistant-say-number"
4+
}
55
}

Node-1st-gen/assistant-say-number/functions/.eslintrc.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// Required for certain syntax usages
44
"ecmaVersion": 2022
55
},
6-
"plugins": [
7-
"promise"
8-
],
6+
"plugins": ["promise"],
97
"extends": "eslint:recommended",
108
"rules": {
119
// Removed rule "disallow the use of console" from recommended eslint rules
@@ -56,7 +54,7 @@
5654
// Warn against unnecessary calls to .bind()
5755
"no-extra-bind": 1,
5856

59-
// Warn against unnecessary labels
57+
// Warn against unnecessary labels
6058
"no-extra-label": 1,
6159

6260
// Disallow leading or trailing decimal points in numeric literals

Node-1st-gen/assistant-say-number/functions/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,26 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
'use strict';
16+
"use strict";
1717

18-
const functions = require('firebase-functions/v1');
19-
const { actionssdk } = require('actions-on-google');
18+
const functions = require("firebase-functions/v1");
19+
const { actionssdk } = require("actions-on-google");
2020

2121
const app = actionssdk();
22-
app.intent('actions.intent.MAIN', (conv) => {
23-
conv.ask(`<speak>
22+
app.intent("actions.intent.MAIN", (conv) => {
23+
conv.ask(`<speak>
2424
Hi! <break time="1"/>
2525
I can read out an ordinal number like <say-as interpret-as="ordinal">123</say-as>.
2626
Say a number.
2727
</speak>`);
2828
});
2929

30-
app.intent('actions.intent.TEXT', (conv) => {
30+
app.intent("actions.intent.TEXT", (conv) => {
3131
const rawInput = conv.input.raw;
32-
if (rawInput === 'bye') {
33-
conv.ask('Goodbye!');
32+
if (rawInput === "bye") {
33+
conv.ask("Goodbye!");
3434
} else if (isNaN(parseInt(rawInput, 10))) {
35-
conv.ask('I didn\'t quite get that, what was the number?');
35+
conv.ask("I didn't quite get that, what was the number?");
3636
} else {
3737
conv.ask(`<speak>
3838
The ordinal of <say-as interpret-as="cardinal">${rawInput}</say-as> is

0 commit comments

Comments
 (0)