From 46485660b73d2f57d992db592ef6a5811b336bfd Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Mon, 15 Apr 2024 13:09:01 -0700 Subject: [PATCH] lint --- .eslintrc.yaml | 3 --- config.js | 3 ++- test/.eslintrc.yaml | 2 -- test/config.js | 4 ++-- 4 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 test/.eslintrc.yaml diff --git a/.eslintrc.yaml b/.eslintrc.yaml index bba83db..035a400 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -5,6 +5,3 @@ env: es2022: true extends: ['@haraka'] - -rules: - no-extra-semi: 1 diff --git a/config.js b/config.js index cdd2f5a..19a8601 100644 --- a/config.js +++ b/config.js @@ -19,7 +19,8 @@ class Config { } get(...args) { - const [name, type, cb, options] = this.arrange_args(args) + /* eslint prefer-const: 0 */ + let [name, type, cb, options] = this.arrange_args(args) if (!type) type = 'value' const full_path = path.isAbsolute(name) diff --git a/test/.eslintrc.yaml b/test/.eslintrc.yaml deleted file mode 100644 index 1837116..0000000 --- a/test/.eslintrc.yaml +++ /dev/null @@ -1,2 +0,0 @@ -rules: - no-unused-vars: 1 diff --git a/test/config.js b/test/config.js index 7a4797c..204d9bf 100644 --- a/test/config.js +++ b/test/config.js @@ -533,7 +533,7 @@ describe('hjsonOverrides', function () { it('with smtpgreeting override', function () { process.env.WITHOUT_CONFIG_CACHE = '' - const main = this.config.get('main.hjson') + this.config.get('main.hjson') assert.deepEqual(this.config.get('smtpgreeting', 'list'), [ 'this is line one for hjson', 'this is line two for hjson', @@ -550,7 +550,7 @@ describe('jsonOverrides', function () { it('with smtpgreeting override', function () { process.env.WITHOUT_CONFIG_CACHE = '' - const main = this.config.get('main.json') + this.config.get('main.json') assert.deepEqual(this.config.get('smtpgreeting', 'list'), [ 'this is line one', 'this is line two',