Skip to content

Commit e956876

Browse files
Add missing semicolon (#216)
* add comma * add lint check for examples
1 parent 51e1add commit e956876

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

examples/console-app/configObject.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT license.
33

44
import * as dotenv from "dotenv";
5-
dotenv.config()
5+
dotenv.config();
66

77
/**
88
* This example demonstrates how to construct a configuration object from settings loaded from Azure App Configuration.

examples/console-app/helloworld.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT license.
33

44
import * as dotenv from "dotenv";
5-
dotenv.config()
5+
dotenv.config();
66

77
/**
88
* This example retrives all settings with key following pattern "app.settings.*", i.e. starting with "app.settings.".
@@ -23,4 +23,4 @@ const settings = await load(connectionString, {
2323
});
2424
const message = settings.get("message");
2525

26-
console.log(`Message from Azure App Configuration: ${message}`);
26+
console.log(`Message from Azure App Configuration: ${message}`);

examples/console-app/helloworld_aad.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT license.
33

44
import * as dotenv from "dotenv";
5-
dotenv.config()
5+
dotenv.config();
66

77
/**
88
* This example retrives all settings with key following pattern "app.settings.*", i.e. starting with "app.settings.".
@@ -28,4 +28,4 @@ const settings = await load(endpoint, credential, {
2828
});
2929
const message = settings.get("message");
3030

31-
console.log(`Message from Azure App Configuration: ${message}`);
31+
console.log(`Message from Azure App Configuration: ${message}`);

examples/console-app/refresh.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const settings = await load(connectionString, {
3030
}
3131
});
3232

33-
console.log("Using Azure portal or CLI, update the `app.settings.message` value, and then update the `app.settings.sentinel` value in your App Configuration store.")
33+
console.log("Using Azure portal or CLI, update the `app.settings.message` value, and then update the `app.settings.sentinel` value in your App Configuration store.");
3434

3535
// eslint-disable-next-line no-constant-condition
3636
while (true) {

examples/console-app/secretReference.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT license.
33

44
import * as dotenv from "dotenv";
5-
dotenv.config()
5+
dotenv.config();
66

77
/**
88
* Before you run it, please add a Key Vault reference with key "app.secret" in your App Configuration store.
@@ -28,4 +28,4 @@ const settings = await load(endpoint, credential, {
2828
const secretKey = "app.secret";
2929
const value = settings.get(secretKey);
3030

31-
console.log(`Get the secret from keyvault key: ${secretKey}, value: ${value}`);
31+
console.log(`Get the secret from keyvault key: ${secretKey}, value: ${value}`);

examples/web-app/httpserver.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT license.
33

44
import * as dotenv from "dotenv";
5-
dotenv.config()
5+
dotenv.config();
66

77
import { load } from "@azure/app-configuration-provider";
88
import { DefaultAzureCredential } from "@azure/identity";

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"build-test": "tsc -p ./tsconfig.test.json",
2424
"clean": "rimraf dist dist-esm out types",
2525
"dev": "rollup --config --watch",
26-
"lint": "eslint src/ test/",
27-
"fix-lint": "eslint src/ test/ --fix",
26+
"lint": "eslint src/ test/ examples/ --ext .js,.ts,.mjs,.cjs",
27+
"fix-lint": "eslint src/ test/ examples/ --fix --ext .js,.ts,.mjs,.cjs",
2828
"test": "mocha out/test/*.test.{js,cjs,mjs} --parallel"
2929
},
3030
"repository": {

0 commit comments

Comments
 (0)