Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Apr 15, 2024
1 parent 79e2615 commit 4648566
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ env:
es2022: true

extends: ['@haraka']

rules:
no-extra-semi: 1
3 changes: 2 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions test/.eslintrc.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 4648566

Please sign in to comment.