Skip to content

Commit

Permalink
lint: remove duplicate / stale rules from .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Aug 23, 2024
1 parent 1992a41 commit 3893226
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 29 deletions.
24 changes: 3 additions & 21 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,10 @@ env:
node: true
es6: true
mocha: true
es2020: true
es2022: true

plugins:
- haraka

extends:
- eslint:recommended
- plugin:haraka/recommended

root: true
extends: '@haraka'

rules:
no-var: warn
space-before-function-paren: warn
no-shadow: warn
dot-notation: warn
indent: warn

globals:
OK: true
CONT: true
DENY: true
DENYSOFT: true
DENYDISCONNECT: true
DENYSOFTDISCONNECT: true
no-unused-vars: 0
File renamed without changes.
16 changes: 8 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ exports.handle_authn = function (next, connection, params) {
if (!connection.notes.authenticating) return next();

switch (connection.notes.auth_method) {
case AUTH_METHOD_LOGIN:
this.auth_login(next, connection, params);
break;
case AUTH_METHOD_PLAIN:
this.auth_plain(next, connection, params);
break;
default:
next();
case AUTH_METHOD_LOGIN:
this.auth_login(next, connection, params);
break;
case AUTH_METHOD_PLAIN:
this.auth_plain(next, connection, params);
break;
default:
next();
}
}

Expand Down

0 comments on commit 3893226

Please sign in to comment.