diff --git a/examples/console-app/configObject.mjs b/examples/console-app/configObject.mjs index ef376b99..add4330c 100644 --- a/examples/console-app/configObject.mjs +++ b/examples/console-app/configObject.mjs @@ -2,7 +2,7 @@ // Licensed under the MIT license. import * as dotenv from "dotenv"; -dotenv.config() +dotenv.config(); /** * This example demonstrates how to construct a configuration object from settings loaded from Azure App Configuration. diff --git a/examples/console-app/helloworld.mjs b/examples/console-app/helloworld.mjs index 5a3558c7..e26703e7 100644 --- a/examples/console-app/helloworld.mjs +++ b/examples/console-app/helloworld.mjs @@ -2,7 +2,7 @@ // Licensed under the MIT license. import * as dotenv from "dotenv"; -dotenv.config() +dotenv.config(); /** * 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, { }); const message = settings.get("message"); -console.log(`Message from Azure App Configuration: ${message}`); \ No newline at end of file +console.log(`Message from Azure App Configuration: ${message}`); diff --git a/examples/console-app/helloworld_aad.mjs b/examples/console-app/helloworld_aad.mjs index 37ac15e8..ae01853b 100644 --- a/examples/console-app/helloworld_aad.mjs +++ b/examples/console-app/helloworld_aad.mjs @@ -2,7 +2,7 @@ // Licensed under the MIT license. import * as dotenv from "dotenv"; -dotenv.config() +dotenv.config(); /** * 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, { }); const message = settings.get("message"); -console.log(`Message from Azure App Configuration: ${message}`); \ No newline at end of file +console.log(`Message from Azure App Configuration: ${message}`); diff --git a/examples/console-app/refresh.mjs b/examples/console-app/refresh.mjs index 9e622023..0b54b5c2 100644 --- a/examples/console-app/refresh.mjs +++ b/examples/console-app/refresh.mjs @@ -30,7 +30,7 @@ const settings = await load(connectionString, { } }); -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.") +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."); // eslint-disable-next-line no-constant-condition while (true) { diff --git a/examples/console-app/secretReference.mjs b/examples/console-app/secretReference.mjs index dee0e183..a21bc97c 100644 --- a/examples/console-app/secretReference.mjs +++ b/examples/console-app/secretReference.mjs @@ -2,7 +2,7 @@ // Licensed under the MIT license. import * as dotenv from "dotenv"; -dotenv.config() +dotenv.config(); /** * 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, { const secretKey = "app.secret"; const value = settings.get(secretKey); -console.log(`Get the secret from keyvault key: ${secretKey}, value: ${value}`); \ No newline at end of file +console.log(`Get the secret from keyvault key: ${secretKey}, value: ${value}`); diff --git a/examples/web-app/httpserver.mjs b/examples/web-app/httpserver.mjs index d5519d04..f7072ecb 100644 --- a/examples/web-app/httpserver.mjs +++ b/examples/web-app/httpserver.mjs @@ -2,7 +2,7 @@ // Licensed under the MIT license. import * as dotenv from "dotenv"; -dotenv.config() +dotenv.config(); import { load } from "@azure/app-configuration-provider"; import { DefaultAzureCredential } from "@azure/identity"; diff --git a/package.json b/package.json index d5934885..58f911ed 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "build-test": "tsc -p ./tsconfig.test.json", "clean": "rimraf dist dist-esm out types", "dev": "rollup --config --watch", - "lint": "eslint src/ test/", - "fix-lint": "eslint src/ test/ --fix", + "lint": "eslint src/ test/ examples/ --ext .js,.ts,.mjs,.cjs", + "fix-lint": "eslint src/ test/ examples/ --fix --ext .js,.ts,.mjs,.cjs", "test": "mocha out/test/*.test.{js,cjs,mjs} --parallel" }, "repository": {