Skip to content

Commit

Permalink
dep(eslint): upgrade to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jan 10, 2025
1 parent d0e29fd commit 26d7f53
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 20 deletions.
11 changes: 0 additions & 11 deletions .eslintrc.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

### Unreleased

- docs(plugins/*.md): use to indicate heading levels
- deps(various): bump to latest versions
- fix(outbound): in outbound hook_delivered, when mx.exchange contains
an IP, use mx.from_dns
Expand Down Expand Up @@ -688,7 +689,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
- plugins/spf #2266
- plugins/toobusy #2186
- plugins/xclient #2159
- rfc1869 #2159
- rfc1869 #2160
- smtp_client #2129, #2208
- tests/host_pool #2159
- use es6 destructuring (#2075) in:
Expand Down
27 changes: 27 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends("@haraka"), {
languageOptions: {
globals: {
...globals.node,
},
},

rules: {
"prefer-template": "warn",
"no-unneeded-ternary": 1,
"no-unused-vars": 0,
},
}];
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"address-rfc2822": "^2.2.2",
"async": "^3.2.6",
"daemon": "~1.1.0",
"haraka-config": "^1.4.1",
"haraka-config": "^1.4.2",
"haraka-constants": "^1.0.7",
"haraka-dsn": "^1.1.0",
"haraka-email-message": "^1.2.4",
Expand All @@ -33,7 +33,7 @@
"haraka-notes": "^1.1.0",
"haraka-plugin-redis": "^2.0.8",
"haraka-results": "^2.2.4",
"haraka-tld": "^1.2.2",
"haraka-tld": "^1.2.3",
"haraka-utils": "^1.1.3",
"ipaddr.js": "~2.2.0",
"node-gyp": "^11.0.0",
Expand Down Expand Up @@ -69,19 +69,19 @@
"haraka-plugin-messagesniffer": "^1.0.0",
"haraka-plugin-p0f": "^1.0.9",
"haraka-plugin-qmail-deliverable": "^1.2.3",
"haraka-plugin-recipient-routes": "^1.2.0",
"haraka-plugin-recipient-routes": "^1.2.1",
"haraka-plugin-relay": "^1.0.0",
"haraka-plugin-rspamd": "^1.3.1",
"haraka-plugin-spamassassin": "^1.0.0",
"haraka-plugin-spamassassin": "^1.0.1",
"haraka-plugin-spf": "1.2.9",
"haraka-plugin-syslog": "^1.0.6",
"haraka-plugin-uribl": "^1.0.8",
"haraka-plugin-uribl": "^1.0.9",
"haraka-plugin-watch": "^2.0.6",
"ocsp": "~1.2.0",
"tmp": "~0.2.3"
},
"devDependencies": {
"@haraka/eslint-config": "^1.1.5",
"@haraka/eslint-config": "^2.0.2",
"haraka-test-fixtures": "^1.3.8",
"mocha": "^11.1.0",
"mock-require": "^3.0.3",
Expand All @@ -97,8 +97,8 @@
},
"scripts": {
"format:NYET": "npm run prettier:fix && npm run lint:fix",
"lint": "npx eslint@^8 *.js outbound plugins plugins/*/*.js test test/*/*.js test/*/*/*.js bin/haraka",
"lint:fix": "npx eslint@^8 --fix *.js outbound plugins plugins/*/*.js test test/*/*.js test/*/*/*.js bin/haraka",
"lint": "npx eslint *.js outbound plugins plugins/*/*.js test test/*/*.js test/*/*/*.js bin/haraka",
"lint:fix": "npx eslint --fix *.js outbound plugins plugins/*/*.js test test/*/*.js test/*/*/*.js bin/haraka",
"prettier": "npx prettier . --check",
"prettier:fix": "npx prettier . --write --log-level=warn",
"test": "npx mocha --exit --timeout=4000 test test/outbound test/plugins/auth test/plugins/queue test/plugins",
Expand Down

0 comments on commit 26d7f53

Please sign in to comment.