diff --git a/.codeclimate.yml b/.codeclimate.yml
index c889eb8..563da6b 100644
--- a/.codeclimate.yml
+++ b/.codeclimate.yml
@@ -1,9 +1,9 @@
engines:
eslint:
enabled: true
- channel: 'eslint-8'
+ channel: 'eslint-9'
config:
- config: '.eslintrc.yaml'
+ config: 'eslint.config.mjs'
ratings:
paths:
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
deleted file mode 100644
index 035a400..0000000
--- a/.eslintrc.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
-env:
- node: true
- es6: true
- mocha: true
- es2022: true
-
-extends: ['@haraka']
diff --git a/.release b/.release
index 7cd5707..0bf2a09 160000
--- a/.release
+++ b/.release
@@ -1 +1 @@
-Subproject commit 7cd5707f7d69f8d4dca1ec407ada911890e59d0a
+Subproject commit 0bf2a098d4792848c2103dfce0f911e00a14709e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fa0725c..5828738 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,8 +4,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
### Unreleased
+### [1.0.1] - 2025-01-09
+
+- dep(eslint): update to v9
+
### [1.0.0] - 2024-05-07
- repackaged from haraka/Haraka
-[1.0.0]: https://github.com/haraka/haraka-plugin-template/releases/tag/1.0.0
+[1.0.1]: https://github.com/haraka/haraka-plugin-spamassassin/releases/tag/v1.0.1
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
new file mode 100644
index 0000000..d01fd04
--- /dev/null
+++ b/CONTRIBUTORS.md
@@ -0,0 +1,9 @@
+# Contributors
+
+This handcrafted artisinal software is brought to you by:
+
+|
msimerson (2) |
+| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
+
+this file is generated by [.release](https://github.com/msimerson/.release).
+Contribute to this project to get your GitHub profile included here.
diff --git a/README.md b/README.md
index 88e5e4d..2fcf78b 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,6 @@
[![CI Test Status][ci-img]][ci-url]
[![Code Climate][clim-img]][clim-url]
-[![NPM][npm-img]][npm-url]
-
# haraka-plugin-spamassassin
This plugin implements the spamd protocol and will send messages to spamd for scoring.
@@ -188,5 +186,3 @@ Other headers options you might find interesting or useful are:
[ci-url]: https://github.com/haraka/haraka-plugin-spamassassin/actions/workflows/ci.yml
[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-spamassassin/badges/gpa.svg
[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-spamassassin
-[npm-img]: https://nodei.co/npm/haraka-plugin-spamassassin.png
-[npm-url]: https://www.npmjs.com/package/haraka-plugin-spamassassin
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 0000000..cd75fea
--- /dev/null
+++ b/eslint.config.mjs
@@ -0,0 +1,25 @@
+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,
+ ...globals.mocha,
+ },
+ },
+ },
+]
diff --git a/package.json b/package.json
index 67596d4..752ec13 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "haraka-plugin-spamassassin",
- "version": "1.0.0",
- "description": "Haraka plugin that...CHANGE THIS",
+ "version": "1.0.1",
+ "description": "Haraka plugin that scans messages with SpamAssassin",
"main": "index.js",
"files": [
"CHANGELOG.md",
@@ -9,8 +9,8 @@
],
"scripts": {
"format": "npm run prettier:fix && npm run lint:fix",
- "lint": "npx eslint@^8 *.js test",
- "lint:fix": "npx eslint@^8 *.js test --fix",
+ "lint": "npx eslint *.js test",
+ "lint:fix": "npx eslint *.js test --fix",
"prettier": "npx prettier . --check",
"prettier:fix": "npx prettier . --write --log-level=warn",
"test": "node --test",
@@ -33,12 +33,12 @@
},
"homepage": "https://github.com/haraka/haraka-plugin-spamassassin#readme",
"dependencies": {
- "haraka-net-utils": "^1.7.0",
+ "haraka-net-utils": "^1.7.1",
"haraka-utils": "^1.1.3"
},
"devDependencies": {
- "@haraka/eslint-config": "1.1.3",
+ "@haraka/eslint-config": "2.0.2",
"address-rfc2821": "^2.1.2",
- "haraka-test-fixtures": "1.3.5"
+ "haraka-test-fixtures": "1.3.8"
}
}