From 853ea1bd2fe3c0769afbf87e79968da2e8333c7b Mon Sep 17 00:00:00 2001 From: Ethan Zimbelman Date: Mon, 8 Jan 2024 14:10:56 -0800 Subject: [PATCH] fix: hide a linter error with an underscore --- .eslintrc.json | 3 ++- app.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index ea3e767..48cf36f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,6 +12,7 @@ }, "rules": { "object-curly-newline": "off", - "camelcase": "off" + "camelcase": "off", + "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }] } } diff --git a/app.js b/app.js index 4691cd6..7d32590 100644 --- a/app.js +++ b/app.js @@ -12,7 +12,7 @@ const app = new App({ }); /** Sample Function Listener */ -app.function('sample_function', async ({ client, inputs, complete, fail }) => { +app.function('sample_function', async ({ _client, inputs, complete, fail }) => { try { const { sample_input } = inputs;